Skip to main content
Glama

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
NameRequiredDescriptionDefault
configsNoPaths to config files to validate. If not provided, validates config.toml in current directory.

Implementation Reference

  • 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.', }, }, }, },
  • 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.', }, }, },

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/drewkhoury/devpipe-mcp'

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