You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
507 B
Python

from __future__ import annotations
from mcp.server.fastmcp import FastMCP
from app.mcp.tools import check_availability as check_availability_impl
mcp = FastMCP(
"Personal Agent MCP",
streamable_http_path="/",
)
@mcp.tool(description="Check Google Calendar availability for a time range.")
def check_availability(
start: str,
end: str,
calendar_ids: list[str] | None = None,
) -> dict[str, object]:
return check_availability_impl(start=start, end=end, calendar_ids=calendar_ids)