Skip to main content
Glama
cuongdev
by cuongdev

list_pipelines

Retrieve all AWS CodePipeline pipelines to monitor and manage continuous delivery workflows.

Instructions

List all CodePipeline pipelines

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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