Client integration
Coding Tools MCP can be launched by a client over stdio or reached over HTTP at/mcp. Choose stdio for local editor-style integrations and HTTP for long-running local or remote services.
Stdio client configuration
Use this pattern when the client starts the server process:HTTP client configuration
Start the server:OAuth mode
For clients that support OAuth 2.1 Authorization Code + PKCE, enable:CODING_TOOLS_MCP_SERVER_URL, CODING_TOOLS_MCP_OAUTH_CLIENT_ID, CODING_TOOLS_MCP_OAUTH_CLIENT_SECRET, CODING_TOOLS_MCP_OAUTH_PASSWORD, and CODING_TOOLS_MCP_OAUTH_TOKEN_SECRET.
The server exposes OAuth metadata through the standard well-known endpoints when OAuth is enabled.
Tool discovery
Afterinitialize, clients should call tools/list. The active tool set depends on --tool-profile:
fullexposes all implemented tools.read-onlyhides mutating and permission-changing tools.compat-readonly-allis for compatibility with clients that requirereadOnlyHint: trueannotations.
Session behavior
HTTP responses include anMcp-Session-Id header. If a later request sends an unknown Mcp-Session-Id, the server returns an unknown-session error. Stdio sessions are tied to the subprocess lifetime.
Recommended client defaults
- Prefer
--stdiofor single-workspace local usage. - Prefer HTTP plus Bearer token or OAuth for a persistent service.
- Start with
--tool-profile read-onlyfor inspection-only clients. - Use
--permission-mode trustedonly when the client needs to run local development commands that safe mode blocks. - Avoid
dangerousunless the whole server is already inside an external sandbox.