fix:修复streamable_http连接显示失败的bug

This commit is contained in:
li1553770945 2025-05-26 21:41:09 +08:00
parent 0e057bec1a
commit b1f0675b5e

View File

@ -68,6 +68,7 @@ export class McpClient {
this.transport = new StreamableHTTPClientTransport( this.transport = new StreamableHTTPClientTransport(
new URL(this.options.url) new URL(this.options.url)
); );
break;
default: default:
throw new Error(`Unsupported connection type: ${this.options.connectionType}`); throw new Error(`Unsupported connection type: ${this.options.connectionType}`);
} }