# AgentValet/AgentValet [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/AgentValet/AgentValet  
**GitHub Stars:** 2  
**npm Downloads (last month):** 1737  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentvalet-agentvalet

## Description
Identity and credential governance broker for MCP servers. Issues scoped, short-lived credentials per agent to stop credential inheritance. Audit log, human approval gates, AIMS-aligned.

## Tools
Capabilities this server exposes over MCP:

- **list_platforms** — list_platforms: List the platforms and permission scopes this agent has access to. Call it once per task, not before every call.
Input: detail (optional: "compact", the default, or "full"), platform (optional: a platformId, returns that one platform in full detail).
Returns (compact, the default): { detail: "compact", platforms: [{ platformId, platformName, scopes? (non-MCP: the scope names to pass), scopeCount?, toolCount? and toolsEndpoint? (MCP: the tool list and schemas are fetched there; the scope for a tool is "<platformId>:<tool>", and tool names in compact output omit that prefix), requireApproval? (only when true), approvalScopes?, connections?, callStyle?, constraints?, connected?, health? }], version: "<hex>" }. `connected: false` means the platform is granted but no usable credential sits behind it, so calls will fail until the owner reconnects it: tell the user rather than retrying. `health` is the connection's last known state (active, reauth_needed, revoked, unknown). Use platform: "<id>" for one platform's full scope list, unenforcedScopes, apiHints and lastProbeAt/lastSuccessAt; detail: "full" returns every platform in the full shape { platforms: [{ platformId, platformName, scopes, requireApproval, approvalScopes?, connections?, callStyle?, apiHints? }], version }. The version is the same whichever detail you ask for.
A platform includes `connections` when it has 2+ usable accounts, or when one account carries context worth knowing; pass the chosen connection_id to read_platform, write_platform or delete_platform (omit for the default). Each connection may carry `identity` (the account it actually points at, e.g. {email}) and `hint` (free text the owner wrote for you). Use them to resolve an instruction that names an account rather than a connection — "send it from the aifirstpartner account" means the connection whose identity.email or hint matches; if none does, ask rather than guessing the default.
Call style: `callStyle` is present only as "graphql", and says how to ADDRESS the platform rather than what you may do there: that platform has ONE endpoint taking {query, variables} via POST, so pass "/" as the endpoint and put the operation in the body. Its path and HTTP method carry no meaning, read_platform cannot be used on it at all, and a GET returns an upstream error naming neither the platform nor the cause. Absent means a conventional REST API.
Approval: a call needs human approval if the platform's requireApproval is true (grant-level: every call prompts), if the chosen connection's requireApproval is true, or if the scope is listed in approvalScopes (policy-level: just those scopes prompt). approvalScopes is omitted when no scope is policy-gated.
Version: a deterministic hash over the effective spec — it changes whenever the platform set, the scopes, the approval requirements (grant or policy), or the connections change. Compare it against the `Current permissions version` stamped on this description: if they differ, your cached result is stale and you must call list_platforms again before trusting it.
A platform block may carry `constraints` (recipient allow-lists: domains, addresses, channels). When present, address only those recipients; a call to anyone else is refused with 403 recipient_not_allowed.
Counterparty (beta): a platform block may carry `counterparty`, what AgentValet verified about WHO operates the endpoint: `level` unverified < domain_verified (valid HTTPS on that domain) < registry_listed (listed in the official MCP Registry under a namespace bound to that domain), or `state` not_checked / check_unavailable. It is identity evidence, not an endorsement and not a permission; tell the user what it says when they ask who they are dealing with. An org policy may hold or refuse calls to a platform below a minimum level (403 denied_by_counterparty_level). `pinState` says whether the server still matches the identity and tool definitions an org admin approved; when it does not, a policy may hold or refuse calls to it, or only to the tools listed in `changedTools` (403 denied_by_counterparty_pin), until an admin approves the new version. Do not try to work around that: tell the user an admin needs to review the change.
Auth: Bearer JWT.
- **read_platform** — read_platform: Read data from a platform the owner has connected, through the AgentValet proxy. Calls the platform's own public REST API (for example the GitHub REST API, the Slack Web API, the Stripe API); `endpoint` is a path in that API exactly as its documentation defines it. A platform that list_platforms reports as callStyle 'graphql' cannot be read with this tool at all: it exposes a SINGLE endpoint that accepts only POST {query, variables}, so send the read query through write_platform even though it is a read. Issuing a GET there returns an upstream error that names neither the platform nor the cause — it is not a broker fault. Always issues GET — use write_platform to create or update, and delete_platform to remove. Input: platform, endpoint, scope, connection_id (optional), reason (optional). Returns: the upstream API response body. Auth: Bearer JWT.
- **write_platform** — write_platform: Create or update data on a platform the owner has connected, through the AgentValet proxy. Calls the platform's own public REST API (for example the GitHub REST API, the Slack Web API, the Stripe API); `endpoint` is a path in that API exactly as its documentation defines it. For a platform whose callStyle is 'graphql', pass "/" as the endpoint and put the operation in body as {query, variables}: the path and the HTTP method carry no meaning on that platform. Accepts POST, PUT or PATCH only — use read_platform for GET and delete_platform for DELETE. May block up to 50s for owner approval, then returns the approved result; otherwise returns a pending_approval envelope. Input: platform, endpoint, scope, method (optional, default POST), body (optional), connection_id (optional), reason (optional). Auth: Bearer JWT.
- **delete_platform** — delete_platform: Delete data on a platform the owner has connected, through the AgentValet proxy. Calls the platform's own public REST API (for example the GitHub REST API, the Slack Web API, the Stripe API); `endpoint` is a path in that API exactly as its documentation defines it. For a platform whose callStyle is 'graphql', pass "/" as the endpoint and put the operation in body as {query, variables}: the path and the HTTP method carry no meaning on that platform. Always issues DELETE. This removes data and is not reversible by AgentValet. May block up to 50s for owner approval. Input: platform, endpoint, scope, body (optional), connection_id (optional), reason (optional). Auth: Bearer JWT.
- **agent_register** — agent_register: Self-register this agent with an owner. No auth required. Only for a server with no agent configured yet: it is refused once one is, and it never fixes a 401 (that means the configured key is wrong; the owner re-keys the agent in the dashboard).
Input: owner_id (string), agent_name (string), requested_scopes (array of {platformId, scopes}).
The agent's RSA keypair is generated on this machine; only the public key is sent and the private key stays here.
Returns: registration_token, poll_url, client_id, scope, keypair_source, key_stored_locally.
Next: once the owner approves in the dashboard, call agent_status with the registration_token to install the key.
Auth: None.
- **agent_status** — agent_status: Poll registration status using the token from agent_register.
Input: token (string, required).
On approval it installs the agent's private key on this machine (~/.agentvalet/agents/<agent_id>.key, plus the default identity if none exists) and activates it for this session when the server had no identity yet. The private key is never returned in the result.
Returns: status ("pending"|"approved"|"rejected"|"expired"), agent_id, key_installed, key_path, activated, mcp_config (if approved).
Auth: None.
- **authzen_evaluate** — authzen_evaluate: Evaluate whether this agent has access to a specific platform scope. It pre-checks a scope without making the upstream call.
Input: platform_id (string), scope (string).
Returns: decision (boolean), reason ("approved"|"denied"|"revoked"|"scope_not_granted").
Auth: Bearer agent JWT (sent automatically by this MCP server).
- **report_self_diagnostic** — report_self_diagnostic: Lodge a self-report (error/warning/info) with the AgentValet owner. For use after a platform call's error returns a report_hint, or when there is a problem the owner should know about.
Input: severity (debug|info|warn|error|critical), message (string, required, max 4096 bytes), code (string, optional, max 128 chars), platform (string, optional), endpoint (string, optional), correlation_id (uuid string, optional — copy from the failing call's report_hint to stitch this report to the broker-side audit row), context (object, optional, JSON-serialised must be < 16 KiB).
Returns: { id, received_at } on success.
Auth: Bearer agent JWT (sent automatically).
- **list_my_pending_actions** — list_my_pending_actions: Returns this agent's currently-pending approval requests AND any that completed in the last 24 hours. Use this at session start when the user mentions an earlier action, or when a platform call's approval wait timed out and the user comes back asking what happened.
Input: None.
Returns: { pending: [{approval_id, platform_id, scope, created_at, expires_at}], recently_completed: [{approval_id, platform_id, scope, status, executed_at, result_summary, execution_error}] }.
Auth: Bearer agent JWT (sent automatically).
- **request_platform_access** — request_platform_access: Ask an org admin to grant this agent access to a platform it is currently blocked from. For when a platform call returns an access-denied error. Input: platform (string, required), scope (string, optional — the specific scope you need), reason (string, optional — why you need it). The call waits up to ~50s for an admin decision. Returns: { status: "approved"|"pending"|"denied", message }. On "approved", retry the original call. On "pending", the request is queued; retry later. Auth: Bearer agent JWT (sent automatically).
- **issue_child_agent** — Issue a short-lived child agent identity for a subagent you are about to spawn. The child gets its own agent id, its own attenuated permission slice (child scopes must be a subset of yours), and its own audit trail; it can be revoked alone without touching you or its siblings. Returns a bearer token the subagent must send as its Authorization header. TTL 60-3600s (default 900). Inject ONLY the bearer_token into the subagent's context — never your own credentials.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agentvalet": {
    "command": "npx",
    "args": ["-y","@agentvalet/mcp-server"],
    "env": {
      "AGENT_ID": "",
      "OWNER_ID": "",
      "PROXY_URL": "",
      "AGENT_PRIVATE_KEY_PATH": ""
    }
  }
}
```

**Requires environment variables:** `AGENT_ID`, `OWNER_ID`, `PROXY_URL`, `AGENT_PRIVATE_KEY_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What AgentValet/AgentValet does

