delete-token
Remove authentication tokens from the Terminal.shop MCP Server to manage API access and security.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes |
Implementation Reference
- server.js:1133-1162 (handler)The complete implementation of the 'delete-token' tool, registered via server.tool(). Includes input schema (tokenId: z.string()), and the handler function that deletes the token using terminalApi.delete and returns appropriate success or error response.server.tool( "delete-token", { tokenId: z.string(), }, async ({ tokenId }) => { try { await terminalApi.delete(`/token/${tokenId}`); return { content: [ { type: "text", text: `Token deleted successfully`, }, ], }; } catch (error) { console.error(`Error deleting token ${tokenId}:`, error); return { content: [ { type: "text", text: `Error deleting token: ${error.message}`, }, ], isError: true, }; } }, );