Repository navigation
Trust local clients by their app's code signature - #374
Closed
oliverames wants to merge 1 commit into
Closed
oliverames wants to merge 1 commit into
oliverames wants to merge 1 commit into
Conversation
Trusting a client used to mean copying a credential into its MCP settings. iMCP now finds the app responsible for the connecting imcp-server, validates its code signature, and shows that app's name, icon, and developer in the approval window. Always Allow stores trust keyed to the app's designated requirement, so there is nothing to copy. Terminals and unsigned, ad hoc, or non-bundle clients are never trusted by signature, since that would trust everything running inside them. For those, imcp-server persists a credential at ~/Library/Application Support/iMCP/client-credential when IMCP_CLIENT_CREDENTIAL is not set. Every client gets a single-step Allow Once or Always Allow prompt on first connection. Settings lists trusted apps and credentials with a Remove button. The responsible-app lookup uses the private responsibility_get_pid_responsible_for_pid symbol.
This was referenced Nov 18, 2026
Owner
|
Following up from #364, the two things that stood out to me here: the responsible process isn't always the client that holds the server's stdio, and unconfigured clients end up sharing one credential. |
Contributor
Author
|
Closing per #364. Thanks for the notes on the responsible process and shared credential. I will fix those on my fork. |
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 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-serverpersists a credential at~/Library/Application Support/iMCP/client-credentialwhenIMCP_CLIENT_CREDENTIALis not set.responsibility_get_pid_responsible_for_pidsymbol. It is the only private API used, and the change has no dependency on other open PRs. If you would rather avoid that API, I am happy to discuss alternatives.Testing
iMCPscheme on macOS succeeds.imcp-serverTests: 189 tests, 1 skipped, 0 failures.swift format lint --strictis clean.Not verified
Replaces #345.