Skip to content

Streamable http server #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

srajan1202
Copy link

@srajan1202 srajan1202 commented Jun 16, 2025

Added support for streamableHttp Server to start streamable httpServer just pass argument --mcp-transport=http

To Try

run
npm run build

Then

node dist/index.js --mcp-transport=http

Issue #17

@srajan1202 srajan1202 requested a review from a team as a code owner June 16, 2025 08:17
Copy link

cla-checker-service bot commented Jun 16, 2025

💚 CLA has been signed

@srajan1202
Copy link
Author

Cla signed

@srajan1202 srajan1202 force-pushed the streamable-http-server branch from 3d3017b to 48327c6 Compare June 16, 2025 09:02
@foxyterkel
Copy link

Hello, we are super lucky to have a similar issue on the day you opened this PR. We pulled it, built it, and started the server. But we struggle to get an answer from the method. We do request to localhost:3002/mcp with payload
{“jsonrpc": "2.0", "method": "get_mappings", "params": {"index": "our-index"}, "id": "1"}
and keep getting errors like:
{"jsonrpc":"2.0","id":"1","error":{"code":-32601,"message":"Method not found"}}
Are we missing something? It seems like the right query.

@srajan1202
Copy link
Author

srajan1202 commented Jun 16, 2025

Hello, we are super lucky to have a similar issue on the day you opened this PR. We pulled it, built it, and started the server. But we struggle to get an answer from the method. We do request to localhost:3002/mcp with payload {“jsonrpc": "2.0", "method": "get_mappings", "params": {"index": "our-index"}, "id": "1"} and keep getting errors like: {"jsonrpc":"2.0","id":"1","error":{"code":-32601,"message":"Method not found"}} Are we missing something? It seems like the right query.

Hello, we are super lucky to have a similar issue on the day you opened this PR. We pulled it, built it, and started the server. But we struggle to get an answer from the method. We do request to localhost:3002/mcp with payload {“jsonrpc": "2.0", "method": "get_mappings", "params": {"index": "our-index"}, "id": "1"} and keep getting errors like: {"jsonrpc":"2.0","id":"1","error":{"code":-32601,"message":"Method not found"}} Are we missing something? It seems like the right query.

Refer

https://modelcontextprotocol.io/specification/2025-03-26/server/tools#calling-tools

The JRPC request structure should be like


{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "get_mappings",
    "arguments": {
        "index": "our-index"
    }
  },
  "id": "1"
}


@srajan1202 srajan1202 requested a review from amosctlee June 24, 2025 08:47
@srajan1202
Copy link
Author

buildkite test this

@JoshMock
Copy link
Member

Thanks for the contribution @srajan1202! We're taking a look at this for a bit to make sure your implementation aligns with some architectural changes we're working on at the moment. Will get back to you soon.

@pquentin pquentin requested review from JoshMock and swallez and removed request for a team and amosctlee July 2, 2025 12:17
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.

5 participants