KosmoKrator

other

Strava MCP Integration for OpenAI Agents SDK

Connect Strava to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 5 read 1 write Bearer token auth

Connect Strava to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Strava MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-strava": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=strava",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=strava --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Strava instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Strava Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Strava integration catalog.

MCP toolSource functionTypeDescription
integration__strava__strava_create_activity strava.strava_create_activity Write Create a manual activity on Strava. Requires a name, activity type, start date, and elapsed time in seconds.
integration__strava__strava_get_activity strava.strava_get_activity Read Get detailed information about a specific Strava activity, including distance, pace, elevation, and splits.
integration__strava__strava_get_athlete strava.strava_get_athlete Read Get the authenticated athlete's Strava profile — name, location, follower/following counts, and stats.
integration__strava__strava_get_current_user strava.strava_get_current_user Read Get the current authenticated user's Strava profile. This is an alias for strava_get_athlete — returns name, location, follower/following counts, and stats.
integration__strava__strava_list_activities strava.strava_list_activities Read List recent activities for the authenticated Strava athlete. Supports pagination and date filtering with before/after Unix timestamps.
integration__strava__strava_list_clubs strava.strava_list_clubs Read List clubs the authenticated Strava athlete belongs to. Returns club names, member counts, and sport types.

Related Strava Pages