feat: multi-repo MCP with global registry (Phase 2.5) by carlos-alm · Pull Request #16 · optave/ops-codegraph-tool · GitHub
Skip to content

feat: multi-repo MCP with global registry (Phase 2.5)#16

Merged
carlos-alm merged 1 commit into
mainfrom
feat/multi-repo-mcp
Feb 22, 2026
Merged

feat: multi-repo MCP with global registry (Phase 2.5)#16
carlos-alm merged 1 commit into
mainfrom
feat/multi-repo-mcp

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

  • Add global registry at ~/.codegraph/registry.json so AI agents can query multiple codebases from one MCP session
  • New src/registry.js module with atomic-write CRUD operations (load/save/register/unregister/list/resolve)
  • Add optional repo param to all 11 existing MCP tools + new list_repos tool (12th)
  • Add codegraph registry list|add|remove CLI commands
  • Auto-register projects after codegraph build (non-fatal on failure)
  • Export all registry functions from programmatic API (src/index.js)
  • 26 new tests (18 registry unit, 4 MCP unit, 4 CLI integration)
  • Update ROADMAP.md and README.md to mark Phase 2.5 complete

Test plan

  • npx vitest run tests/unit/registry.test.js — 18 tests pass
  • npx vitest run tests/unit/mcp.test.js — 22 tests pass (4 new)
  • npx vitest run tests/integration/cli.test.js — 18 tests pass (4 new)
  • npm test — full suite 322 tests pass
  • npm run lint — clean

🤖 Generated with Claude Code

Add a global registry at ~/.codegraph/registry.json so AI agents can
query multiple codebases from a single MCP session. Projects are
auto-registered on build; an optional `repo` param on every MCP tool
lets agents switch context.

- New src/registry.js with CRUD operations (load/save/register/
  unregister/list/resolve) and atomic writes
- Add optional `repo` param to all 11 existing MCP tools
- Add 12th MCP tool `list_repos` to enumerate registered repos
- Add `codegraph registry list|add|remove` CLI commands
- Auto-register projects after `codegraph build` (non-fatal)
- Export registry functions from programmatic API
- 18 unit tests for registry, 4 new MCP tests, 4 CLI integration tests
- Update ROADMAP.md and README.md to mark Phase 2.5 complete
@greptile-apps

greptile-apps Bot commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

11 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@carlos-alm carlos-alm merged commit 43a79ee into main Feb 22, 2026
14 checks passed
@carlos-alm carlos-alm deleted the feat/multi-repo-mcp branch February 22, 2026 08:08
Zeeeepa pushed a commit to Zeeeepa/codegraph that referenced this pull request Jun 22, 2026
feat: multi-repo MCP with global registry (Phase 2.5)
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.

1 participant