docs: README setup for non-Claude MCP clients (opencode, Cursor, LangChain, Agent SDK)#96
Open
andreinknv wants to merge 1 commit into
Open
docs: README setup for non-Claude MCP clients (opencode, Cursor, LangChain, Agent SDK)#96andreinknv wants to merge 1 commit into
andreinknv wants to merge 1 commit into
Conversation
Adds a "Using with Other MCP Clients" section to the README with copy-pastable config for opencode, Cursor, LangChain (MultiServerMCPClient), and the Claude Agent SDK, plus a generic stdio-MCP fallback. Each client gets the exact field names it actually expects (the existing README only documented the Claude Code / ~/.claude.json shape). Notes: - The CodeGraph MCP server speaks stdio only, so the LangChain example explicitly passes `transport: "stdio"` (the issue reporter had been trying to use SSE config) and there's a closing note pointing SSE-only clients at supergateway as a bridge. - The generic-fallback section documents the `--path` flag for clients that don't send a `rootUri` in the initialize request. Closes colbymchenry#65, colbymchenry#79. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a "Using with Other MCP Clients" section to the README. The current README only documents the Claude Code /
~/.claude.jsonsetup, which leaves users of other MCP clients (opencode, Cursor, LangChain, the Anthropic Agent SDK) guessing at the right config shape — that's what issues #65 and #79 ask for.Closes #65, #79.
What's added
A new section right after the existing MCP Tools table, covering five client shapes:
opencode.jsonmcp.<name>block withtype: "local"+commandarray~/.cursor/mcp.jsonmcpServers.<name>block (Anthropic-style stdio shape)MultiServerMCPClient) — Python dict withcommand/args/transport: "stdio". Issue Does it support other AI assistants besides Claude #65 was specifically tripping on SSE config — the section calls out that the server is stdio-only.ClaudeAgentOptions(mcp_servers=...)withallowed_tools=["mcp__codegraph__*"]command,args,transport) for any other client, plus a note about--pathfor clients that don't sendrootUriin the initialize requestA closing note points SSE-only clients at supergateway as a stdio→SSE bridge.
Test plan
codegraph serve --mcp --path <dir>flag exists insrc/bin/codegraph.ts:1031rootUrifrom theinitializerequest insrc/mcp/index.ts:257🤖 Generated with Claude Code