Changesets · Branches · Tags · Compare
| Changeset | a9863474fd9a1680bd2e8ad336a269cb06e37a8e4c15ea915fe21364067c220e |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-05-22 22:34 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-05-22 22:34 -07:00 |
| Parents | 39c957b521a8 |
3 files changed
modified core/config/yaml/loadYaml.ts +2 −2
| @@ -71,7 +71,7 @@ | ||
| 71 | 71 | command: server.command, |
| 72 | 72 | args: server.args ?? [], |
| 73 | 73 | env: server.env, |
| 74 | - }, | |
| 74 | + } as any, // TODO: Fix the mcpServers types in config-yaml (discriminated union) | |
| 75 | 75 | timeout: server.connectionTimeout, |
| 76 | 76 | }; |
| 77 | 77 | } |
| @@ -458,7 +458,7 @@ | ||
| 458 | 458 | transport: { |
| 459 | 459 | type: "stdio", |
| 460 | 460 | args: [], |
| 461 | - ...server, | |
| 461 | + ...(server as any), // TODO: fix the types on mcpServers in config-yaml | |
| 462 | 462 | }, |
| 463 | 463 | timeout: server.connectionTimeout, |
| 464 | 464 | })), |
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 @@ | ||
| 9 | 9 | params: z.any().optional(), |
| 10 | 10 | }); |
| 11 | 11 | |
| 12 | +// TODO: This should be a discriminated union by type | |
| 12 | 13 | const mcpServerSchema = z.object({ |
| 13 | 14 | name: z.string(), |
| 14 | - command: z.string(), | |
| 15 | + command: z.string().optional(), | |
| 15 | 16 | type: z.enum(["sse", "stdio"]).optional(), |
| 16 | 17 | url: z.string().optional(), |
| 17 | 18 | faviconUrl: z.string().optional(), |