Skip to main content
Glama

AWS CodePipeline MCP Server

by cuongdev
trigger_pipeline.ts979 B
import { CodePipelineManager } from "../types.js"; export const triggerPipelineSchema = { name: "trigger_pipeline", description: "Trigger a pipeline execution", inputSchema: { type: "object", properties: { pipelineName: { type: "string", description: "Name of the pipeline" } }, required: ["pipelineName"], }, } as const; export async function triggerPipeline( codePipelineManager: CodePipelineManager, input: { pipelineName: string; } ) { const { pipelineName } = input; const codepipeline = codePipelineManager.getCodePipeline(); const response = await codepipeline.startPipelineExecution({ name: pipelineName }).promise(); const executionId = response.pipelineExecutionId || ''; return { content: [ { type: "text", text: JSON.stringify({ message: "Pipeline triggered successfully", executionId }, null, 2), }, ], }; }

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