-
Notifications
You must be signed in to change notification settings - Fork 557
added sse http support #208
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
Conversation
hi @enesakar, when will this be merged? I think sse is necessary |
Hey @monkeyDluffy6017 reviewing now! |
cdd3526
to
9434477
Compare
9434477
to
c2f695d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds HTTP and SSE support for the MCP server, allowing for web-based communication alongside stdio transport.
- Introduces new endpoints for HTTP (/mcp, /sse, /messages, /ping) with proper CORS and error handling.
- Updates the README configuration to reflect the new URL-based commands instead of the previous CLI-based approach.
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/index.ts | Adds HTTP and SSE endpoints with server instance creation and transport handling logic. |
README.md | Updates configuration instructions to use URLs instead of CLI commands. |
Files not reviewed (1)
- package.json: Language not supported
Comments suppressed due to low confidence (1)
src/index.ts:201
- Consider providing an explicit sessionIdGenerator function rather than undefined to ensure reliable session ID generation for the HTTP transport.
const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: undefined })
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.