Skip to content

Unable to disable SSL verification for sse or streamable-http MCP service #6215

@AfterStories

Description

@AfterStories

Before submitting your bug report

Relevant environment info

Description

My sse / streamable-http MCP server needs to verify SSL. Currently, I need to turn off SSL verification for debugging.
In the config.yaml file, I can configure the following parameters to AI model to turn off SSL verification:

requestOptions:
verifySsl: false

But this configuration does not work in the mcpServers configuration item.

In the current code, only requestOptions.headers is used, BUT ,requestOptions.verifySsl is not used, so even if I configure verifySsl in config.yaml, it is not really used. so I can't turn off verifySsl for my mcp URL

core/context/mcp/MCPConnection.ts

case "streamable-http":
return new StreamableHTTPClientTransport(
new URL(options.transport.url),
{
requestInit: { headers: options.transport.requestOptions?.headers },
},
);

To reproduce

No response

Log output

Metadata

Metadata

Assignees

Labels

area:mcpRelates to Model Context Protocol (MCP)good-first-issueSuggested issue for new contributorskind:bugIndicates an unexpected problem or unintended behaviorpriority:mediumIndicates medium priority

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions