whoop-revoke-user-access
Revoke user access tokens to terminate WHOOP API authorization and secure fitness data access when needed.
Instructions
Revoke the access token granted by the user
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/whoop-api.ts:54-56 (handler)The core implementation of the 'whoop-revoke-user-access' tool. Makes a DELETE request to the Whoop API endpoint '/user/access' to revoke the user's access token.async revokeUserAccess(): Promise<void> { await this.client.delete('/user/access'); }
- src/mcp-server.ts:325-335 (handler)MCP server switch case handler that calls the WhoopApiClient's revokeUserAccess method and returns a success response.case 'whoop-revoke-user-access': { await this.whoopClient.revokeUserAccess(); return { content: [ { type: 'text', text: 'User access revoked successfully', }, ], }; }
- src/mcp-server.ts:53-60 (registration)Tool registration in the ListTools response, defining the tool 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-60 (schema)Input schema definition for the tool (empty object, no required parameters).inputSchema: { type: 'object', properties: {}, required: [], }, },