disconnect-strava
Remove your Strava account connection and delete stored credentials to log out or disconnect from the Strava MCP Server.
Instructions
Disconnect your Strava account and remove stored credentials. Use this when the user wants to logout, disconnect, or remove their Strava connection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/connectStrava.ts:89-117 (handler)The implementation of the `disconnect-strava` tool, which clears configuration and removes environment variables related to Strava.
export const disconnectStravaTool = { name: 'disconnect-strava', description: 'Disconnect your Strava account and remove stored credentials. Use this when the user wants to logout, disconnect, or remove their Strava connection.', inputSchema: z.object({}), execute: async (): Promise<{ content: Array<{ type: 'text'; text: string }> }> => { try { const { clearConfig } = await import('../config.js'); await clearConfig(); // Clear from process.env as well delete process.env.STRAVA_ACCESS_TOKEN; delete process.env.STRAVA_REFRESH_TOKEN; return { content: [{ type: 'text' as const, text: '✅ Disconnected from Strava. Your credentials have been removed.\n\nTo reconnect, just say "Connect my Strava account".', }], }; } catch (error: any) { return { content: [{ type: 'text' as const, text: `❌ Error disconnecting: ${error.message}`, }], }; } }, };