refactor: remove return type annotations from activity and athlete tools
This commit is contained in:
@@ -12,7 +12,7 @@ def register(mcp: FastMCP, strava: StravaClient) -> None:
|
|||||||
page: int = 1,
|
page: int = 1,
|
||||||
before: str | None = None,
|
before: str | None = None,
|
||||||
after: str | None = None,
|
after: str | None = None,
|
||||||
) -> list[ContentBlock]:
|
):
|
||||||
"""
|
"""
|
||||||
List recent Strava activities for the authenticated user.
|
List recent Strava activities for the authenticated user.
|
||||||
:param limit: Number of activities to return per page (default 10, max 200).
|
:param limit: Number of activities to return per page (default 10, max 200).
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from strava_mcp_server.utils import format_date_iso, format_date_human
|
|||||||
|
|
||||||
def register(mcp: FastMCP, strava: StravaClient) -> None:
|
def register(mcp: FastMCP, strava: StravaClient) -> None:
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
async def get_athlete_profile(ctx: Context) -> list[ContentBlock]:
|
async def get_athlete_profile(ctx: Context):
|
||||||
"""
|
"""
|
||||||
Get the authenticated Strava athlete's profile.
|
Get the authenticated Strava athlete's profile.
|
||||||
Returns name, city, country, follower count, and other profile details.
|
Returns name, city, country, follower count, and other profile details.
|
||||||
@@ -73,7 +73,7 @@ def register(mcp: FastMCP, strava: StravaClient) -> None:
|
|||||||
return [TextContent(type="text", text=error_msg)]
|
return [TextContent(type="text", text=error_msg)]
|
||||||
|
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
async def get_athlete_zones(ctx: Context) -> list[ContentBlock]:
|
async def get_athlete_zones(ctx: Context):
|
||||||
"""
|
"""
|
||||||
Get the heart rate and power zones configured for the authenticated athlete.
|
Get the heart rate and power zones configured for the authenticated athlete.
|
||||||
Returns zone boundaries for both heart rate and power (if a power meter is configured).
|
Returns zone boundaries for both heart rate and power (if a power meter is configured).
|
||||||
@@ -128,7 +128,7 @@ def register(mcp: FastMCP, strava: StravaClient) -> None:
|
|||||||
return [TextContent(type="text", text=error_msg)]
|
return [TextContent(type="text", text=error_msg)]
|
||||||
|
|
||||||
@mcp.tool()
|
@mcp.tool()
|
||||||
async def get_athlete_stats(ctx: Context) -> list[ContentBlock]:
|
async def get_athlete_stats(ctx: Context):
|
||||||
"""
|
"""
|
||||||
Get cumulative training statistics for the authenticated Strava athlete.
|
Get cumulative training statistics for the authenticated Strava athlete.
|
||||||
Includes all-time, year-to-date, and recent (4-week) totals for runs, rides, and swims.
|
Includes all-time, year-to-date, and recent (4-week) totals for runs, rides, and swims.
|
||||||
|
|||||||
Reference in New Issue
Block a user