Skip to content

Commit c8acda3

Browse files
authored
Merge pull request #6109 from chezsmithy/fix-mcp-yaml
fix: 🐛 Add requestOptions to YAML config for mcp
2 parents 0aa508d + 81c20c1 commit c8acda3

File tree

1 file changed

+6
-1
lines changed
  • packages/config-yaml/src/schemas

1 file changed

+6
-1
lines changed

packages/config-yaml/src/schemas/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import * as z from "zod";
22
import { commonModelSlugs } from "./commonSlugs.js";
33
import { dataSchema } from "./data/index.js";
4-
import { modelSchema, partialModelSchema } from "./models.js";
4+
import {
5+
modelSchema,
6+
partialModelSchema,
7+
requestOptionsSchema,
8+
} from "./models.js";
59

610
export const contextSchema = z.object({
711
name: z.string().optional(),
@@ -19,6 +23,7 @@ const mcpServerSchema = z.object({
1923
args: z.array(z.string()).optional(),
2024
env: z.record(z.string()).optional(),
2125
connectionTimeout: z.number().gt(0).optional(),
26+
requestOptions: requestOptionsSchema.optional(),
2227
});
2328

2429
export type MCPServer = z.infer<typeof mcpServerSchema>;

0 commit comments

Comments
 (0)