fix get_plans mcp tool
This commit is contained in:
parent
b0c6778744
commit
a6933ecc1c
1 changed files with 3 additions and 3 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue