Skip to content

fix(mcp): respect ssl_verify config for StreamableHTTP/SSE servers (salvage #13038)#14343

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-17b001fb
Apr 23, 2026
Merged

fix(mcp): respect ssl_verify config for StreamableHTTP/SSE servers (salvage #13038)#14343
teknium1 merged 2 commits into
mainfrom
hermes/hermes-17b001fb

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvages #13038 by @lmoncany onto current main.

Adds ssl_verify: bool = True config knob to MCP server entries in config.yaml. Threads it through both httpx client constructions in _run_http — the StreamableHTTP path (line 1025) and the SSE fallback path (line 1054). Default True means no behavior change; users running a self-hosted MCP server with a self-signed cert on their LAN can now set ssl_verify: false in their server config block.

Clean 3-line addition, symmetric across both transport branches.

Closes #13038. Author attribution preserved via cherry-pick.

lmoncany and others added 2 commits April 22, 2026 21:16
When an MCP server config has ssl_verify: false (e.g. local dev with
a self-signed cert), the setting was read from config.yaml but never
passed to the httpx client, causing CERTIFICATE_VERIFY_FAILED errors
and silent connection failures.

Fix: read ssl_verify from config and pass it as the 'verify' kwarg to
both code paths:
- New API (mcp >= 1.24.0): httpx.AsyncClient(verify=ssl_verify)
- Legacy API (mcp < 1.24.0): streamablehttp_client(..., verify=ssl_verify)

Fixes local dev setups using ServBay, LocalWP, MAMP, or any stack with
a self-signed TLS certificate.
@teknium1 teknium1 merged commit f347315 into main Apr 23, 2026
10 of 11 checks passed
@teknium1 teknium1 deleted the hermes/hermes-17b001fb branch April 23, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants