Elffuss BraidHub

kikocis/continue public

Merge pull request #5811 from continuedev/nate/sse

Nate/sse
Changeset8fdd1cf6fd08aebd9632680ea498afe073d5cc61430cca1610fd7190355638de
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-05-22 22:45 -07:00
CommitterGitHub <noreply@github.com> · 2025-05-22 22:45 -07:00
Parents7cf339d22ff0, a9863474fd9a

Browse the files at this changeset

3 files changed

modified core/config/yaml/loadYaml.ts +2 −2
@@ -71,7 +71,7 @@
7171 command: server.command,
7272 args: server.args ?? [],
7373 env: server.env,
74- },
74+ } as any, // TODO: Fix the mcpServers types in config-yaml (discriminated union)
7575 timeout: server.connectionTimeout,
7676 };
7777 }
@@ -458,7 +458,7 @@
458458 transport: {
459459 type: "stdio",
460460 args: [],
461- ...server,
461+ ...(server as any), // TODO: fix the types on mcpServers in config-yaml
462462 },
463463 timeout: server.connectionTimeout,
464464 })),
modified extensions/vscode/package-lock.json +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified packages/config-yaml/src/schemas/index.ts +5 −2
@@ -9,13 +9,16 @@
99 params: z.any().optional(),
1010 });
1111
12+// TODO: This should be a discriminated union by type
1213 const mcpServerSchema = z.object({
1314 name: z.string(),
14- command: z.string(),
15+ command: z.string().optional(),
16+ type: z.enum(["sse", "stdio"]).optional(),
17+ url: z.string().optional(),
1518 faviconUrl: z.string().optional(),
1619 args: z.array(z.string()).optional(),
1720 env: z.record(z.string()).optional(),
18- connectionTimeout: z.number().gt(0).optional()
21+ connectionTimeout: z.number().gt(0).optional(),
1922 });
2023
2124 export type MCPServer = z.infer<typeof mcpServerSchema>;