Title: Feature Request: Add tool to fetch job logs by job name (avoid listing all jobs) · Issue #924 · github/github-mcp-server · GitHub
Open Graph Title: Feature Request: Add tool to fetch job logs by job name (avoid listing all jobs) · Issue #924 · github/github-mcp-server
X Title: Feature Request: Add tool to fetch job logs by job name (avoid listing all jobs) · Issue #924 · github/github-mcp-server
Description: Describe the feature or problem you’d like to solve Currently, the GitHub MCP Server exposes the following tools for working with workflow runs and jobs: mcp0_list_workflow_runs mcp0_list_workflow_jobs mcp0_get_job_logs To fetch logs for...
Open Graph Description: Describe the feature or problem you’d like to solve Currently, the GitHub MCP Server exposes the following tools for working with workflow runs and jobs: mcp0_list_workflow_runs mcp0_list_workflow_...
X Description: Describe the feature or problem you’d like to solve Currently, the GitHub MCP Server exposes the following tools for working with workflow runs and jobs: mcp0_list_workflow_runs mcp0_list_workflow_...
Opengraph URL: https://github.com/github/github-mcp-server/issues/924
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Add tool to fetch job logs by job name (avoid listing all jobs)","articleBody":"### Describe the feature or problem you’d like to solve\n\nCurrently, the GitHub MCP Server exposes the following tools for working with workflow runs and jobs:\n\n- `mcp0_list_workflow_runs` \n- `mcp0_list_workflow_jobs` \n- `mcp0_get_job_logs` \n\nTo fetch logs for a particular job, an agent must: \n\n1. Call `mcp0_list_workflow_runs` to find the relevant run. \n2. Call `mcp0_list_workflow_jobs` with the `run_id`. \n3. Iterate through **hundreds or even thousands of jobs** to locate a job by its `name`. \n4. Call `mcp0_get_job_logs` with the `job_id`. \n\nThis approach works for small workflows but becomes **inefficient and impractical for large workflows** (e.g. 1,000+ jobs). Agents often struggle to handle such large responses, and passing the entire job list into context is wasteful. \n\n---\n\n### Proposed solution\n\nIntroduce a new tool such as: \n\n- **`mcp0_get_job_logs_by_name`** \n - Inputs: `run_id`, `job_name` \n - Behavior: Server internally paginates jobs for the given run, finds the job with the given name, and returns its logs. \n\nAlternatively: \n\n- **`mcp0_get_job_by_name`** \n - Inputs: `run_id`, `job_name` \n - Behavior: Server returns the `job_id` only, which can then be passed to the existing `mcp0_get_job_logs`. \n\n**Benefits:** \n- Efficient for large workflows with hundreds/thousands of jobs. \n- Reduces token/context overhead for AI agents. \n- Keeps API usage minimal (avoids unnecessary job list retrieval). \n- Provides a clearer and more direct developer experience. \n\n---\n\n### Example prompts or workflows (for tools/toolsets only)\n\n1. **Fetch logs from a specific job in the latest successful run** \n ```json\n {\n \"tool\": \"mcp0_get_job_logs_by_name\",\n \"arguments\": {\n \"run_id\": 678901234,\n \"job_name\": \"integration-tests\"\n }\n }\n\n2. **Get job ID by name**\n ```json \n{\n \"tool\": \"mcp0_get_job_by_name\",\n \"arguments\": {\n \"run_id\": 678901234,\n \"job_name\": \"build-backend\"\n }\n}\n```\n\n**Simplify common workflow automation**\n - “Fetch the logs for the `lint` job in the most recent successful run of `ci.yml`” \n - “Retrieve job IDs for all `deploy-*` jobs in a workflow run.” \n\n---\n### Additional context\n\n- Large enterprise workflows often include **hundreds or thousands of jobs**. Without server-side filtering by job name, AI agents or clients must inefficiently fetch and parse the entire list. \n- Adding a server-side helper tool would significantly improve scalability and usability. \n\n","author":{"url":"https://github.com/cisco-krsna","@type":"Person","name":"cisco-krsna"},"datePublished":"2025-08-19T09:42:19Z","url":"https://github.com/github/github-mcp-server/issues/924"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6b0d9210-01cd-142f-4a96-e0209db8a11f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93FC:2BB16:2229907:2D16BD4:6B069C9A |
| html-safe-nonce | db51ddd3ba1ed3f623e5fe990ea847d296472e5afe4219aea76fd1967e7148ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0ZDOjJCQjE2OjIyMjk5MDc6MkQxNkJENDo2QjA2OUM5QSIsInZpc2l0b3JfaWQiOiIzNzE1MTU5MDMwODAxODAwMzQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bcc4a522fbbdb65bcb4db3b0fe026c8a3bd2de4bb2f560de38def2dec48905fa |
| hovercard-subject-tag | issue:3333672332 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/924/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b67850d5275170900b880ea99cf7f94bad94c1f5bb80d2253460e65078d5b22/github/github-mcp-server/issues/924 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b67850d5275170900b880ea99cf7f94bad94c1f5bb80d2253460e65078d5b22/github/github-mcp-server/issues/924 |
| og:image:alt | Describe the feature or problem you’d like to solve Currently, the GitHub MCP Server exposes the following tools for working with workflow runs and jobs: mcp0_list_workflow_runs mcp0_list_workflow_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cisco-krsna |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width