Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/firebase-mcp.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"_comment": "Firebase MCP server config for the crashlytics-autotriage workflow. `--only crashlytics` activates the (experimental) Crashlytics tool group — it is NOT in the default tool set, so without it the crashlytics_* tools never surface. Requires Application Default Credentials (from google-github-actions/auth) on a service account with roles/firebasecrashlytics.viewer. See docs/PRD-crashlytics-autotriage.md.",
"_comment": "Firebase MCP server config for the crashlytics-autotriage workflow. `--only crashlytics` activates the (experimental) Crashlytics tool group — it is NOT in the default tool set. Uses the firebase-tools pre-installed by the workflow step (no `@latest`, so npx resolves the cached global copy instantly instead of cold-downloading at MCP startup). Requires ADC (from google-github-actions/auth) on a service account with roles/firebasecrashlytics.viewer. See docs/PRD-crashlytics-autotriage.md.",
"mcpServers": {
"firebase": {
"command": "npx",
"args": ["-y", "firebase-tools@latest", "mcp", "--dir", ".", "--project", "openloop-8c266", "--only", "crashlytics"]
"args": ["-y", "firebase-tools", "mcp", "--dir", ".", "--project", "openloop-8c266", "--only", "crashlytics"]
}
}
}
10 changes: 10 additions & 0 deletions .github/workflows/crashlytics-autotriage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,20 @@ jobs:
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}

# Install the Firebase CLI up front so the MCP server (npx firebase-tools mcp)
# starts instantly. Otherwise it cold-downloads the whole package at MCP-startup
# time and exceeds the SDK's connection window — the server then "fails to connect"
# and the crashlytics_* tools never load.
- name: Pre-install Firebase CLI
run: npm install -g firebase-tools@latest

- name: Triage the crash with Claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Temporary: surfaces the MCP server startup logs so we can diagnose connection
# issues. Remove once the Firebase MCP server connects reliably.
show_full_output: "true"
prompt: |
You are triaging an automated Crashlytics crash report filed as GitHub issue
#${{ github.event.issue.number || github.event.inputs.issue_number }} in stozo04/OpenLoop.
Expand Down