Platform and SRE teams
Incident triage with GitHub, Forge, and PostHog
Correlate a production error spike with failing GitHub Actions runs and Forge deploy history.
Outcome: A ranked incident brief linking errors, recent deploys, and failing workflows
Integrations in this workflow
The problem
When errors spike, on-call engineers jump between PostHog, GitHub Actions, and Forge deploy logs to find the blast radius.
Example prompt
We have elevated 500 errors in PostHog for the last hour. List recent Forge deployments for our production site, check the latest GitHub workflow runs on the main branch, and correlate timestamps. Summarize likely deploy-related regressions and suggest the next rollback or hotfix step.
Gateway tools
posthog__query-hogql-toolor PostHog MCP tools for error trendsforge__list_deployments→forge__get_deployment_logfor release timinggithub__list_workflow_runs→github__get_workflow_runfor CI failures
Use describe-service-tool to confirm PostHog and Forge are connected before dispatching.
Governance
- Forge deploy triggers require explicit permission scopes on your API token — use least-privilege tokens for read-only triage.
- PostHog queries may include user identifiers; paste only redacted summaries into public incident channels.
- Audit logs record every tool call — attach the audit trail when handing off to another engineer.
Connect via private gateway
Activate the integrations above, create an API token scoped to mcp:private-gateway, then add this config to your MCP client.
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"stackgate-private-gateway": {
"url": "https://stackgate.ai/mcp/private",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}