commit
af06ec3d6d
3 changed files with 9 additions and 6 deletions
|
|
@ -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,
|
||||
})),
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -9,13 +9,16 @@ 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(),
|
||||
args: z.array(z.string()).optional(),
|
||||
env: z.record(z.string()).optional(),
|
||||
connectionTimeout: z.number().gt(0).optional()
|
||||
connectionTimeout: z.number().gt(0).optional(),
|
||||
});
|
||||
|
||||
export type MCPServer = z.infer<typeof mcpServerSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue