Skip to main content
Glama

check_ugrep_installation

Verify ugrep installation status and access step-by-step setup instructions on CodeSeeker-MCP for efficient code search and transformation tasks.

Instructions

Check if ugrep is installed and get installation instructions

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The handler function for the 'check_ugrep_installation' tool. It calls checkUgrepAvailability() to check if ugrep is installed and returns a text message with installation instructions if not available.
    case "check_ugrep_installation": { const isAvailable = await checkUgrepAvailability(); return { content: [ { type: "text", text: isAvailable ? "✅ ugrep is installed and available!" : `❌ ugrep is not installed. Install it using: **Ubuntu/Debian:** \`\`\`bash sudo apt-get install ugrep \`\`\` **macOS (Homebrew):** \`\`\`bash brew install ugrep \`\`\` **Windows (Chocolatey):** \`\`\`bash choco install ugrep \`\`\` **From source:** Visit https://github.com/Genivia/ugrep for compilation instructions.`, }, ], }; }
  • src/index.ts:272-281 (registration)
    Conditional registration of the 'check_ugrep_installation' tool in the ListToolsRequestSchema handler, only exposed when ugrep is not detected as installed.
    { name: "check_ugrep_installation", description: "Check if ugrep is installed and get installation instructions", inputSchema: { type: "object", properties: {}, required: [], }, }, ],
  • Input schema definition for the 'check_ugrep_installation' tool, which takes no parameters.
    inputSchema: { type: "object", properties: {}, required: [], },
  • Helper function used by the handler to check ugrep installation by attempting to run 'ugrep --version'.
    async function checkUgrepAvailability(): Promise<boolean> { try { await execAsync("ugrep --version"); 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/mixelpixx/CodeSeeker-MCP'

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