Commit 446b648
ci(claude): cross-apply remaining servers-PR findings
Sweeps the rest of the modelcontextprotocol/servers#4222 review for
items that also apply here:
- Recursive `.mcp.json` strip in the fork-review job (servers #4).
Belt-and-suspenders against subdirectory copies (e.g. a fork
planting `client/.mcp.json`). Claude Code's auto-discovery is
project-root scoped and our allowlist has no Bash glob so Claude
can't `cd` mid-run, but the cost of being wrong here — connection
to an attacker-controlled MCP server — justifies the extra find.
- Drop `Bash(gh pr list:*)` from the fork-review allowlist (servers
#5). The system prompt focuses Claude on a specific PR; `gh pr
view` and `gh pr diff` cover that. Smaller tool surface.
- Add `--max-turns 20` to the existing claude job (servers #6).
Caps cost on runaway sessions; the fork-review job already caps
at 8.
Already-addressed servers findings (no-op here): #1 cross-repo back
door (commit a34dbb5), #2 SHA-pin inconsistency (a34dbb5), #3
pull-requests: read insufficient (b96d9e5). Doesn't apply: #7
fetch-depth inconsistency — inspector uses 0 for both checkouts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b96d9e5 commit 446b648
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
| |||
252 | 261 | | |
253 | 262 | | |
254 | 263 | | |
255 | | - | |
| 264 | + | |
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| |||
0 commit comments