Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}`,
                    }],
                };
            }
        },
    };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LimeON-source/Strava-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server