Skip to content

feat: Add HTTP REST transport for MCP server#38

Open
AJITHMELVIN wants to merge 2 commits intocommerce-operations-foundation:developfrom
GrayWandererr:feat/http-transport
Open

feat: Add HTTP REST transport for MCP server#38
AJITHMELVIN wants to merge 2 commits intocommerce-operations-foundation:developfrom
GrayWandererr:feat/http-transport

Conversation

@AJITHMELVIN
Copy link
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
Copy link
Collaborator

@ideaoforder ideaoforder left a comment

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

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