Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.50 Home All releases olderv2.0.49 v2.0.51newer
Claude Code v2.0.50

MCP CLI Endpoint

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 →