mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2026-03-21 22:56:48 +00:00
fix(goose): use streamable_http instead of sse for MCP transport
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user