list_pipelines
Retrieve a comprehensive list of all AWS CodePipeline pipelines using this built-in tool, enabling streamlined pipeline management and monitoring within the AWS environment.
Instructions
List all CodePipeline pipelines
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/tools/list_pipelines.ts:13-32 (handler)The handler function for the 'list_pipelines' MCP tool. It retrieves the CodePipeline client from the manager, lists all pipelines, formats summaries (name, version, created, updated), and returns them as JSON text content.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, specifying name, description, and empty input schema (no parameters required).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 CallToolRequestHandler switch statement, which invokes the handler with the CodePipelineManager.case "list_pipelines": { return await listPipelines(codePipelineManager); }
- src/index.ts:113-113 (registration)The listPipelinesSchema is included in the tools list returned by the MCP ListToolsRequestHandler.listPipelinesSchema,
- src/index.ts:9-12 (registration)Import statement for the listPipelines handler and schema from the tools directory.import { listPipelines, listPipelinesSchema } from "./tools/list_pipelines.js";