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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/index.ts:355-385 (handler)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: [], }, }, ],
- src/index.ts:275-279 (schema)Input schema definition for the 'check_ugrep_installation' tool, which takes no parameters.inputSchema: { type: "object", properties: {}, required: [], },
- src/index.ts:121-128 (helper)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; } }