Skip to content

feat(mcp): transport parity — ingest_coverage + query baseline#167

Merged
SutuSebastian merged 6 commits into
mainfrom
feat/transport-parity-mcp
Jun 5, 2026
Merged

feat(mcp): transport parity — ingest_coverage + query baseline#167
SutuSebastian merged 6 commits into
mainfrom
feat/transport-parity-mcp

Conversation

@SutuSebastian

@SutuSebastian SutuSebastian commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add MCP/HTTP ingest_coverage tool — thin twin of codemap ingest-coverage --json; orchestration lifted to application/ingest-coverage-run.ts.
  • Add optional baseline param on query and query_recipe — one-shot diff vs saved query_baselines, same envelope as CLI query --baseline (including actions on added rows for recipes).
  • Lift baseline diff logic to application/query-baseline.ts (compareQueryBaseline); CLI cmd-query.ts and cmd-ingest-coverage.ts delegate to shared engines.
  • Update MCP tool count 19 → 20; refresh README, mcp-instructions.md, skill templates, glossary, and cmd mcp help.

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.ts
  • bun run typecheck
  • MCP wire: ingest_coverage list + ingest; query/query_recipe baseline diff + error paths
  • HTTP wire: ingest_coverage + baseline success/error status mapping
  • Manual: codemap mcp lists ingest_coverage; ingest fixture then run worst-covered-exports recipe
  • Manual: save_baselinequery_recipe with baseline returns diff envelope

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-bot

changeset-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fb0ea34

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stainless-code/codemap Patch

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

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@SutuSebastian, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 448c722a-efdc-4bb1-a393-14229f2b969d

📥 Commits

Reviewing files that changed from the base of the PR and between 4bfb067 and fb0ea34.

📒 Files selected for processing (22)
  • .changeset/transport-parity-mcp.md
  • README.md
  • docs/architecture.md
  • docs/glossary.md
  • src/application/http-server.test.ts
  • src/application/http-server.ts
  • src/application/ingest-coverage-run.test.ts
  • src/application/ingest-coverage-run.ts
  • src/application/mcp-server.test.ts
  • src/application/mcp-server.ts
  • src/application/mcp-tool-allowlist.ts
  • src/application/query-baseline.test.ts
  • src/application/query-baseline.ts
  • src/application/query-engine.ts
  • src/application/tool-handlers.test.ts
  • src/application/tool-handlers.ts
  • src/cli/bootstrap.ts
  • src/cli/cmd-ingest-coverage.ts
  • src/cli/cmd-mcp.ts
  • src/cli/cmd-query.ts
  • templates/agent-content/mcp-instructions.md
  • templates/agent-content/skill/10-recipes-context.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/transport-parity-mcp

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.
@SutuSebastian SutuSebastian merged commit 231d6cc into main Jun 5, 2026
11 checks passed
@SutuSebastian SutuSebastian deleted the feat/transport-parity-mcp branch June 5, 2026 07:52
@github-actions github-actions Bot mentioned this pull request Jun 5, 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.

1 participant