8000 added sse http support by buggyhunter · Pull Request #208 · upstash/context7 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 7 commits into from
May 28, 2025
Merged

added sse http support #208

merged 7 commits into from
May 28, 2025

Conversation

buggyhunter
Copy link
Contributor

No description provided.

@monkeyDluffy6017
Copy link

hi @enesakar, when will this be merged? I think sse is necessary

@mdogan mdogan requested a review from enesgules May 21, 2025 08:54
@enesgules
Copy link
Collaborator

Hey @monkeyDluffy6017 reviewing now!

@buggyhunter buggyhunter requested a review from Copilot May 27, 2025 21:38
Copy link
@Copilot Copilot AI left a 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 })

Copy link
Collaborator
@enesgules enesgules left a comment

Choose a reason for hiding this comment

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

LGTM!

Also did a review with CodeRabbit which didn't detect any issues as well.

image

Fixes #127

@enesgules enesgules merged commit 70b7b49 into master May 28, 2025
@enesgules enesgules deleted the sse-http-support branch May 28, 2025 11:42
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
0