delete-token
Remove authentication tokens from the Terminal.shop MCP Server to manage API access and security.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tokenId": "<tokenId>"
},
"name": "delete-token"
}
}Input 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, }; } }, );