Skip to content

fix(sentry): drop the MCP probe 406 from beforeSend - #359

Merged
harlan-zw merged 1 commit into
mainfrom
fix/issue-357
Oct 2, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/issue-357

Conversation

@harlan-github-agent

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Closes #357

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

The daily-checkin routine flagged SKILLD-35: an Accept-less GET /api/mcp probe archives a new unresolved Sentry issue even though the transport already answered the probe with an intended 406. The streamable transport raises the same error it returns, so Nitro forwards it to Sentry as unhandled and every bot probe files a duplicate of a response the client already got:

Error: Not Acceptable: Client must accept text/event-stream

The POST probe that misses one of the two accepted types carries the same prefix ('Not Acceptable: Client must accept both application/json and text/event-stream'); both strings are in the installed SDK 1.30.1, so the filter matches the prefix. The page-level 406 ('Supported types: text/html, text/markdown, text/plain') does not match and still lands.

This drops the signature next to the KV-write and upstream-outage drops from #176. One thing to know: the match is a message prefix, so an SDK release that rewords the refusal would start landing again and resurface at check-in.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 1, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-02 02:10 UTC.

GitHub merged this pull request.

No material findings were recorded.

4c0661c5-0315-4e41-93ab-5aa11af92dba

@harlan-github-agent harlan-github-agent Bot added harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 1, 2026
@harlan-zw
harlan-zw merged commit d16b733 into main Oct 2, 2026
6 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Oct 2, 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.

Accept-less /api/mcp probes land as unresolved Sentry issues

1 participant