GitHub Actions Optimization with Pipetrics MCP
Use Pipetrics MCP for GitHub Actions optimization in Codex, Claude Code, and OpenCode. Analyze CI/CD time, cost, failures, and workflow bottlenecks.
Overview
Pipetrics MCP makes measured GitHub Actions data available to Codex, Claude Code, OpenCode, or any other compatible MCP client. Use it for GitHub Actions optimization: find slow workflows, queue delays, failed spend, job bottlenecks, and regressions.
Pipetrics analyzes workflow telemetry without receiving your source code. Your coding agent can inspect workflow files in your local workspace, subject to its own permissions.
MCP endpoint: https://mcp.pipetrics.com/mcp
Prerequisites
Before connecting:
- Install the Pipetrics GitHub App.
- Grant the required read-only permissions.
- Activate at least one repository in Pipetrics.
- Wait for its first workflow data to be collected.
Authentication uses browser-based OAuth. No Pipetrics API key is required in client configuration.
Connect Codex
Add the remote MCP server, authenticate, and verify it:
codex mcp add pipetrics --url https://mcp.pipetrics.com/mcp
codex mcp login pipetrics
codex mcp listYou can also add it to ~/.codex/config.toml:
[mcp_servers.pipetrics]
url = "https://mcp.pipetrics.com/mcp"Use /mcp inside Codex to check the connection. See the official Codex MCP documentation for client-specific options.
Connect Claude Code
Add Pipetrics at user scope so it is available across projects:
claude mcp add --transport http pipetrics \
--scope user https://mcp.pipetrics.com/mcp
claude mcp login pipetrics
claude mcp listFor a project-scoped configuration, create .mcp.json:
{
"mcpServers": {
"pipetrics": {
"type": "http",
"url": "https://mcp.pipetrics.com/mcp"
}
}
}Project-scoped servers require approval when Claude Code first loads them. If claude mcp login is unavailable in your installed version, run /mcp in an interactive session and authenticate there.
See the official Claude Code MCP documentation for scopes and server management.
Connect OpenCode
OpenCode provides an interactive setup command:
opencode mcp addSelect Remote, enter pipetrics as the name, and use https://mcp.pipetrics.com/mcp as the URL. Then authenticate and verify the server:
opencode mcp auth pipetrics
opencode mcp listAlternatively, add the server to opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"pipetrics": {
"type": "remote",
"url": "https://mcp.pipetrics.com/mcp",
"enabled": true
}
}
}OpenCode detects OAuth automatically for remote MCP servers. See the official OpenCode MCP documentation for authentication and debugging commands.
GitHub Actions optimization prompts
Start with the outcome you care about. Your coding agent can choose an appropriate analysis period, examine the available telemetry, and inspect relevant workflow files before recommending changes.
Pipetrics distinguishes measured telemetry from derived values and optimization assumptions. Absolute modeled cost represents runner usage at GitHub list prices. Estimated billable cost approximates billing using the available GitHub plan and included-minute evidence; it is not an invoice total.
Find where CI time goes
Where does this repository spend most of its GitHub Actions time? Separate runtime from queueing and tell me what to investigate first.Find workflow bottlenecks
Analyze this repository’s GitHub Actions workflows at job and step level. Which jobs are slow, unreliable, or expensive, and what should we improve first?Analyze GitHub Actions cost
Which workflows and jobs cost the most, how much is spent on failed runs, and where are the biggest opportunities to reduce cost?Investigate a regression
Have any recent commits been associated with meaningful increases in workflow runtime or cost? Investigate the strongest signals and explain what might account for them.Commit-impact analysis shows an association, not proof that a commit caused a change.
Get a management summary
What are the most important GitHub Actions findings for this repository, and what should we investigate next?Explain billing and free-tier coverage
What does this repository’s GitHub Actions usage actually cost? Explain the modeled cost, likely billable amount, included usage, and any important limitations.Find reliability waste
Where are failed GitHub Actions runs wasting the most time and money, and what should we fix first?GitHub Actions optimization flow
Use this sequence for GitHub Actions optimization:
- Request the top repository findings.
- Select the workflow with the largest measured impact.
- Drill into its jobs and steps.
- Inspect the local workflow YAML.
- Check commit evidence for recent regressions.
- Make one focused change and compare later runs with the baseline.
This keeps recommendations tied to measured pipeline behavior instead of generic CI/CD advice.
Data access and plans
Pipetrics uses read-only GitHub permissions for Actions and repository metadata. MCP analysis returns telemetry such as durations, queue delays, failures, retries, workflow paths, commit SHAs, absolute modeled costs, and scoped billing estimates.
For GitHub Actions optimization, start with runtime and failure evidence. Both plans can analyze modeled cost within their retention window. Pro provides a longer history for baselines, regressions, and cost comparisons.
| Plan | Data retention | Cost analysis |
|---|---|---|
| Free | 14 days | Available for retained history |
| Pro | 360 days | Longer baselines and comparisons |
The Pipetrics plan controls telemetry retention. The GitHub account or organization plan controls included Actions minutes used by estimated billable-cost calculations. Upgrading Pipetrics does not change GitHub billing.
See Cost Profiler for visual GitHub Actions cost analysis.
Troubleshooting
Authentication is required
Run the login command for your client and complete OAuth in the browser:
codex mcp login pipetrics
claude mcp login pipetrics
opencode mcp auth pipetricsThe server does not connect
- Confirm the URL is exactly
https://mcp.pipetrics.com/mcp. - List configured MCP servers in the client.
- Repeat browser authentication.
No repository data appears
Confirm that the GitHub App is installed, the repository is activated, and at least one workflow run has been collected. Review the integration guide for required permissions.
Security boundary
Pipetrics MCP does not need source-code access. It supplies measured CI/CD telemetry to the agent. Local file reads and edits are controlled separately by Codex, Claude Code, or OpenCode and remain subject to your approval settings.
Integration
Step-by-step guide to install the Pipetrics GitHub App and connect your repositories for GitHub Actions monitoring.
Cost Profiler - Analyze GitHub Actions Costs
Analyze GitHub Actions costs with Pipetrics Cost Profiler. Find expensive workflows and optimize your CI/CD budget with flamegraph visualization.