Repository navigation
Trust local clients by their app's code signature - #345
Closed
oliverames wants to merge 2 commits into
Closed
oliverames wants to merge 2 commits into
oliverames wants to merge 2 commits into
Conversation
iMCP now finds the app responsible for the connecting imcp-server, validates its code signature, and shows that app's real name, icon, and signer in an alert-style approval window. Always Allow stores trust keyed to the app's designated requirement. Terminals, ad hoc, unsigned, and non-bundle clients aren't trusted by signature: Claude Code gets Set Up Claude Code, which writes a credential into ~/.claude.json atomically, with the copy flow as fallback. Settings lists trusted apps with icon, Team ID, and last connection.
Contributor
Author
|
Replaced by #374, the same change cut from main as one PR so it can merge on its own. |
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 it does and why
Trusting a client today means copying a credential into its MCP settings by hand. This PR replaces that workflow with code-signature trust for signed apps and automatic CLI credentials for terminal clients.
What changed
imcp-serverand checks its code signature. The approval dialog shows that app's name, icon, and developer. Choosing Always Allow trusts the app's designated requirement, so there is nothing to copy.imcp-serverautomatically persists a credential at~/Library/Application Support/iMCP/client-credentialwhenIMCP_CLIENT_CREDENTIALis not set.responsibility_get_pid_responsible_for_pidsymbol. If you would rather avoid that API, I am happy to discuss alternatives.Testing
Not verified