tweak: allow mcp servers to include headers (#1096)

This commit is contained in:
Aiden Cline
2025-07-17 09:11:48 -05:00
committed by GitHub
parent 2051312d12
commit a1fdeded3e
3 changed files with 6 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ export namespace Config {
type: z.literal("remote").describe("Type of MCP server connection"),
url: z.string().describe("URL of the remote MCP server"),
enabled: z.boolean().optional().describe("Enable or disable the MCP server on startup"),
headers: z.record(z.string(), z.string()).optional().describe("Headers to send with the request"),
})
.strict()
.openapi({

View File

@@ -37,6 +37,7 @@ export namespace MCP {
transport: {
type: "sse",
url: mcp.url,
headers: mcp.headers,
},
}).catch(() => {})
if (!client) {