Connect TON Dev Skills to Your IDE
Use TON Dev Skills as an MCP server with Claude Desktop, Cursor, Windsurf, and other MCP-compatible clients.
How It Works
TON Dev Skills exposes an MCP (Model Context Protocol) server that AI assistants connect to. Once connected, the AI can compile contracts, run audits, scaffold projects, and more — directly from your chat interface.
Two transport modes are supported:
- 1stdio — The IDE spawns the process directly. Best for local development. No port needed.
- 2SSE — The server runs on a port and the IDE connects over HTTP. Best for remote or shared setups.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"ton-dev-skills": {
"command": "ton-dev",
"args": ["mcp", "start"],
"env": {
"TON_DEV_API_KEY": "tds_your_key_here"
}
}
}
}Restart Claude Desktop after saving. The TON Dev Skills tools will appear in the tool picker.
Cursor
Add to your Cursor MCP settings (.cursor/mcp.json in your project or global config):
{
"mcpServers": {
"ton-dev-skills": {
"command": "ton-dev",
"args": ["mcp", "start"],
"env": {
"TON_DEV_API_KEY": "tds_your_key_here"
}
}
}
}Windsurf
Add to your Windsurf MCP configuration (~/.codeium/windsurf/mcp_config.json):
{
"mcpServers": {
"ton-dev-skills": {
"command": "ton-dev",
"args": ["mcp", "start"],
"env": {
"TON_DEV_API_KEY": "tds_your_key_here"
}
}
}
}SSE Transport (Remote / Shared)
If you prefer to run the MCP server as a long-lived process (e.g., on a remote machine or shared server):
# Start the server with SSE transport TON_DEV_API_KEY=tds_... ton-dev mcp start --transport sse --port 3100
Then configure your IDE to connect via SSE:
{
"mcpServers": {
"ton-dev-skills": {
"url": "http://localhost:3100/sse"
}
}
}Hosted MCP Server
A production MCP server is available at devmcp.tonsurance.com for immediate use without local installation. Connect your IDE directly:
{
"mcpServers": {
"ton-dev-skills": {
"url": "https://devmcp.tonsurance.com/sse",
"headers": {
"x-api-key": "tds_your_key_here"
}
}
}
}This is the fastest way to get started — no npm install required. Get a Pro API key from the Pro page to authenticate.
Available MCP Tools
Once connected, the following tools are available to the AI assistant:
- 🔧
ton_compile— Compile FunC or Tact contracts to BOC - 🔧
ton_audit— Run security audit with 50+ rules - 🔧
ton_scaffold— Generate project from template - 🔧
ton_deploy— Deploy compiled contract to testnet/mainnet - 🔧
ton_tep_check— Verify TEP standard compliance - 🔧
ton_migrate— Migrate Solidity contracts to TON - 🔧
ton_test_gen— Generate unit tests for contracts - 🔧
ton_debug— Explain TVM exit codes and trace transactions - 🔧
ton_gas_estimate— Estimate gas consumption
Example Prompts
Try these prompts once the MCP server is connected:
"Scaffold a new jetton project and audit the contracts" "Compile my contract at ./contracts/nft.tact and estimate the gas" "Audit this contract for security issues and explain any findings" "Migrate my ERC-20 token from Solidity to Tact" "What does TVM exit code 11 mean? How do I fix it?" "Generate unit tests for my jetton wallet contract" "Check if my NFT contract complies with TEP-62"