AgentValet/AgentValet provides an identity and credential governance layer for AI agents and MCP servers. Instead of placing a platform token in an agent configuration or environment variable, each agent receives its own cryptographic identity and requests access through the AgentValet proxy.

Access is granted per agent, platform, and action. Scopes deny access by default, and sensitive operations can require a human approval step. Calls are attributed to the agent that made them and recorded in an append-only, policy-stamped audit log that can be filtered and exported.

The open-source client surface includes the MCP server, CLI, Claude Desktop bundle, runtime adapters, and broker package. The managed service provides the proxy, credential vault, policy engine, and audit store.

## How it works

Registration creates an RS256 keypair and configures the agent. The private key remains on the local machine. For each request, the agent signs a JWT with a 60-second lifetime and sends the request through the proxy.

The proxy then:

- Verifies the JWT signature.
- Checks the agent's granted scope, using deny-by-default behavior.
- Scans the request for leaked secrets.
- Evaluates authorization through AuthZEN policy checks.
- Pauses for human approval when the action requires it.
- Decrypts and injects the real platform credential in memory.
- Appends an audit record.

Credentials use envelope encryption: each credential has its own AES-256 data key, which is wrapped by a master key held in a Key Vault HSM. Decrypted credentials are kept in memory for the call and are not written to logs.

