Skip to content

feat: Add HTTP REST transport for MCP server#38

Merged
ideaoforder merged 2 commits into
commerce-operations-foundation:developfrom
GrayWandererr:feat/http-transport
Jun 4, 2026
Merged

feat: Add HTTP REST transport for MCP server#38
ideaoforder merged 2 commits into
commerce-operations-foundation:developfrom
GrayWandererr:feat/http-transport

Conversation

@AJITHMELVIN

Copy link
Copy Markdown
Contributor

What:
Adds src/http-server.ts, an Express-based HTTP wrapper that exposes all 12 onX MCP tools as REST endpoints.

Why:
Enables non-stdio clients (Docker Compose, REST integrations, Juniper Commerce) to call the MCP server over HTTP, while preserving existing stdio transport behavior.

What changed:

  • New file: server/src/http-server.ts
  • New script in server/package.json: start:http
  • Reuses the existing built-in mock adapter
  • No adapter changes required

GrayWandererr and others added 2 commits March 18, 2026 17:06
Exposes all 12 onX tools as REST endpoints via http-server.ts.
Used by Juniper Commerce docker-compose with the mock adapter.
Includes health check, tools list, and CORS support.

Made-with: Cursor

@ideaoforder ideaoforder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we'd like some tests around this, please and thank you

@ideaoforder ideaoforder merged commit aa4d6ce into commerce-operations-foundation:develop Jun 4, 2026
5 checks passed
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.

3 participants