Skip to content

feat: add stateless Streamable HTTP transport for remote MCP clients#6

Open
marceloceccon wants to merge 1 commit into
mainfrom
feat/streamable-http-remote
Open

feat: add stateless Streamable HTTP transport for remote MCP clients#6
marceloceccon wants to merge 1 commit into
mainfrom
feat/streamable-http-remote

Conversation

@marceloceccon

Copy link
Copy Markdown
Member

Summary

Adds first-class remote MCP support via stateless Streamable HTTP while keeping the existing stdio path unchanged.

  • ai-consensus-mcp serve --http for Node deployments (--host, --port, --path)
  • createHttpHandler() + loadConfigFromJson() for Web Standard runtimes (Cloudflare Workers)
  • Cloudflare Workers example under examples/cloudflare/
  • HTTP integration tests (listTools, validation, progress, cancellation)
  • README section for Grok custom connector registration, plus server.json streamable-http manifest

Motivation

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 pass
  • npm run test:smoke — stdio smoke unchanged
  • npm run check — typecheck, lint, format, coverage
  • HTTP integration: listTools, progress notifications, AbortSignal cancellation

Comment thread src/http/handler.ts Fixed
Comment thread src/http/node-server.ts Fixed
Comment thread examples/cloudflare/worker.ts Fixed
Comment thread src/http/handler.ts Fixed
Comment thread src/http/node-server.ts Fixed
const handler = createHttpHandler(config, { mcpPath, enableHealth: true, auth });
return await handler(request);
} catch (err) {
console.error("ai-consensus-mcp worker error:", err);
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 26, 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
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.
@marceloceccon marceloceccon force-pushed the feat/streamable-http-remote branch from 2dd0892 to 0d8be10 Compare June 27, 2026 06:18
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.

2 participants