Skip to content

fix(mcpb): sync mcp-server bridge type enum to match Worker (patch) - #115

Merged
liplus-lin-lay merged 1 commit into
mainfrom
114-bridge-enum-sync
Apr 24, 2026
Merged

liplus-lin-lay merged 1 commit into
mainfrom
114-bridge-enum-sync

Conversation

@liplus-lin-lay

Copy link
Copy Markdown
Member

Closes #114
Refs #109

#109 の真因訂正。昨日の DO init() cache 仮説は誤り、真犯人は mcp-server/server/index.js の JSON inputSchema 側が 6 値のまま PR #107 で更新漏れしていたこと。bridge が client-side validation で新 type を弾いていたため、Worker 側の 9 値化が surface されていなかった。

bridge の inputSchema.type.enum を 9 値に同期し、description も 3 comment-level type を説明する文言に更新。

v0.8.1 release 時に .mcpb が CD で再 build + npm publish されて Claude Desktop 側に配布される。V2 rename の作業 (#110/#112) は Worker 側の schema 更新として正しく稼働しているので roll back しない。

mcp-server/server/index.js is the stdio bridge installed via .mcpb into
Claude Desktop / Claude Code. It carries its own JSON inputSchema that the
client validates against before any request is proxied to the Worker. PR #107
expanded Worker-side zod enum to 9 values (adding issue_comment / pr_review /
pr_review_comment), but the bridge's enum was not updated, so requests with
the new types were rejected client-side long before reaching the Worker.

This was the real root cause of #109 (search_issues type=issue_comment being
stuck on the 6-value enum). Yesterday's RagMcpAgent -> V2 rename migration
(PR #110 / #112) updated the Worker side but the bridge-side validation still
blocked requests, so the effect was not visible. V2 deployment is retained;
this fix does not roll back that work.

Update:
- inputSchema.type.enum -> 9 values matching src/mcp.ts
- enum description clarifies the three comment-level types
- tool-level description widens to mention comments, PR reviews, and inline
  review comments

#109 の真因は DO init() cache ではなく bridge 側の JSON schema が 6 値に
停まっていたこと。PR #107 で Worker 側は 9 値に拡張済みだったが bridge
が更新されておらず、client validation でリクエストが弾かれていた。本修正
で bridge を同期する。

Closes #114
Refs #109
@liplus-lin-lay liplus-lin-lay self-assigned this Apr 24, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
github-rag-mcp aeb8758 Apr 24 2026, 09:36 AM

@liplus-lin-lay liplus-lin-lay left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI self-review: #109 の真因訂正。bridge の hard-coded JSON schema を Worker-side zod enum と同値 (9値) に同期。description も 3 comment-level type と tool scope を追加。Workers Builds も含め 3 checks green、auto mode → squash merge。

@liplus-lin-lay
liplus-lin-lay merged commit f0f5501 into main Apr 24, 2026
5 checks passed
@liplus-lin-lay
liplus-lin-lay deleted the 114-bridge-enum-sync branch April 24, 2026 09:37
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.

fix(mcpb): sync mcp-server bridge type enum with Worker (9 values)

1 participant