examples: add an MFS MCP server (code & context search)#146
Merged
Conversation
…ient) A ~60-line Model Context Protocol server over the Python SDK that exposes MFS search/read as tools, so any MCP client (Claude Code, Cursor, Codex, …) can use every MFS-indexed source as context — in the spirit of claude-context, but unified across all sources rather than one codebase. Add the runnable example under examples/mfs-mcp/ and an Integrations docs page; list it in the nav and overview. Verified end to end: against an isolated MFS with an indexed corpus, the stdio MCP client lists and calls both tools with correct results, and a real Claude Code session (registered via 'claude mcp add', driven through cc-use) called the tools and answered correctly. Signed-off-by: Cheney Zhang <chen.zhang@zilliz.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.
What
A small Model Context Protocol server that exposes MFS
search/readas tools, so any MCP client (Claude Code, Cursor, Codex, Windsurf, …) can use every MFS-indexed source as context — code, docs, issues, chat, databases. In the spirit of claude-context ("make the codebase the context for any coding agent"), but unified over all sources rather than one codebase, and only ~60 lines over the Python SDK.examples/mfs-mcp/server.py+ README — the runnable server (FastMCP overmfs_sdk).docs/integrations/mcp.md— the integration page; added to the nav and the Integrations overview.Verified end to end
search,read) and calls both, getting correct results.claude mcp add(claude mcp list→✔ Connected), then a real Claude Code session (driven via cc-use) calledsearch+readand correctly identified the rate-limiter function and its source URI.mkdocs build --strictpasses.