Repository navigation
feat(plugin): doctor warns about unpinned launchers, unsandboxed third-party servers and broad grants - #785
Merged
Merged
Conversation
…d-party servers and broad grants (#600)
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Last part of the first slice of #600.
tole doctorwarns about three things in the configured MCP servers and the plugin lock.Why
The lock pins a launcher's binary, not the package it fetches, a third-party stdio server is code that should run in the sandbox, and a grant of several secrets to a server the owner did not write is easy to miss. Doctor is where the owner looks.
Changes
plugin/warn.rs, a pure function over the lock, the configured servers, the first-party list, the sandbox policy and backend:npx,bunx,pnpm dlx,uvx,pipx run,docker/podman runwithout an exact version or digest; usesplugin_launcherfrom feat(core): one-shot probe for unapproved MCP servers and an unpinned launcher check #777);addandapproverefuse it;tole doctornext to the plugin lock lines; starts nothing.first_party_names()shared withplugin list/diff/add.Testing
tole doctor --tier offlinewith an unpinned and a pinnednpxserver prints the launcher and sandbox warnings only for the unpinned one.cargo clippy --workspace --all-targets -D warnings,cargo fmt --check.Refs #600