From 9ef5d3474046e1de3b2cb5560c0e3f3e8313a3eb Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 1 Feb 2026 16:48:37 +0800 Subject: [PATCH] fix mcp cert issues --- koboldcpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 66214d09d..45a15cbd4 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -525,11 +525,15 @@ class MCPStdioClient: class MCPHTTPClient: def __init__(self, url, headers=None, timeout=60.0): + global nocertify self.url = url self.headers = {"Content-Type": "application/json","Accept": "application/json, text/event-stream"} if headers: self.headers.update(headers) self.timeout = timeout + ssl_cert_dir = os.environ.get('SSL_CERT_DIR') + if not ssl_cert_dir and not nocertify and os.name != 'nt': + os.environ['SSL_CERT_DIR'] = '/etc/ssl/certs' def _read_sse(self, response) -> bytes: last_json = None