Add secure credential handling for browser automation#1
Merged
shawnrushefsky merged 2 commits intomainfrom Jan 12, 2026
Merged
Conversation
Allows AI models to use credentials (passwords, API keys) without seeing the actual values. Credentials are stored locally and referenced by name. New features: - Credential store supporting env vars and ~/.mcproxy/credentials.json - browser_type_credential: Type credential into selector by name - browser_keyboard_type_credential: Type credential at focused element - browser_list_credentials: List available credential names (not values) - browser_set_credential/browser_delete_credential: Manage credentials - Automatic response scrubbing: Any credential values in browser responses are replaced with [CREDENTIAL:name] placeholders Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Addresses PR feedback: - Add browser_has_credential(name) for checking if a credential exists - Add login flow example showing the cookies + credentials pattern - Add guidance table for cookie/credential combination strategies Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
~/.mcproxy/credentials.json) and referenced by nameNew Tools
browser_list_credentialsbrowser_type_credentialbrowser_keyboard_type_credentialbrowser_set_credentialbrowser_delete_credentialHow It Works
Security Features
[CREDENTIAL:name]Test plan
MCPROXY_CREDENTIAL_TEST=secretbrowser_list_credentialsshows the credential namebrowser_type_credentialtypes into a form field🤖 Generated with Claude Code