pipelines_info
View pipeline stage configurations, check connected applications, verify settings, and monitor status on the Heroku platform using this tool for comprehensive pipeline details.
Instructions
Display detailed pipeline configuration. Use this tool when you need to: 1) View pipeline stage configuration, 2) Check connected applications, 3) Verify pipeline settings, 4) Monitor pipeline status. The tool provides comprehensive pipeline information and structure details.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Output in json format | |
| pipeline | Yes | Name of the pipeline to get info for |
Implementation Reference
- src/tools/pipelines.ts:147-157 (handler)Handler function for the 'pipelines_info' tool. It constructs a CommandBuilder for 'pipelines:info', adds flags and positional arguments based on input options, executes the command via herokuRepl, and processes the output with handleCliOutput.async (options: PipelinesInfoOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.PIPELINES_INFO) .addFlags({ json: options.json }) .addPositionalArguments({ pipeline: options.pipeline }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); }
- src/tools/pipelines.ts:44-47 (schema)Zod schema defining the input parameters for the pipelines_info tool: required 'pipeline' string and optional 'json' boolean.export const pipelinesInfoOptionsSchema = z.object({ pipeline: z.string().describe('Target pipeline name'), json: z.boolean().optional().describe('Enable JSON output') });
- src/tools/pipelines.ts:142-159 (registration)Registration function that adds the 'pipelines_info' tool to the MCP server, providing name, description, schema, and inline handler.export const registerPipelinesInfoTool = (server: McpServer, herokuRepl: HerokuREPL): void => { server.tool( 'pipelines_info', 'Displays detailed pipeline configuration, stages, and connected applications', pipelinesInfoOptionsSchema.shape, async (options: PipelinesInfoOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.PIPELINES_INFO) .addFlags({ json: options.json }) .addPositionalArguments({ pipeline: options.pipeline }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); } ); };
- src/index.ts:96-96 (registration)Invocation of the registerPipelinesInfoTool during server initialization to register the tool.pipelines.registerPipelinesInfoTool(server, herokuRepl);
- src/utils/tool-commands.ts:51-51 (helper)Constant mapping for the CLI command string used by the pipelines_info tool handler.PIPELINES_INFO: 'pipelines:info',