{"_id":"@anycast/mcp","name":"@anycast/mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@anycast/mcp","version":"0.1.0","description":"MCP server for the Anycast Platform — enables AI assistants to manage agents, webhooks, and connectivity","main":"dist/index.js","types":"dist/index.d.ts","bin":{"anycast-mcp":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsx watch src/index.ts","start":"node dist/index.js","test":"vitest run","clean":"rm -rf dist"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.1"},"devDependencies":{"@types/node":"^20.11.0","tsx":"^4.7.0","typescript":"^5.3.3","vitest":"^4.0.18"},"keywords":["mcp","anycast","ai","agents","claude","cursor"],"license":"MIT","_id":"@anycast/mcp@0.1.0","gitHead":"0da1cfc69a80194e20fb14d4bb98ff84b1af1023","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-i3GAm77nzn2zGlkRw5IfRzzkDBpWc+eQ7tnrB0giZdpcZbg6mv9t8A7GBHny/dR8Knwi+tYnASxqaJmrcmwMOQ==","shasum":"853779a84a1116bff20cddce7d81313bd88844d7","tarball":"https://registry.npmjs.org/@anycast/mcp/-/mcp-0.1.0.tgz","fileCount":6,"unpackedSize":20229,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC0IAP5JxDiTyVod2tNp1gzcdFCFIwrPLE2GeRvjfsmKAiAcSG8l644GJPKmYoGvPZKjY/axzz1x95MsbCWLlYLQhQ=="}]},"_npmUser":{"name":"markmahle","email":"mm@anycast.com"},"directories":{},"maintainers":[{"name":"markmahle","email":"mm@anycast.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.1.0_1774027105610_0.4491136532171194"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-20T17:18:25.551Z","0.1.0":"2026-03-20T17:18:25.752Z","modified":"2026-03-20T17:18:25.941Z"},"maintainers":[{"name":"markmahle","email":"mm@anycast.com"}],"description":"MCP server for the Anycast Platform — enables AI assistants to manage agents, webhooks, and connectivity","keywords":["mcp","anycast","ai","agents","claude","cursor"],"license":"MIT","readme":"# @anycast/mcp\n\nMCP (Model Context Protocol) server for the [Anycast Platform](https://anycast.net). Enables AI assistants like Claude, Cursor, and Copilot to manage agents, webhooks, and P2P connectivity.\n\n## Installation\n\n```bash\nnpm install -g @anycast/mcp\n```\n\n## Configuration\n\nSet your Anycast API key:\n\n```bash\nexport ANYCAST_API_KEY=your-api-key-here\nexport ANYCAST_API_URL=https://api.anycast.net  # optional, defaults to localhost:3002\n```\n\n## Usage with Claude Desktop\n\nAdd to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"anycast\": {\n      \"command\": \"anycast-mcp\",\n      \"env\": {\n        \"ANYCAST_API_KEY\": \"your-api-key-here\",\n        \"ANYCAST_API_URL\": \"https://api.anycast.net\"\n      }\n    }\n  }\n}\n```\n\n## Usage with Claude Code\n\nAdd to your project's `.claude/settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"anycast\": {\n      \"command\": \"npx\",\n      \"args\": [\"@anycast/mcp\"],\n      \"env\": {\n        \"ANYCAST_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n## Usage with Cursor\n\nAdd to Cursor settings > MCP Servers:\n\n```json\n{\n  \"anycast\": {\n    \"command\": \"anycast-mcp\",\n    \"env\": {\n      \"ANYCAST_API_KEY\": \"your-api-key-here\"\n    }\n  }\n}\n```\n\n## Available Tools\n\n### Agents\n| Tool | Description |\n|------|-------------|\n| `list_agents` | List all agents with status, IP, version |\n| `get_agent` | Get agent details by ID |\n| `update_agent` | Update agent name or labels |\n| `delete_agent` | Delete agent (disconnects connections) |\n| `get_agent_connections` | Get connection history for an agent |\n\n### Tokens\n| Tool | Description |\n|------|-------------|\n| `list_tokens` | List registration tokens (prefixes only) |\n| `create_token` | Create new registration token |\n| `revoke_token` | Revoke a token |\n\n### Groups\n| Tool | Description |\n|------|-------------|\n| `list_groups` | List agent groups |\n| `create_group` | Create a new group |\n| `add_agent_to_group` | Add agent to group |\n| `remove_agent_from_group` | Remove agent from group |\n\n### Connectivity\n| Tool | Description |\n|------|-------------|\n| `get_discovery` | Get rendezvous server URL |\n| `list_connections` | List P2P connections |\n| `get_connection_stats` | Bandwidth and connection counts |\n\n### Webhooks (Ramps)\n| Tool | Description |\n|------|-------------|\n| `list_destinations` | List webhook destinations |\n| `create_destination` | Create webhook destination |\n| `list_events` | List webhook events |\n\n### Resources\n\n| URI | Description |\n|-----|-------------|\n| `anycast://agents` | All registered agents |\n| `anycast://connections` | Recent connections (24h) |\n| `anycast://stats` | Platform statistics |\n\n## Examples\n\nAsk Claude:\n\n> \"List all my online agents\"\n\n> \"Create a registration token called 'production' with a limit of 50 uses\"\n\n> \"Show me the connection stats for the last week\"\n\n> \"Create a webhook destination at https://api.example.com/webhooks\"\n\n> \"Which agents are in the 'production' group?\"\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-9051586aebf142d2993a20dd154d607d"}