WIP: PAIN2

This commit is contained in:
2026-03-05 14:43:45 -05:00
parent 0e3b479bd6
commit fca57841c6
8 changed files with 162 additions and 104 deletions

View File

@@ -927,6 +927,10 @@ def dispatch(tool_name: str, tool_input: dict[str, Any]) -> str:
return get_tree(path, int(tool_input.get("max_depth", 2)))
return f"ERROR: unknown MCP tool '{tool_name}'"
def get_tool_schemas() -> list[dict[str, Any]]:
"""Returns the list of tool specifications for the AI."""
return list(MCP_TOOL_SPECS)
# ------------------------------------------------------------------ tool schema helpers
# These are imported by ai_client.py to build provider-specific declarations.