tweak: allow mcp servers to include headers (#1096)
This commit is contained in:
parent
2051312d12
commit
a1fdeded3e
2 changed files with 6 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ export namespace MCP {
|
|||
transport: {
|
||||
type: "sse",
|
||||
url: mcp.url,
|
||||
headers: mcp.headers,
|
||||
},
|
||||
}).catch(() => {})
|
||||
if (!client) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue