Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.50 ·

MCP CLI Endpoint

Entry
JSON All of v2.0.50
EntryKind: in v2.0.50,
ChangesSection of the release

What: HTTP REST API server for external tools to interact with Claude Code's MCP servers programmatically. How to use:

# Enable the endpoint (enabled by default when Claude Code is running)
# External tools can make requests to localhost with bearer token auth

# Example: List available MCP servers
curl -X POST http://127.0.0.1:<port>/mcp \
  -H "Authorization: Bearer <secret>" \
  -H "Content-Type: application/json" \
  -d '{"command": "servers"}'

# Example: Call an MCP tool
curl -X POST http://127.0.0.1:<port>/mcp \
  -H "Authorization: Bearer <secret>" \
  -d '{"command": "call", "params": {"server": "myserver", "tool": "mytool", "args": {}}}'

Details:

  • Supports commands: servers, tools, info, call, grep, resources, read
  • Bearer token authentication with 32-byte random secret
  • Localhost-only binding for security
  • Endpoint info stored in ~/.claude/<workspace>.endpoint
  • Can be disabled via ENABLE_MCP_CLI_ENDPOINT=false environment variable
  • Evidence: class hX0 at line 515880 in v2.0.50

See this entry in the whole of v2.0.50 →

Feedback