Skip to content

feat: shared MCP wrapper for codebase-memory-mcp with cache-hosted incremental index#38547

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/add-shared-agentic-workflow
Closed

feat: shared MCP wrapper for codebase-memory-mcp with cache-hosted incremental index#38547
Copilot wants to merge 3 commits into
mainfrom
copilot/add-shared-agentic-workflow

Conversation

Copilot AI commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Adds .github/workflows/shared/mcp/codebase-memory-mcp.md — a reusable shared component wrapping codebase-memory-mcp, a zero-dependency structural code-intelligence MCP server (159-language tree-sitter + Hybrid LSP, 14 tools).

Design

  • Persistent index: ~/.cache/codebase-memory-mcp is symlinked into cache-memory so the SQLite knowledge graph survives across runs
  • Incremental re-indexing: index_repository auto-detects the existing store on subsequent runs and only re-indexes git-diff-changed files; full index only on first run
  • Native MCP server: uses mcp-servers.command: (stdio) — same pattern as agentdb.md — started after the pre-index step completes

Allowed tools (read-oriented defaults)

index_repository, index_status, list_projects, search_graph, trace_path, detect_changes, query_graph, get_graph_schema, get_code_snippet, get_architecture, search_code, ingest_traces

delete_project and manage_adr are excluded; manage_adr can be re-enabled per-workflow.

Usage

network:
  allowed:
    - node   # npm install -g codebase-memory-mcp
imports:
  - shared/mcp/codebase-memory-mcp.md

tools.cache-memory: true is injected by the import.

Copilot AI and others added 2 commits June 11, 2026 07:47
…ntal index

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…mcp setup steps

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title feat: add shared/mcp/codebase-memory-mcp.md — cache-hosted incremental code-graph index feat: shared MCP wrapper for codebase-memory-mcp with cache-hosted incremental index Jun 11, 2026
Copilot AI requested a review from pelikhan June 11, 2026 07:49
steps:
- name: Install codebase-memory-mcp
run: |
npm install -g codebase-memory-mcp

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

disable scripts, pin version

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot npm disable scripts, pin version

…tall

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@copilot npm disable scripts, pin version

Done in 6ac76e3. Pinned to codebase-memory-mcp@0.7.0 and added --ignore-scripts. The binary-download postinstall (install.js) is now invoked explicitly in the next line so the intent is auditable.

Copilot AI requested a review from pelikhan June 11, 2026 12:01
@pelikhan pelikhan closed this Jun 11, 2026
@github-actions github-actions Bot deleted the copilot/add-shared-agentic-workflow branch June 19, 2026 03:04
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