list_pipelines
Retrieve all AWS CodePipeline pipelines to monitor and manage continuous delivery workflows.
Instructions
List all CodePipeline pipelines
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pipelines"
}
}Input 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;