Skip to main content
Glama

Thunder Client License Manager MCP Server

by chezsmithy

thunderclient_remove_license

Remove Thunder Client licenses for specified email addresses using the API tool. Manage license assignments efficiently by inputting valid email addresses for removal.

Instructions

Remove Thunder Client licenses for specified email addresses

Input Schema

NameRequiredDescriptionDefault
emailsYesArray of email addresses to remove licenses for

Input Schema (JSON Schema)

{ "properties": { "emails": { "description": "Array of email addresses to remove licenses for", "items": { "format": "email", "type": "string" }, "minItems": 1, "type": "array" } }, "required": [ "emails" ], "type": "object" }

Implementation Reference

  • Core implementation of the tool: sends POST request to Thunder Client API /api/license/remove with accountNumber and emails to remove licenses.
    async removeLicense(request: RemoveLicenseRequest): Promise<ApiResponse> { const url = `${this.config.baseUrl}/api/license/remove`; const body = { accountNumber: this.getAccountNumber(), emails: request.emails }; try { const response = await fetch(url, { method: 'POST', headers: this.getHeaders('application/json'), body: JSON.stringify(body) }); const data = await response.json().catch(() => ({})); if (!response.ok) { return { success: false, error: `HTTP ${response.status}: ${response.statusText}`, data }; } return { success: true, data, message: `Successfully removed licenses for ${request.emails.length} email(s)` }; } catch (error) { return { success: false, error: `Request failed: ${error instanceof Error ? error.message : String(error)}` }; } }
  • MCP tool call handler: validates input, delegates to API client, and formats response.
    case 'thunderclient_remove_license': { const removeRequest = (args || {}) as unknown as RemoveLicenseRequest; if (!removeRequest.emails || !Array.isArray(removeRequest.emails) || removeRequest.emails.length === 0) { throw new McpError( ErrorCode.InvalidParams, 'emails array is required and must contain at least one email address' ); } const result = await this.apiClient.removeLicense(removeRequest); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:107-125 (registration)
    Registers the tool with MCP server: defines name, description, and input schema.
    { name: 'thunderclient_remove_license', description: 'Remove Thunder Client licenses for specified email addresses', inputSchema: { type: 'object', properties: { emails: { type: 'array', items: { type: 'string', format: 'email', }, description: 'Array of email addresses to remove licenses for', minItems: 1, }, }, required: ['emails'], }, },
  • Type definition for the tool input: array of email strings.
    export interface RemoveLicenseRequest { emails: string[]; }

Other Tools

Related Tools

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/chezsmithy/thunderclient-license-manager-mcp'

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