Skip to content

fix(mcp): merge hot-cold cache and context-cold into MCP index#202

Merged
manojmallick merged 1 commit into
manojmallick:mainfrom
rudi193-cmd:fix/mcp-hot-cold-index
May 22, 2026
Merged

fix(mcp): merge hot-cold cache and context-cold into MCP index#202
manojmallick merged 1 commit into
manojmallick:mainfrom
rudi193-cmd:fix/mcp-hot-cold-index

Conversation

@rudi193-cmd
Copy link
Copy Markdown
Contributor

Summary

Fixes #201 — under strategy: hot-cold, MCP tools only read the sparse hot block in copilot-instructions.md, so list_modules, search_signatures, query_context, and explain_file return near-empty results even when context-cold.md and .sigmap-cache.json are populated.

Changes

  • buildSigIndex() merges signatures from:
    1. Primary adapter output (existing behavior)
    2. .github/context-cold.md
    3. .sigmap-cache.json (absolute paths → repo-relative keys)
  • MCP handlers use the unified index / merged context text
  • Integration test: hot-cold: MCP buildSigIndex includes cold file and cache (issue #201)

Test plan

  • node test/integration/strategy.test.js (9/9 pass)

Made with Cursor

MCP tools only read the sparse hot block in copilot-instructions.md under
hot-cold strategy. buildSigIndex now merges context-cold.md and
.sigmap-cache.json; handlers use the unified index.

Fixes manojmallick#201

Co-authored-by: Cursor <cursoragent@cursor.com>
@rudi193-cmd rudi193-cmd requested a review from manojmallick as a code owner May 20, 2026 17:57
@manojmallick manojmallick merged commit fb06e7e into manojmallick:main May 22, 2026
4 checks passed
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.

MCP server returns near-empty results under hot-cold strategy — appears to read inline block, not cold file or cache

2 participants