fix(mcp): restore spec-valid HTTP transport and CLI tools - #3015
fix(mcp): restore spec-valid HTTP transport and CLI tools#3015dajiaohuang wants to merge 3 commits into
Conversation
|
Reviewed. CI hasn't run on this branch (0 check-runs, pending status) — but there's a hard merge blocker independent of that.
Two more worth addressing in the same pass:
The |
|
Addressed the actionable review points in ca8ae33:
Validation: MCP 75/75 tests, HTTP end-to-end 3/3 tests, MCP build, CLI build, and |
Summary
@claude-flow/mcptypeGET /mcpCLAUDE_FLOW_MCP_TOOLSunless an explicit--toolsflag overrides itRoot cause
The CLI package was pinned to
@claude-flow/mcp@3.0.0-alpha.8, whose initialize result used an object-valuedprotocolVersion. The HTTP startup path also created a standalone MCP server without registering Ruflo's CLI tools, leaving only four built-ins.Bridging the tools exposed a second compatibility issue: the MCP registry rejected valid JSON Schema nodes without an explicit
type, even though its execution validator already treats a missing type as an unconstrained JSON value.The default hostname could resolve to one loopback family only. The dual-bind implementation now attaches both loopback transports to one MCP server, so sessions, tool state, and notifications are shared across IPv4 and IPv6.
Validation
@claude-flow/mcp: 75 tests passedbin/cli.jshas not been builtgit diff --checkpassednullexit code after successful shutdown rather than numeric 0Release blocker
As of 2026-08-14, npm still publishes
@claude-flow/mcponly through3.0.0-alpha.9. This PR intentionally pins the CLI to exact3.0.0-alpha.10, because that package contains the schema compatibility required to register all CLI tools. The PR remains Draft until a maintainer publishes@claude-flow/mcp@3.0.0-alpha.10; only then can the CLI dependency be installed outside the workspace.Closes #2990