feat: add stateless Streamable HTTP transport for remote MCP clients#6
Open
marceloceccon wants to merge 1 commit into
Open
feat: add stateless Streamable HTTP transport for remote MCP clients#6marceloceccon wants to merge 1 commit into
marceloceccon wants to merge 1 commit into
Conversation
| const handler = createHttpHandler(config, { mcpPath, enableHealth: true, auth }); | ||
| return await handler(request); | ||
| } catch (err) { | ||
| console.error("ai-consensus-mcp worker error:", err); |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
ai-consensus-mcp | 0d8be10 | Jun 27 2026, 06:19 AM |
…ients Expose consensus over stateless Streamable HTTP alongside unchanged stdio: handler and Node server, serve --http CLI flags, Bearer API-key auth, and a Cloudflare Worker entry with a single repo-root wrangler.toml (free-tier safe). Includes CodeQL hardening (path normalization, sanitized errors, table escaping), HTTP integration tests, and a deploy preflight that rejects paid-only cpu_ms limits.
2dd0892 to
0d8be10
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class remote MCP support via stateless Streamable HTTP while keeping the existing stdio path unchanged.
ai-consensus-mcp serve --httpfor Node deployments (--host,--port,--path)createHttpHandler()+loadConfigFromJson()for Web Standard runtimes (Cloudflare Workers)examples/cloudflare/server.jsonstreamable-http manifestMotivation
Enable self-hosted public deployment and registration at grok.com/connectors so remote clients can discover and call the full consensus tool surface (
consensus+ all panel tools).Test plan
npm test— 333 tests passnpm run test:smoke— stdio smoke unchangednpm run check— typecheck, lint, format, coveragelistTools, progress notifications,AbortSignalcancellation