feat(mcp): transport parity — ingest_coverage + query baseline#167
Conversation
Close the last two agent-relevant transport gaps: MCP/HTTP can load coverage artifacts and diff queries against saved baselines in one call, matching CLI ingest-coverage and query --baseline.
🦋 Changeset detectedLatest commit: fb0ea34 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
More reviews will be available in 44 minutes and 56 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (22)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Lift CLI baseline diff onto compareQueryBaseline, sync consumer docs to 20 tools, transport-neutral baseline error hints, and expand ingest/baseline test coverage.
Expand ingest-coverage and HTTP transport tests, document baseline/ingest_coverage on MCP/HTTP surfaces, and fix V8 runtime test fixtures.
Delete shipped plan docs, fix consumer-surface leak, document ingest_coverage in CSRF guard, and add MCP/HTTP transport tests for baseline compare and ingest_coverage.
Cross-ref MCP/HTTP baseline on query baseline entry, document ingest-coverage-run orchestration layer, and note baseline format incompatibilities in cmd-mcp help.
Summary
ingest_coveragetool — thin twin ofcodemap ingest-coverage --json; orchestration lifted toapplication/ingest-coverage-run.ts.baselineparam onqueryandquery_recipe— one-shot diff vs savedquery_baselines, same envelope as CLIquery --baseline(includingactionsonaddedrows for recipes).application/query-baseline.ts(compareQueryBaseline); CLIcmd-query.tsandcmd-ingest-coverage.tsdelegate to shared engines.mcp-instructions.md, skill templates, glossary, andcmd mcphelp.Changeset
Patch — additive transport parity; no schema version bump.
Test plan
bun test src/application/ingest-coverage-run.test.ts src/application/query-baseline.test.ts src/application/tool-handlers.test.ts src/application/mcp-server.test.ts src/application/http-server.test.tsbun run typecheckingest_coveragelist + ingest;query/query_recipebaseline diff + error pathsingest_coverage+ baseline success/error status mappingcodemap mcplistsingest_coverage; ingest fixture then runworst-covered-exportsrecipesave_baseline→query_recipewithbaselinereturns diff envelope