fix: restrict MCP access to allowed repositories - #188
Conversation
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewTiny Sweeper reviewed this change across 6 lane(s) and found 4 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Incomplete Review snapshot
Completeness: Incomplete What changedThe review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below. FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred.
Findings
Could not review: tinysweeper/tests Before merge
Agent review detailscritique
security
tests
commits
description
e2e
Evidence and run details
|
|
Warning Review limit reached
This review includes 9 billable files and costs up to $2.25. Or wait 21 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Requesting changes: 2 lane(s) blocking, worst finding is critical.
Fix or reply to the findings below and push. The next review clears this automatically once they are gone — you should not need to dismiss anything by hand.
$0.0326 · 508,558 in / 13,906 out · 30,674 cached (6%) · flash, ladder/vectors, gpt-5.6-luna, deepseek/deepseek-v4-flash · 680 embedded
critique: $0.0158 · 246,132 in / 6,527 out · 18,214 cached (7%) · gpt-5.6-luna, deepseek/deepseek-v4-flash
security: $0.0147 · 231,013 in / 4,489 out · 12,460 cached (5%) · gpt-5.6-luna
description: $0.0004 · 6,671 in / 74 out · 0 cached (0%) · deepseek/deepseek-v4-flash
e2e: $0.0010 · 16,611 in / 738 out · 0 cached (0%) · deepseek/deepseek-v4-flash
All four threads were answered and resolved with code and test evidence. The two blocking findings are contradicted by the reviewed diff and green compilation: the allowlist is wired through McpState and the sole production router caller. GitHub cannot re-request review from the tinysweeper App identity.
What changed
mcp.allowed_reposconfiguration listtinyhumansai/tinysweeperrepository and document the boundaryGitHub App installation alone no longer makes a repository available through MCP.
Verification
cargo fmt --all -- --checkcargo clippy --locked --all-targets -- -D warningscargo test --locked --features serve server::mcp::(16 passed)cargo test --locked(2025 passed)cargo check --locked --all-features --all-targets