Skip to main content
Glama
stier1ba

LicenseSpring MCP Server

by stier1ba

floating_borrow

Allocate a floating license for offline use by specifying license key, hardware ID, product, and duration via the LicenseSpring MCP Server.

Instructions

Borrow a floating license for offline use

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
borrowed_untilYes
hardware_idYes
license_keyYes
productYes

Implementation Reference

  • The handler function that executes the floating_borrow tool logic: makes a POST request to the LicenseSpring API endpoint '/api/v4/floating/borrow' and returns the response or formatted error.
    }, async ({ license_key, hardware_id, product, borrowed_until }) => {
      try {
        const response = await apiClient.post('/api/v4/floating/borrow', {
          license_key,
          hardware_id,
          product,
          borrowed_until,
        });
    
        return {
          content: [{
            type: 'text',
            text: JSON.stringify(response.data, null, 2),
          }],
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `Error borrowing floating license: ${handleApiError(error)}`,
          }],
          isError: true,
        };
      }
    });
  • Zod input validation schema for the floating_borrow tool parameters.
    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'),
      borrowed_until: z.string().min(1, 'Borrow expiration date is required'),
    },
  • Registers the floating_borrow tool with the MCP server.
    server.registerTool('floating_borrow', {
  • TypeScript interface defining the input shape for FloatingBorrowRequest, used for typing the tool handler parameters.
    export interface FloatingBorrowRequest {
      license_key: string;
      hardware_id: string;
      product: string;
      borrowed_until: string;
    }

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