Skip to content

v2.0.0 — MCP Support + Token Management

Choose a tag to compare

@1bcMax 1bcMax released this 04 Apr 06:53
· 14 commits to main since this release
a63ed43

MCP Support (Model Context Protocol)

RunCode now connects to MCP servers, giving the agent access to external tools:

// ~/.blockrun/mcp.json
{
  "mcpServers": {
    "blockrun": {
      "transport": "stdio",
      "command": "npx",
      "args": ["@blockrun/mcp"]
    }
  }
}

The agent automatically discovers and uses MCP tools:

  • blockrun_search — web search
  • blockrun_exa — neural research
  • blockrun_markets — prediction markets
  • blockrun_dex — DEX prices
  • Any third-party MCP server

Use /mcp to see connected servers and tools.

Token Management

  • API-anchored tracking (actual counts from API, estimates for new messages)
  • /context now shows: Tokens: ~45,200 / 200k (22.6%) ✓
  • Anchor resets on compaction for accuracy