Elffuss BraidHub

kikocis/continue public

allow sse MCP definition in config-yaml
Changeseta9863474fd9a1680bd2e8ad336a269cb06e37a8e4c15ea915fe21364067c220e
AuthorNate <sestinj@gmail.com> · 2025-05-22 22:34 -07:00
CommitterNate <sestinj@gmail.com> · 2025-05-22 22:34 -07:00
Parents39c957b521a8

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 +2 −1
@@ -9,9 +9,10 @@
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(),
1516 type: z.enum(["sse", "stdio"]).optional(),
1617 url: z.string().optional(),
1718 faviconUrl: z.string().optional(),