Skip to content

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 2, 2025

Description

Add support for sse and streamable-http support in mcp for cli

resolves CON-3529
resolves CON-3530

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

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

Screen recording or screenshot

using the deepwiki mcp
  - name: deepwiki mcp
    type: streamable-http
    url: https://mcp.deepwiki.com/mcp
image

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Adds SSE and streamable-http transports for MCP in the CLI, enabling URL-based servers in addition to stdio. Fulfills CON-3529 and CON-3530.

  • New Features
    • Supports type "sse" via SSEClientTransport with optional requestOptions.headers.
    • Supports type "streamable-http" via StreamableHTTPClientTransport with optional headers.
    • Defaults to stdio when type is omitted; preserves PATH, supports cwd.
    • Validates required fields (command for stdio, url for network transports).
    • Adds a unified constructTransport helper and tests for SSE, streamable-http, and default stdio.

@uinstinct uinstinct requested a review from a team as a code owner September 2, 2025 14:56
@uinstinct uinstinct requested review from tingwai and removed request for a team September 2, 2025 14:56
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 2, 2025
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 3, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 3, 2025
@tingwai tingwai merged commit f0bc32a into continuedev:main Sep 3, 2025
85 of 87 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Sep 3, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2025
@uinstinct uinstinct deleted the cli-sse-streamable-mcp branch September 3, 2025 12:23
@sestinj
Copy link
Contributor

sestinj commented Sep 3, 2025

🎉 This PR is included in version 1.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 released size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants