Skip to content

feat(serve): add multi-graph support to MCP server (#581)#2099

Open
YanisGuerault wants to merge 1 commit into
Graphify-Labs:v8from
YanisGuerault:feat/add-multi-graph-support
Open

feat(serve): add multi-graph support to MCP server (#581)#2099
YanisGuerault wants to merge 1 commit into
Graphify-Labs:v8from
YanisGuerault:feat/add-multi-graph-support

Conversation

@YanisGuerault

@YanisGuerault YanisGuerault commented Jul 22, 2026

Copy link
Copy Markdown

Summary

  • Enable serving multiple knowledge graphs from a single MCP endpoint via --graphs-dir flag or GRAPHS_DIR env var
  • Always registry-based architecture: single graph = 1-entry registry, multi-graph = directory scan — no separate code path
  • Resolve issue MCP server must work with multiple repos #581

Changes

  • Add GraphContext dataclass + GraphRegistry (from_path, from_directory, hot-reload via rescan)
  • Refactor _build_server to accept GraphRegistry with per-call context resolution (_get_ctx)
  • Tool visibility keyed on registry size: list_graphs/use_graph when >1, PR tools when ==1
  • New graph param on all tool schemas (replaces project_path)
  • --graphs-dir CLI flag forces HTTP transport with daemon rescan thread

🤖 Generated with Claude Code

Enable serving multiple knowledge graphs from a single MCP endpoint.
Always registry-based: single graph = 1-entry registry, multi-graph =
directory scan via --graphs-dir flag or GRAPHS_DIR env var.

- Add GraphContext dataclass + GraphRegistry (from_path, from_directory)
- Refactor _build_server to accept GraphRegistry with per-call resolution
- Tool visibility keyed on registry size: list_graphs/use_graph when >1,
  PR tools when ==1. New graph param on all tool schemas.
- Add --graphs-dir CLI flag forcing HTTP transport with auto-rescan
- Remove multi_serve.py and graphify-multi-mcp entry point (consolidated)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@YanisGuerault
YanisGuerault force-pushed the feat/add-multi-graph-support branch from 12f436c to 6d020bd Compare July 22, 2026 10:24
@YanisGuerault YanisGuerault changed the title feat(serve): add multi-graph support to MCP server feat(serve): add multi-graph support to MCP server (#581) Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants