fix(management): remove duplicate create_request (management-mode server died at startup) — v1.6.1 #63
Reference in New Issue
Block a user
Delete Branch "fix/mgmt-create-request-collision"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#62 added
create_requestto the management registry, butregisterRequestTools(requests.ts) already registers the same tool name in BOTH modes — the MCP SDK throws on duplicate names, so every management-mode boot died before servinginitialize. The platform-agent image smoke gate caught it on its first real run (template#112 fixed the quoting bug that had masked the gate on every prior run).create_requestis the more general SSOT (recipient user|agent).create_approvalstays (the named tool #61 asked for; no collision — approvals.ts is workspace-mode-only).molecule-platform(the exact smoke assertion).Unblocks: template image publish → repin → concierge gets create_approval (core#2573 chain).
🤖 Generated with Claude Code
APPROVED after 5-axis review of mcp-server#63 head
b808500c.Correctness: removes the duplicate management-registry
create_requestadded in #62 while keepingcreate_approval. That leaves the generalcreate_requestregistered fromrequests.tsas the SSOT in both modes, preventing the MCP SDK duplicate-name startup failure. Version bump to 1.6.1 is appropriate for the rollout fix.Robustness: the test mock now throws on duplicate tool names like the real SDK, and the composed-server tests cover both management and workspace mode composition. The management-mode test explicitly asserts
create_requestis present via the shared registry andcreate_approvalremains present.Security: no new decision/approval power is added;
decide_approvalremains absent, and removing the duplicate does not broaden request capabilities beyond the existing shared tool.Performance: no runtime cost; it removes duplicate registration work.
Readability: comments clearly document why
create_requestmust not be duplicated in management.CI / test is green and the PR is mergeable=true.