@trusty-squire/mcp
v1.0.43
Published
Trusty Squire signs up / in to websites for you so you don’t have to.
Maintainers
Readme
Try asking your coding agent:
- “Sign me up for Resend and save the API key.”
- “Sign in to Sentry and configure the webhook.”
- “Set up Resend, Sentry, PostHog, and Postgres for this app.”
- “Add Google OAuth to my app without showing me the client secret.”
- “Let my deployed app call OpenAI without giving it the OpenAI key.”
- “That app token leaked — revoke its access now.”
Trusty Squire is an MCP server for Claude Code, Cursor, Codex, and other coding
agents. It opens the real website, completes the signup or sign-in flow, handles the
setup behind the login, and stores generated credentials in the vault instead of
returning them through credential tools or writing them to source code or an .env file.
Install
npx @trusty-squire/mcp@latest connectconnect signs you in with Google or GitHub, detects your coding agent, and writes its
MCP configuration. Restart the agent, then ask it to do one of the jobs above.
To choose an agent explicitly:
npx @trusty-squire/mcp@latest connect --target=codexSupported targets: claude-code, cursor, codex, goose, cline, continue,
and hermes.
What happens when you ask
- Your coding agent tells Trusty Squire which website and task you asked for.
- Trusty Squire opens a real browser session and works through the site one step at a time. It can use your existing Google or GitHub session when you choose that option.
- If the site creates an API key or client secret, Trusty Squire stores it directly in your vault. The credential extraction result does not return the raw value.
- Your agent can use the saved credential through Trusty Squire, or give your app a scoped, rate-limited token that you can revoke without rotating the underlying key.
Successful website flows can be saved and replayed, so the next run does not have to rediscover every click.
How secrets are handled
- Credential tools do not return stored values or write them to source code,
.envfiles, or the consuming app. Browser screenshots and diagnostic captures can contain whatever was visible on the page, so treat those diagnostics as sensitive. - When an API call needs a credential, Trusty Squire injects it into the request on the server side. The API provider receives its credential; the caller does not.
- A deployed app receives a scoped Trusty Squire token instead of the provider key. Access can be rate-limited, audited, and revoked.
- Trusty Squire does not type your Google or GitHub password. You sign in in a real browser, and the browser keeps that session.
- If a site needs a decision or action that should be yours, the run stops and asks you instead of guessing.
MCP tools
operate_start,operate_observe, andoperate_actopen a website, read the page, and act one step at a time.operate_extractcaptures a credential from the current page into a sealed slot or stores it in the vault.operate_rememberandoperate_usesave and replay a successful website flow.list_credentialsanduse_credentialfind saved credentials and make authenticated API calls without returning their raw values.grant_app_accessandrevoke_app_accessgive an app scoped access and take it away.audit_logshows credential activity without exposing credential values.
Development
git clone https://github.com/Trusty-Squire/trusty-squire.git
cd trusty-squire
./scripts/bootstrap.shAfter bootstrap, pnpm typecheck and pnpm test should pass. Stop the local services
with docker compose -f docker-compose.dev.yml down; add -v to reset their data.
Requirements: Node 20.11.0 (.nvmrc), pnpm 8.15+, Docker, and Docker Compose.
Product language and public-web changes should follow PRODUCT.md and DESIGN.md.
Repository structure
trusty-squire/
├── apps/
│ ├── api/ Accounts, OAuth, machine tokens, proxy, inbox, vault, and billing
│ ├── mcp/ The MCP server coding agents install; browser and credential tools
│ ├── registry/ Signed, replayable website skills and their verification service
│ └── web/ Public site and vault UI
└── packages/
├── vault/ Encrypted credential storage and audit log
├── inbox/ Email verification code and link extraction
└── skill-schema/ Shared schema for replayable website skillsSee docs/ARCHITECTURE.md for the architecture and security model.
License
MIT © Trusty Squire
