check_devpipe
Verify devpipe installation status and retrieve version details to ensure the pipeline runner is properly configured for task execution.
Instructions
Check if devpipe is installed and get version information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/utils.ts:17-27 (handler)Core implementation of the check_devpipe tool: asynchronously checks if devpipe is installed by executing 'devpipe --version', returns installation status, version if available, or error message with installation instructions.export async function checkDevpipeInstalled(): Promise<{ installed: boolean; version?: string; error?: string }> { try { const { stdout } = await execAsync('devpipe --version'); return { installed: true, version: stdout.trim() }; } catch (error) { return { installed: false, error: 'devpipe not found. Install it with: brew install drewkhoury/tap/devpipe' }; } }
- src/index.ts:218-225 (registration)MCP tool registration for 'check_devpipe': defines the tool name, description, and empty input schema (no parameters required) in the ListToolsRequestHandler response.{ name: 'check_devpipe', description: 'Check if devpipe is installed and get version information.', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:326-336 (handler)MCP CallToolRequestHandler implementation for 'check_devpipe': invokes the checkDevpipeInstalled utility function and returns the result as formatted JSON text content.case 'check_devpipe': { const result = await checkDevpipeInstalled(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/utils.ts:17-17 (schema)TypeScript type definition/schema for the checkDevpipeInstalled function return value, specifying the structure of the tool's output: { installed: boolean; version?: string; error?: string }.export async function checkDevpipeInstalled(): Promise<{ installed: boolean; version?: string; error?: string }> {
- src/utils.ts:12-12 (helper)Helper utility: promisifies child_process.exec for asynchronous command execution used in checkDevpipeInstalled.const execAsync = promisify(exec);