Skip to main content
Glama

mcp-server-circleci

Official
getLatestPipelineWorkflows.ts667 B
import { getCircleCIClient } from '../../clients/client.js'; export type GetLatestPipelineWorkflowsParams = { projectSlug: string; branch?: string; }; export const getLatestPipelineWorkflows = async ({ projectSlug, branch, }: GetLatestPipelineWorkflowsParams) => { const circleci = getCircleCIClient(); const pipelines = await circleci.pipelines.getPipelines({ projectSlug, branch, }); const latestPipeline = pipelines?.[0]; if (!latestPipeline) { throw new Error('Latest pipeline not found'); } const workflows = await circleci.workflows.getPipelineWorkflows({ pipelineId: latestPipeline.id, }); return workflows; };

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/CircleCI-Public/mcp-server-circleci'

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