autogen icon indicating copy to clipboard operation
autogen copied to clipboard

SSL Certificate Verification Failed when trying to fetch mcp tools

Open appuk45 opened this issue 3 months ago • 0 comments

What happened?

Describe the bug I was trying to add a MCP. When I was using the streamable http server params and was trying to fetch mcp tools from a url of https it was giving the belo error:

httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'localhost'. (_ssl.c:1010)

When I researched about it we have to disable SSL verification. In the requests library of python we have that option. But it is not available here in this case.

Which packages was the bug in?

Python Extensions (autogen-ext)

AutoGen library version.

Python dev (main branch)

Other library version.

No response

Model used

No response

Model provider

OpenAI

Other model provider

No response

Python version

3.12

.NET version

None

Operating system

MacOS

appuk45 avatar Sep 18 '25 13:09 appuk45