Repository navigation
fix(mcp): treat missing community listing as caller error - #1318
Conversation
community_get threw a plain Error when listing_id was missing or delisted, so routine agent lookups opened Sentry issues (KODY-CLOUDFLARE-47). Use McpCallerError so they stay on mcp-event. Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe community get capability now throws ChangesCommunity get error handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
🔎 Preview deployed: https://kody-pr-1318.kody-a99.workers.dev Worker: Mocks:
|
Intent
Stop routine
community_getmisses (missing/delisted listing ids) from opening Sentry platform-bug issues.Summary
community_getnow throwsMcpCallerErrorwhen the listing is not found (same message).McpCallerErroronmcp-eventand out of Sentry.Testing
packages/worker/src/mcp/capabilities/community/get.node.test.ts(missing listing →McpCallerError)npm run validateSystem recap — composes existing primitives (low risk)
Mode: recap · Base:
main@c6d9536a· Head:1fffcabaClassification: composes — wires existing
McpCallerErrorclassification into thecommunity_getnot-found path; no new primitives or schema changes.Primitives touched
community-listingsMcpCallerErrormcp-serverSystem map
Missing/delisted listing ids classify as caller-fixable MCP failures instead of Sentry platform bugs.
Legend: green = composes (wiring only) · amber = extended by this PR · red = new primitive · gray = context (unchanged, included only when an edge crosses it).
Summary by CodeRabbit