Skip to main content
Glama
pashaydev

Terminal.shop MCP Server

by pashaydev

delete-token

Remove authentication tokens from the Terminal.shop MCP Server to manage API access and security.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenIdYes

Implementation Reference

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

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/pashaydev/terminal.shop.mcp'

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