Skip to main content
Glama
OtotaO
by OtotaO

check_installation

Verify proper installation of Unsloth software to ensure compatibility and functionality for optimizing and fine-tuning large language models.

Instructions

Check if Unsloth is properly installed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'check_installation' tool. Calls the checkUnslothInstallation helper method and returns a success or error text response based on whether Unsloth is installed.
    case 'check_installation': { const isInstalled = await this.checkUnslothInstallation(); if (!isInstalled) { return { content: [ { type: 'text', text: 'Unsloth is not installed. Please install it with: pip install unsloth', }, ], isError: true, }; } return { content: [ { type: 'text', text: 'Unsloth is properly installed.', }, ], }; }
  • src/index.ts:70-77 (registration)
    Registration of the 'check_installation' tool in the list of tools, including name, description, and empty input schema.
    { name: 'check_installation', description: 'Check if Unsloth is properly installed', inputSchema: { type: 'object', properties: {}, }, },
  • Helper method that executes a Python command to check if the 'unsloth' package can be imported, indicating proper installation.
    private async checkUnslothInstallation(): Promise<boolean> { try { await execPromise('python -c "import unsloth"'); return true; } catch (error) { return false; } }

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/OtotaO/unsloth-mcp-server'

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