Remote MCP
Coding Tools MCP can run as a Streamable HTTP MCP server. Remote access is useful for hosted workspaces, development containers, and clients that cannot launch a local subprocess.Endpoint
The JSON-RPC endpoint is:Bind locally first
The safest default is local loopback:Bind remotely with auth
The implementation refuses non-loopback HTTP binding without Bearer auth, OAuth, or explicitCODING_TOOLS_MCP_AUTH_MODE=noauth.
Bearer example:
Origin and request limits
The HTTP handler checksOrigin when present and only allows origins compatible with the active auth posture. JSON-RPC POST bodies are limited to 1 MiB, and JSON-RPC batches are limited to 50 items.
Tunnel scripts and port defaults
Repository helper scripts and install/tunnel docs may use port8765, while the direct server CLI defaults to port 8000. When troubleshooting a tunnel, verify which layer selected the port:
- direct CLI:
--portorCODING_TOOLS_MCP_PORT, default8000 - wrapper or tunnel script: check the script arguments and exported environment
- client config: ensure the URL path ends in
/mcp
Deployment checklist
- Run the server in the smallest workspace that still supports the task.
- Use
--tool-profile read-onlywhen the remote client only needs inspection. - Use Bearer auth or OAuth for every non-loopback deployment.
- Put the process behind TLS when crossing machine or network boundaries.
- Prefer container or VM isolation before enabling
--permission-mode dangerous. - Treat remote
exec_commandas remote code execution inside the configured workspace boundary.