walidsobhie-code commited on
Commit
5ddf5f9
Β·
1 Parent(s): 3de42e7

fix: Correct FastMCP.add_tool signature for MCP server

Browse files
chat.py β†’ cli/chat.py RENAMED
File without changes
chat_local.py β†’ cli/chat_local.py RENAMED
File without changes
chat_simple.py β†’ cli/chat_simple.py RENAMED
File without changes
enhanced_chat.py β†’ cli/enhanced_chat.py RENAMED
File without changes
inference_api.py β†’ cli/inference_api.py RENAMED
File without changes
run_mcp_server.py β†’ cli/run_mcp_server.py RENAMED
File without changes
web_ui.py β†’ cli/web_ui.py RENAMED
File without changes
src/mcp_server.py CHANGED
@@ -69,7 +69,7 @@ def _register_tool(mcp: FastMCP, tool: BaseTool) -> None:
69
  async def handler(arguments: dict[str, Any]) -> dict[str, Any]:
70
  return _call_tool_sync(tool, arguments)
71
 
72
- mcp.add_tool(tool_name, tool.description, handler, schema)
73
 
74
 
75
  def _register_all_tools(mcp: FastMCP) -> int:
 
69
  async def handler(arguments: dict[str, Any]) -> dict[str, Any]:
70
  return _call_tool_sync(tool, arguments)
71
 
72
+ mcp.add_tool(handler, name=tool_name, description=tool.description)
73
 
74
 
75
  def _register_all_tools(mcp: FastMCP) -> int: