Skip to content

Mcp streamable http #5829

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 27, 2025
Merged

Conversation

maxxrdrgz
Copy link
Contributor

Description

Added initial implementation for supporting the StreamableHTTP transport from the MCP sdk. It's a pretty simple implementation. I tested this on an Arm Mac. Addresses #5738 and #5790 .

From what I've seen so far, StreamableHTTP looks to be a drop in replacement for SSE and that's more or less what we see here with my PR.

More options may be needed in the MCPConnection.ts. But this is a good starting point that allows for http headers.

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

@maxxrdrgz maxxrdrgz requested a review from a team as a code owner May 24, 2025 17:19
@maxxrdrgz maxxrdrgz requested review from RomneyDa and removed request for a team May 24, 2025 17:19
Copy link

cubic-dev-ai bot commented May 24, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

Copy link

netlify bot commented May 24, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 1f29af4
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/6834bc3dafea3e00088a78a1

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 24, 2025
@chezsmithy
Copy link
Contributor

@maxxrdrgz looks like you might have one test failing. Thanks for getting this PR together.

@maxxrdrgz
Copy link
Contributor Author

@chezsmithy yep. I took a quick look at it this morning and find it a bit confusing. I plan on having another look at it later today. Thanks!

- stdio needs about ~30ms to fully connect now. not 1ms.
RomneyDa
RomneyDa previously approved these changes May 26, 2025
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

@maxxrdrgz this looks great! Could you pull main and resolve merge conflicts? Would love to get this merged

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs May 26, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 26, 2025
@maxxrdrgz
Copy link
Contributor Author

@RomneyDa done :-)

Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

Great addition of streamable mcp support!

@RomneyDa RomneyDa merged commit 9483908 into continuedev:main May 27, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs May 27, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants