fix get_plans mcp tool

This commit is contained in:
ipu 2025-08-12 18:15:18 +03:00
parent b0c6778744
commit a6933ecc1c

View file

@ -13,13 +13,13 @@ mcp = FastMCP(
@mcp.tool() @mcp.tool()
async def get_plan_by_id(plan_id: int) -> dict: async def get_plan(plan_id: int) -> dict:
plan = await get_plan_by_id(plan_id) plan = get_plan_by_id(plan_id)
return plan return plan
@mcp.tool() @mcp.tool()
async def get_plan_list() -> list[dict]: async def get_plan_list() -> list[dict]:
plans = await fetch_plans() plans = fetch_plans()
return [ return [
{ {
"id": p["id"], "id": p["id"],