@ton/mcp-developer-portal
v1.0.1
Published
TON Developer Portal — Model Context Protocol (MCP) bridge. Run via `npx -y @ton/mcp-developer-portal` to authorize once via OAuth Device Flow and expose TON Developer Portal tools over stdio to any MCP-capable AI agent.
Readme
@ton/mcp-developer-portal
TON Developer Portal — Model Context Protocol (MCP) bridge for AI agents.
A small Node bridge that authorizes you to your TON developer account via browser, then exposes TON Developer Portal tools (project management, analytics, testnet faucet, docs search) over stdio to any MCP-capable AI agent.
Install
Claude Code
claude mcp add ton-developer-portal -- npx -y @ton/mcp-developer-portalClaude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) — or %APPDATA%\Claude\claude_desktop_config.json (Windows) / ~/.config/Claude/claude_desktop_config.json (Linux):
{
"mcpServers": {
"ton-developer-portal": {
"command": "npx",
"args": ["-y", "@ton/mcp-developer-portal"]
}
}
}Fully quit and reopen Claude Desktop (cmd+Q, not just close window) to pick up the new server.
Cursor / Cline / VS Code
Same JSON shape, different config file path:
{
"mcpServers": {
"ton-developer-portal": {
"command": "npx",
"args": ["-y", "@ton/mcp-developer-portal"]
}
}
}- Cursor:
~/.cursor/mcp.json - Cline:
~/.config/cline/mcp_settings.json - VS Code (Anthropic MCP extension): user
settings.jsonundermcp.servers
First run
Your AI agent will start the bridge automatically the first time it needs a TON tool. The bridge will print a verification URL and open your browser — sign in and approve. Subsequent runs reuse the cached token.
What you get
- Public tools (no auth): documentation search, SDK package lookup, code snippets, jetton metadata
- Authenticated tools (browser-approved): list projects, read project metrics, manage analytics keys, claim testnet TON, submit applications
Configuration
Override defaults via environment variables in your MCP client config:
TON_MCP_URL— MCP HTTP endpoint (defaulthttps://builders-mcp.ton.org/)TON_OAUTH_ISSUER— OAuth issuer base URL (defaulthttps://builders-backend.ton.org)TON_OAUTH_CLIENT_ID— OAuth client id (defaultton-developer-portal)TON_TOKEN_FILE_PATH— token cache path (default~/.config/ton-developer-portal/tokens.json)TON_MCP_NO_BROWSER— set to any value to suppress auto-opening the browser (URL still printed on stderr)
Requirements
Node.js ≥ 20. No external dependencies.
License
MIT
