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()
async def get_plan_by_id(plan_id: int) -> dict:
plan = await get_plan_by_id(plan_id)
async def get_plan(plan_id: int) -> dict:
plan = get_plan_by_id(plan_id)
return plan
@mcp.tool()
async def get_plan_list() -> list[dict]:
plans = await fetch_plans()
plans = fetch_plans()
return [
{
"id": p["id"],