Skip to content

Commit ba8d578

Browse files
author
shiraayal-tadata
committed
skip handle_mcp_connection_mcp_get when creating tools
1 parent 964a318 commit ba8d578

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fastapi_mcp/http_tools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def create_mcp_tools_from_openapi(
8383
if not operation_id:
8484
continue
8585

86+
# Skip MCP's internal tool that doesn't follow the same patterns
87+
if operation_id == "handle_mcp_connection_mcp_get":
88+
continue
89+
8690
# Create MCP tool for this operation
8791
create_http_tool(
8892
mcp_server=mcp_server,

0 commit comments

Comments
 (0)