refactor: remove return type annotations from activity and athlete tools
CI/CD Pipeline / Lint & Check (push) Failing after 9s
CI/CD Pipeline / Build & Push Docker Image (push) Has been skipped

This commit is contained in:
2026-05-12 23:28:47 +02:00
parent c69e362635
commit 7c089d90c5
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ def register(mcp: FastMCP, strava: StravaClient) -> None:
page: int = 1,
before: str | None = None,
after: str | None = None,
) -> list[ContentBlock]:
):
"""
List recent Strava activities for the authenticated user.
:param limit: Number of activities to return per page (default 10, max 200).
+3 -3
View File
@@ -6,7 +6,7 @@ from strava_mcp_server.utils import format_date_iso, format_date_human
def register(mcp: FastMCP, strava: StravaClient) -> None:
@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.
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)]
@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.
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)]
@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.
Includes all-time, year-to-date, and recent (4-week) totals for runs, rides, and swims.