list_pipelines
Retrieve all AWS CodePipeline pipelines to monitor and manage continuous delivery workflows.
Instructions
List all CodePipeline pipelines
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/list_pipelines.ts:13-32 (handler)The handler function that implements the core logic of the 'list_pipelines' tool. It retrieves the list of pipelines from AWS CodePipeline via the CodePipelineManager and returns a formatted MCP-compatible response.export async function listPipelines(codePipelineManager: CodePipelineManager) { const codepipeline = codePipelineManager.getCodePipeline(); const response = await codepipeline.listPipelines().promise(); const pipelines = response.pipelines?.map((pipeline: AWS.CodePipeline.PipelineSummary) => ({ name: pipeline.name || '', version: pipeline.version || 0, created: pipeline.created?.toISOString() || '', updated: pipeline.updated?.toISOString() || '' })) || []; return { content: [ { type: "text", text: JSON.stringify({ pipelines }, null, 2), }, ], }; }
- src/tools/list_pipelines.ts:3-11 (schema)The schema definition for the 'list_pipelines' tool, including name, description, and empty input schema since it takes no parameters.export const listPipelinesSchema = { name: "list_pipelines", description: "List all CodePipeline pipelines", inputSchema: { type: "object", properties: {}, required: [], }, } as const;
- src/index.ts:136-138 (registration)Registration of the 'list_pipelines' tool handler in the MCP server's CallToolRequestSchema handler switch statement.case "list_pipelines": { return await listPipelines(codePipelineManager); }
- src/index.ts:113-113 (registration)Inclusion of the 'list_pipelines' schema in the listTools response.listPipelinesSchema,
- src/index.ts:9-12 (registration)Import of the listPipelines handler and listPipelinesSchema from the tools module.import { listPipelines, listPipelinesSchema } from "./tools/list_pipelines.js";