whoop-revoke-user-access
Revoke user access tokens to terminate WHOOP API authorization and secure fitness data access.
Instructions
Revoke the access token granted by the user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.ts:325-335 (handler)MCP server tool handler for 'whoop-revoke-user-access' that calls the WhoopApiClient method and returns success response.case 'whoop-revoke-user-access': { await this.whoopClient.revokeUserAccess(); return { content: [ { type: 'text', text: 'User access revoked successfully', }, ], }; }
- src/whoop-api.ts:54-56 (helper)Core implementation in WhoopApiClient: sends DELETE request to Whoop API endpoint '/user/access' to revoke user access.async revokeUserAccess(): Promise<void> { await this.client.delete('/user/access'); }
- src/mcp-server.ts:52-60 (registration)Tool registration in the ListTools response, including name, description, and input schema (no parameters required).{ name: 'whoop-revoke-user-access', description: 'Revoke the access token granted by the user', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/mcp-server.ts:55-59 (schema)Input schema definition for the tool (empty object, no required parameters).inputSchema: { type: 'object', properties: {}, required: [], },