## Setup and configuration

The quickest setup is:

```bash
npx @agentvalet/register
```

The registration command generates the keypair, registers the agent, and writes client configuration. After registration, the agent must be approved in the dashboard and assigned the required scopes.

For a manual MCP configuration, run `@agentvalet/mcp-server` with these environment variables:

- `AGENT_ID`: the registered agent identifier
- `OWNER_ID`: the owner identifier
- `PROXY_URL`: the AgentValet proxy URL
- `AGENT_PRIVATE_KEY_PATH`: path to the local private key

The server can be added to Claude Desktop, Claude Code, Cursor, or another MCP-compatible client. The private key is read from the configured path and is not sent to the proxy.

## Tools and capabilities

The MCP server exposes seven tools:

- `list_platforms` lists available platforms.
- `use_platform` sends an operation through the governed proxy.
- `authzen_evaluate` performs an AuthZEN authorization evaluation.
- `agent_register` registers an agent.
- `agent_status` reports agent status.
- `list_my_pending_actions` lists actions waiting for approval.
- `report_self_diagnostic` reports diagnostic information.

Additional governance behavior includes granular platform and action scopes, one-click magic-link approval for selected actions, a three-strike circuit breaker that can suspend a misbehaving agent, and SPIFFE-format agent identities. The project aligns its identity and authorization interfaces with SPIFFE, RFC 7591 Dynamic Client Registration, AuthZEN 1.0, and IETF AIMS.

## Limitations and notes

The approval-status SSE stream can close before a long-running approval wait finishes; reconnect handling is planned. CLI rate limiting is rudimentary, and there is no clear or delete interface for expired pending registrations.

The repository's client components are MIT licensed. The proxy, vault, policy engine, and audit store are provided as a managed service. A separate `@agentvalet/mcp-broker` package can embed AgentValet policy and credential enforcement inside another MCP server and includes a local mode with no required account.

_Full upstream README: https://allmcps.com/mcp/agentvalet-agentvalet/readme_

