fix: disabled mcp display issue
Co-Authored-By: Dario Ruellan <6965667+druellan@users.noreply.github.com>
This commit is contained in:
co-authored by
Dario Ruellan
parent
319d3e8856
commit
911eecac85
@@ -107,7 +107,7 @@ async def get_tools(
|
||||
|
||||
# MCP Tool Servers
|
||||
for server in request.app.state.config.TOOL_SERVER_CONNECTIONS:
|
||||
if server.get("type", "openapi") == "mcp":
|
||||
if server.get("type", "openapi") == "mcp" and server.get("config", {}).get("enable"):
|
||||
server_id = server.get("info", {}).get("id")
|
||||
auth_type = server.get("auth_type", "none")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user