allow sse MCP definition in config-yaml

This commit is contained in:
Nate 2025-05-22 22:34:20 -07:00
parent 7497b4f1de
commit 92ea6676b0
3 changed files with 6 additions and 5 deletions

View file

@ -71,7 +71,7 @@ function convertYamlMcpToContinueMcp(
command: server.command,
args: server.args ?? [],
env: server.env,
},
} as any, // TODO: Fix the mcpServers types in config-yaml (discriminated union)
timeout: server.connectionTimeout,
};
}
@ -458,7 +458,7 @@ async function configYamlToContinueConfig(options: {
transport: {
type: "stdio",
args: [],
...server,
...(server as any), // TODO: fix the types on mcpServers in config-yaml
},
timeout: server.connectionTimeout,
})),

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "1.1.38",
"version": "1.1.39",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "1.1.38",
"version": "1.1.39",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "^1.0.14",

View file

@ -9,9 +9,10 @@ export const contextSchema = z.object({
params: z.any().optional(),
});
// TODO: This should be a discriminated union by type
const mcpServerSchema = z.object({
name: z.string(),
command: z.string(),
command: z.string().optional(),
type: z.enum(["sse", "stdio"]).optional(),
url: z.string().optional(),
faviconUrl: z.string().optional(),