Skip to main content
Glama
heroku

Heroku MCP server

Official
by heroku

pipelines_list

List available Heroku pipelines, check ownership, access, organization, and configurations. Output data in JSON for enhanced visibility and integration.

Instructions

View available Heroku pipelines. Use this tool when you need to: 1) List accessible pipelines, 2) Check pipeline ownership and access, 3) View pipeline organization, 4) Find specific pipeline configurations. The tool provides pipeline visibility with optional JSON output format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNoOutput in json format

Implementation Reference

  • Handler function for 'pipelines_list' tool: builds and executes Heroku CLI 'pipelines' command with optional JSON flag using CommandBuilder and herokuRepl, processes output with handleCliOutput.
    async (options: PipelinesListOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.PIPELINES) .addFlags({ json: options.json }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); }
  • Zod schema and TypeScript type definition for input options of pipelines_list tool (optional json flag).
    export const pipelinesListOptionsSchema = z.object({ json: z.boolean().optional().describe('Enable JSON output') }); export type PipelinesListOptions = z.infer<typeof pipelinesListOptionsSchema>;
  • Registration function that calls server.tool to register the 'pipelines_list' tool with its name, description, schema, and inline handler.
    export const registerPipelinesListTool = (server: McpServer, herokuRepl: HerokuREPL): void => { server.tool( 'pipelines_list', 'Lists accessible Heroku pipelines with ownership and configuration details', pipelinesListOptionsSchema.shape, async (options: PipelinesListOptions): Promise<McpToolResponse> => { const command = new CommandBuilder(TOOL_COMMAND_MAP.PIPELINES) .addFlags({ json: options.json }) .build(); const output = await herokuRepl.executeCommand(command); return handleCliOutput(output); } ); };
  • src/index.ts:95-95 (registration)
    Invocation of the registration function for pipelines_list tool during server setup.
    pipelines.registerPipelinesListTool(server, herokuRepl);

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/heroku/heroku-mcp-server'

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