validate_config
Check devpipe config.toml files for syntax and structure errors to ensure pipeline configurations are valid before execution.
Instructions
Validate one or more devpipe config.toml files for syntax and structure errors.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configs | No | Paths to config files to validate. If not provided, validates config.toml in current directory. |
Implementation Reference
- src/index.ts:387-411 (handler)Handler for the validate_config tool: checks if devpipe is installed, constructs and executes the 'devpipe validate' command on provided config paths (defaults to 'config.toml'), and returns the command's output, exit code, and validity status.case 'validate_config': { const devpipeCheck = await checkDevpipeInstalled(); if (!devpipeCheck.installed) { throw new Error(devpipeCheck.error); } const configs = (args?.configs as string[]) || ['config.toml']; const command = `devpipe validate ${configs.join(' ')}`; const result = await executeDevpipe(command); return { content: [ { type: 'text', text: JSON.stringify({ command, exitCode: result.exitCode, valid: result.exitCode === 0, stdout: result.stdout, stderr: result.stderr, }, null, 2), }, ], }; }
- src/index.ts:142-155 (registration)Registration of the 'validate_config' tool in the MCP server's tool list, including its name, description, and input schema definition.{ name: 'validate_config', description: 'Validate one or more devpipe config.toml files for syntax and structure errors.', inputSchema: { type: 'object', properties: { configs: { type: 'array', items: { type: 'string' }, description: 'Paths to config files to validate. If not provided, validates config.toml in current directory.', }, }, }, },
- src/index.ts:145-154 (schema)Input schema for the validate_config tool, defining an optional array of config file paths.inputSchema: { type: 'object', properties: { configs: { type: 'array', items: { type: 'string' }, description: 'Paths to config files to validate. If not provided, validates config.toml in current directory.', }, }, },