About Agentsecrets
Agentsecrets is an MCP server published by The-17 in the Security category: zero-knowledge credentials infrastructure built for AI agents to operate, not just consume. Conduid read 19 tools from its source: api_call, check_domain, check_key, diff_environments, diff_secrets, get_agent_identity and 13 more. It is published to npm as @the-17/agentsecrets-mcp and starts with npx.
The The-17/agentsecrets monorepo this package is published from has 202 stars and 15 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v3.3.7 (8 Nov 2026): Fixed in v3.3.7 Windows env/exec no longer report a healthy daemon as missing. It follows v3.3.6 (18 Oct 2026), and the 5 most recent releases go back to v3.3.3 (29 Sep 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agent-secrets, ai-security, credential-management, devtools, devops and openclaw.
Install
claude mcp add agentsecrets -- npx -y @the-17/agentsecrets-mcpnpx -y @the-17/agentsecrets-mcpgit clone https://github.com/The-17/agentsecretsTools (19)
api_callMake an authenticated API call. Credentials are injected from the OS keychain — you will NEVER see the actual secret values. Use list_keys first to discover available key names.| Parameter | Type | Description |
|---|---|---|
| body | string | Request body as a JSON string |
| headers | object | Extra request headers as key-value pairs |
| injections * | object | Map of injection_spec to secret_key_name. Specs: "bearer", "basic", "header:X-Name", "query:param", "body:json.path", "form:field". Example: {"bearer": "STRIPE_KEY"} or {"header:X-API-Key": "API_KEY"} |
| method | string | HTTP method: GET, POST, PUT, PATCH, DELETE. Default: GET |
| url * | string | Target API URL (e.g. https://api.stripe.com/v1/charges) |
check_domainCheck if a domain is in the workspace proxy allowlist. If the domain is not allowed, returns the CLI command the user should run to add it.| Parameter | Type | Description |
|---|---|---|
| domain * | string | The domain name to check (e.g. api.stripe.com) |
check_keyCheck if a specific secret key exists in the current project. Returns existence status, which environments contain the key, and last update time. Never returns the actual secret value.| Parameter | Type | Description |
|---|---|---|
| environment | string | Optional environment to check (development, staging, or production). Defaults to checking all. |
| key_name * | string | The name of the secret key to check (e.g. STRIPE_KEY) |
diff_environmentsCompare secret keys between two environments to identify drift. Shows which keys exist in one environment but not the other. Never shows actual values.| Parameter | Type | Description |
|---|---|---|
| source * | string | The source environment (e.g. development) |
| target * | string | The target environment (e.g. production) |
diff_secretsCompare local secrets (.env/keychain) against cloud secrets for the current environment. Shows which keys are added locally, removed from cloud, changed, or unchanged. Never shows actual secret values.| Parameter | Type | Description |
|---|---|---|
| environment | string | Optional environment to diff (development, staging, production). Defaults to active env. |
get_agent_identityGet the current agent's identity information including authentication status, keychain-auth configuration, and whether an agent token (AS_AGENT_TOKEN) is set.get_allowlistGet the full proxy allowlist for the current workspace. Only domains in this list can receive injected credentials.get_audit_summaryGet an aggregate summary of proxy audit activity: total calls, unique domains, unique credentials used, blocked/redacted counts, and breakdown by environment.get_blocked_requestsList API requests that were blocked by the proxy (e.g. domain not in allowlist). Helps diagnose why API calls are failing.| Parameter | Type | Description |
|---|---|---|
| limit | string | Optional: Maximum number of logs to return. Default: 20 |
get_coverageShow secret key coverage across all environments (development, staging, production). Identifies keys missing from specific environments to help ensure parity.get_environmentGet the active environment (development/staging/production) and how it was resolved (env var, project config, or global default).get_proxy_logsQuery local proxy audit logs. Returns recent API calls made through the proxy with metadata (method, domain, status, key names used). Never includes response bodies or secret values.| Parameter | Type | Description |
|---|---|---|
| domain | string | Optional: Filter by target API domain name (e.g. api.stripe.com) |
| key_name | string | Optional: Filter by secret key name used (e.g. STRIPE_KEY) |
| limit | string | Optional: Maximum number of logs to return. Default: 20 |
| since | string | Optional: RFC3339 timestamp filter (e.g. 2026-05-27T18:00:00Z) |
get_redaction_eventsList requests where the proxy detected and redacted secret values from responses. Helps identify potential credential leakage in API responses.| Parameter | Type | Description |
|---|---|---|
| limit | string | Optional: Maximum number of logs to return. Default: 20 |
get_statusGet the current AgentSecrets status including authentication state, active project, environment, proxy status, and keychain-auth health.list_agent_tokensList all registered agent identities and their tokens for the current workspace. Shows token metadata (label, status, created/expiry dates) but never the token values.list_keysList available secret key names in the current project and environment. Returns ONLY key names and metadata, never actual values. Shows which environment is active and key count per environment. By default reads from the local keyring cache (fast). Pass remote=true to fetch latest from the cloud API.| Parameter | Type | Description |
|---|---|---|
| remote | boolean | If true, fetch key list from the cloud API instead of the local keyring cache. Default: false. |
pull_secrets⚠️ IMPORTANT: This overwrites local secrets (in .env and the OS keychain) with values fetched from the cloud. Always confirm with the user in chat before calling this tool.| Parameter | Type | Description |
|---|---|---|
| environment | string | Optional: The environment to pull secrets for. Defaults to active environment. |
rotate_key⚠️ IMPORTANT: This permanently deletes a secret key from the current environment (cloud, local .env, and OS keychain). Always confirm with the user in chat before calling this tool.| Parameter | Type | Description |
|---|---|---|
| environment | string | Optional: The environment to rotate the key in. Defaults to active environment. |
| key_name * | string | The name of the secret key to delete/rotate (e.g. STRIPE_KEY) |
switch_environment⚠️ IMPORTANT: This changes the active environment (development, staging, production) which affects which secrets the proxy resolves. Always confirm with the user in chat before calling this tool.| Parameter | Type | Description |
|---|---|---|
| environment * | string | The target environment to switch to (development, staging, or production) |
Security checks
From the The-17/agentsecrets monorepo, not this package alone.
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 77 source files and found 1 call to eval or shell execution, in npm/bin/agentsecrets.js. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
From the The-17/agentsecrets monorepo.
README
The repository's README runs to about 1.0K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README