Skip to main content
Glama
ko1ynnky

GitHub Actions MCP Server

by ko1ynnky

get_workflow_run

Retrieve detailed information about a specific GitHub Actions workflow run by providing the repository owner, repository name, and run ID.

Instructions

Get details of a specific workflow run

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYesRepository owner (username or organization)
repoYesRepository name
runIdYesThe ID of the workflow run

Implementation Reference

  • The main handler function that retrieves a specific GitHub Actions workflow run by owner, repo, and runId using the GitHub API.
    export async function getWorkflowRun( owner: string, repo: string, runId: number ) { owner = validateOwnerName(owner); repo = validateRepositoryName(repo); const url = `https://api.github.com/repos/${owner}/${repo}/actions/runs/${runId}`; const response = await githubRequest(url); return WorkflowRunSchema.parse(response); }
  • Zod schema for input validation of the get_workflow_run tool.
    export const GetWorkflowRunSchema = z.object({ owner: z.string().describe("Repository owner (username or organization)"), repo: z.string().describe("Repository name"), runId: z.number().describe("The ID of the workflow run"), });
  • src/index.ts:188-194 (registration)
    MCP tool registration for get_workflow_run, specifying name, input schema, and execution handler.
    "get_workflow_run", actions.GetWorkflowRunSchema.shape, async (request: any) => { const result = await actions.getWorkflowRun(request.owner, request.repo, request.runId); return { content: [{ type: "text", text: JSON.stringify(result) }] }; } );

Other Tools

Related Tools

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/ko1ynnky/github-actions-mcp-server'

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