Skip to content

Cannot configure MCP to use SSE mode in YAML #5359

@jasongwq

Description

@jasongwq

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

I have reviewed the Discord chat logs and the code, and I found that when using YAML configuration for MCP, only the stdio mode can be configured. It would be great if support could be added for configuring SSE and WebSocket modes.

https://discord.com/channels/1108621136150929458/1357364237219139615

function convertYamlMcpToContinueMcp(
server: MCPServer,
): ExperimentalMCPOptions {
return {
transport: {
type: "stdio",
command: server.command,
args: server.args ?? [],
env: server.env,
},
};
}

continue/core/config/types.ts

Lines 1009 to 1029 in fb1935d

interface StdioOptions {
type: "stdio";
command: string;
args: string[];
}
interface WebSocketOptions {
type: "websocket";
url: string;
}
interface SSEOptions {
type: "sse";
url: string;
}
type TransportOptions = StdioOptions | WebSocketOptions | SSEOptions;
export interface MCPOptions {
transport: TransportOptions;
}

Solution

No response

Metadata

Metadata

Assignees

Labels

area:configurationRelates to configuration optionsgood-first-issueSuggested issue for new contributorskind:enhancementIndicates a new feature request, imrovement, or extensionpriority:mediumIndicates medium priority

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions