Skip to main content
Glama
stier1ba

LicenseSpring MCP Server

by stier1ba

get_installation_file

Generate download details for installation files by providing a license key, hardware ID, and product identifier. Integrates with LicenseSpring MCP Server for streamlined license management.

Instructions

Get installation file download information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hardware_idYes
license_keyYes
productYes

Implementation Reference

  • The asynchronous handler function that performs an API GET request to fetch installation file data using the provided license_key, hardware_id, and product parameters. It returns the JSON response or an error message.
    }, async ({ license_key, hardware_id, product }) => {
      try {
        const queryParams = new URLSearchParams({
          license_key,
          hardware_id,
          product,
        });
        const response = await apiClient.get(`/api/v4/installation_file?${queryParams}`);
    
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2),
          }],
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `Error getting installation file: ${handleApiError(error)}`,
          }],
          isError: true,
        };
      }
    });
  • Zod-based input schema defining required string parameters: license_key, hardware_id, and product.
    inputSchema: {
      license_key: z.string().min(1, 'License key is required'),
      hardware_id: z.string().min(1, 'Hardware ID is required'),
      product: z.string().min(1, 'Product code is required'),
    },
  • Registers the 'get_installation_file' tool on the MCP server with title, description, input schema, and inline handler function.
    server.registerTool('get_installation_file', {
      title: 'Get Installation File',
      description: 'Get installation file download information',
      inputSchema: {
        license_key: z.string().min(1, 'License key is required'),
        hardware_id: z.string().min(1, 'Hardware ID is required'),
        product: z.string().min(1, 'Product code is required'),
      },
    }, async ({ license_key, hardware_id, product }) => {
      try {
        const queryParams = new URLSearchParams({
          license_key,
          hardware_id,
          product,
        });
        const response = await apiClient.get(`/api/v4/installation_file?${queryParams}`);
    
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2),
          }],
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `Error getting installation file: ${handleApiError(error)}`,
          }],
          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/stier1ba/licensespring-mcp'

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