- Remove codecontext service block from docker-compose.yml - Remove CODECONTEXT_URL env var - Delete codecontext/Dockerfile - Update callCodecontext() to try boocontext MCP first with HTTP fallback - Graceful degradation: if boocontext MCP unavailable, tools still work via HTTP
codecontext — Go sidecar (DEPRECATED)
Deprecated (Phase 4, Domain 2, v2.8.14).
Superseded by the boocontext MCP server (
apps/coder). Do not add new callers. The 16 codecontext tool wrappers still use this sidecar via HTTP athttp://codecontext:8080/v1/{toolName}for backward compatibility.
Migration path
- Existing tool wrappers in
apps/server/src/services/tools/codecontext/route throughcallCodecontext()incodecontext_client.ts, which calls this Go sidecar over HTTP. - New callers should use the boocontext MCP server instead (reachable via the
boocontexttool wrappers). - After all callers have migrated, remove this directory, the
codecontextservice block fromdocker-compose.yml, and thecodecontext_client.ts/factory.tsfiles.
What it does
A Go HTTP shim wrapping the boocontext MCP server's stdio interface. Provides
code-graph analysis (symbols, callers, callees, file overview, etc.) over a
REST API at /v1/{toolName}.
Files
shim.go— HTTP server that wraps the boocontext MCP stdio processDockerfile— container buildfork.tar.gz— vendored boocontext source (gitignored).codecontextignore.template— default ignore patterns deployed per project