docs: README setup for non-Claude MCP clients (opencode, Cursor, LangChain, Agent SDK)#40
Open
mschreib28 wants to merge 1 commit into
Open
docs: README setup for non-Claude MCP clients (opencode, Cursor, LangChain, Agent SDK)#40mschreib28 wants to merge 1 commit into
mschreib28 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 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\n\nAdds 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 colbymchenry#65 and colbymchenry#79 ask for.\n\nCloses colbymchenry#65, colbymchenry#79.\n\n## What's added\n\nA new section right after the existing MCP Tools table, covering five client shapes:\n\n- opencode —opencode.jsonmcp.<name>block withtype: "local"+commandarray\n- Cursor —~/.cursor/mcp.jsonmcpServers.<name>block (Anthropic-style stdio shape)\n- LangChain (MultiServerMCPClient) — Python dict withcommand/args/transport: "stdio". Issue colbymchenry#65 was specifically tripping on SSE config — the section calls out that the server is stdio-only.\n- Claude Agent SDK — PythonClaudeAgentOptions(mcp_servers=...)withallowed_tools=["mcp__codegraph__*"]\n- Generic stdio MCP fallback — a 3-row table (command,args,transport) for any other client, plus a note about--pathfor clients that don't sendrootUriin the initialize request\n\nA closing note points SSE-only clients at supergateway as a stdio→SSE bridge.\n\n## Test plan\n\n- [x] Reviewed the rendered Markdown locally\n- [x] Verified the field names against each client's actual docs:\n - opencode: https://opencode.ai/docs/mcp-servers/\n - Claude Agent SDK: https://code.claude.com/docs/en/agent-sdk/mcp\n - LangChain: langchain-ai/langchain-mcp-adapters README\n- [x] Verifiedcodegraph serve --mcp --path <dir>flag exists insrc/bin/codegraph.ts:1031\n- [x] Verified the server readsrootUrifrom theinitializerequest insrc/mcp/index.ts:257\n\n🤖 Generated with Claude Code\nCopied from colbymchenry/codegraph#96