# Short Link Service - MCP Configuration

## MCP Server Configuration

```json
{
  "mcpServers": {
    "shortener-link": {
      "url": "https://shortener.0x1.in/mcp"
    }
  }
}
```

## Available Tools

| Tool | Description |
|------|------|
| create_short_link | Create a short link with 7-day expiration |

## create_short_link

Create a new short link. No authentication required.

**Parameters:**
- `url` (string, required): The URL to shorten

**Example Request:**
```json
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "create_short_link",
    "arguments": {
      "url": "https://example.com/long-url"
    }
  }
}
```

**Example Response:**
```json
{
  "jsonrpc": "2.0",
  "result": {
    "short_url": "https://0x1.in/abc123",
    "code": "abc123",
    "expires_in_days": 7
  },
  "id": 1
}
```

## Features

- **Expiration:** 7 days
- **Code Format:** 6 random characters (lowercase letters + numbers)
- **Authentication:** Not required
- **Statistics:** Not available for anonymous links
