Skip to main content
Glama
by cuongdev

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • 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), }, ], }; }
  • 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";

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

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