Skip to main content
Glama

AWS CodePipeline MCP Server

by cuongdev
stop_pipeline_execution.ts1.27 kB
import { CodePipelineManager } from "../types.js"; export const stopPipelineExecutionSchema = { name: "stop_pipeline_execution", description: "Stop a pipeline execution", inputSchema: { type: "object", properties: { pipelineName: { type: "string", description: "Name of the pipeline" }, executionId: { type: "string", description: "Execution ID" }, reason: { type: "string", description: "Optional reason for stopping" } }, required: ["pipelineName", "executionId"], }, } as const; export async function stopPipelineExecution( codePipelineManager: CodePipelineManager, input: { pipelineName: string; executionId: string; reason?: string; } ) { const { pipelineName, executionId, reason } = input; const codepipeline = codePipelineManager.getCodePipeline(); await codepipeline.stopPipelineExecution({ pipelineName, pipelineExecutionId: executionId, reason: reason || 'Stopped by user', abandon: false }).promise(); return { content: [ { type: "text", text: JSON.stringify({ message: "Pipeline execution stopped successfully" }, 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