fix(goose): use streamable_http instead of sse for MCP transport

This commit is contained in:
2026-02-05 19:48:45 -06:00
parent b43db9320f
commit ccb62dc670

View File

@@ -196,11 +196,16 @@ class GoosePlugin(ToolPlugin):
) )
config_data["extensions"][mcp.name] = { config_data["extensions"][mcp.name] = {
"enabled": True, "enabled": True,
"type": "streamable_http",
"name": mcp.name, "name": mcp.name,
"timeout": 60, "description": mcp.name,
"type": "sse",
"uri": mcp.url, "uri": mcp.url,
"envs": {}, "envs": {},
"env_keys": [],
"headers": {},
"timeout": 600,
"bundled": None,
"available_tools": [],
} }
elif mcp.type == "local": elif mcp.type == "local":
if mcp.name and mcp.command: if mcp.name and mcp.command:
@@ -220,15 +225,20 @@ class GoosePlugin(ToolPlugin):
elif mcp.type in ["docker", "proxy"]: elif mcp.type in ["docker", "proxy"]:
if mcp.name and mcp.host: if mcp.name and mcp.host:
mcp_port = mcp.port or 8080 mcp_port = mcp.port or 8080
mcp_url = f"http://{mcp.host}:{mcp_port}/sse" mcp_url = f"http://{mcp.host}:{mcp_port}/mcp"
self.status.log(f"Adding MCP extension: {mcp.name} - {mcp_url}") self.status.log(f"Adding MCP extension: {mcp.name} - {mcp_url}")
config_data["extensions"][mcp.name] = { config_data["extensions"][mcp.name] = {
"enabled": True, "enabled": True,
"type": "streamable_http",
"name": mcp.name, "name": mcp.name,
"timeout": 60, "description": mcp.name,
"type": "sse",
"uri": mcp_url, "uri": mcp_url,
"envs": {}, "envs": {},
"env_keys": [],
"headers": {},
"timeout": 600,
"bundled": None,
"available_tools": [],
} }
try: try: