mcp-server
v1.21.1AgentValet is a credential broker for AI agents and MCP servers.
MCP server that lets AI agents (Claude Code, Cursor, Codex CLI, etc.) call approved external platforms through the AgentValet proxy. The CLI writes env vars and optionally updates .mcp.json or .cursor/mcp.json automatically. Each tool call signs a short-lived RS256 JWT (exp: 60s) using the agent's private key. The JWT is verified by the AgentValet proxy, which checks permissions and forwards the request to the target platform using stored credentials.
Summary extracted from the README.
@agentvalet/mcp-server
MCP server that lets AI agents (Claude Code, Cursor, Codex CLI, etc.) call approved external platforms through the AgentValet proxy.
Quick start
npx @agentvalet/register # registers this machine as an agent, writes config
The CLI writes env vars and optionally updates .mcp.json or .cursor/mcp.json automatically.
Manual configuration
Add to your .mcp.json or equivalent:
{
"mcpServers": {
"agentvalet": {
"command": "npx",
"args": ["-y", "@agentvalet/mcp-server"],
"env": {
"AGENT_ID": "agt_...",
"OWNER_ID": "...",
"PROXY_URL": "https://api.agentvalet.ai",
"AGENT_PRIVATE_KEY_PATH": "/path/to/agent.key"
}
}
}
}
Environment variables
| Variable | Required | Description |
|---|---|---|
AGENT_ID |
Yes | Agent ID from registration |
OWNER_ID |
Yes | Owner ID from registration |
PROXY_URL |
Yes | AgentValet proxy URL |
AGENT_PRIVATE_KEY_PATH |
One of three | Path to PEM private key file |
AGENT_PRIVATE_KEY |
One of three | Raw PEM or \n-escaped single-line PEM |
AGENT_PRIVATE_KEY_B64 |
One of three | Base64-encoded PEM |
MCP_TRANSPORT |
No | Set to http to use HTTP transport instead of STDIO |
MCP_PORT |
No | Port for HTTP transport (default: 3100) |
Tools
| Tool | Auth | Description |
|---|---|---|
list_platforms |
JWT | List platforms and scopes this agent has access to |
use_platform |
JWT | Call an external platform API through the proxy (blocks for owner approval when required) |
authzen_evaluate |
JWT | Pre-check whether this agent has access to a platform scope, without making the call |
list_my_pending_actions |
JWT | List this agent's pending approvals and actions completed in the last 24h |
request_platform_access |
JWT | Ask an org admin to grant access to a platform the agent is blocked from |
report_self_diagnostic |
JWT | Lodge a self-report (error/warning/info) with the owner |
agent_register |
None | Self-register a new agent with an owner |
agent_status |
None | Poll registration approval status |
Transports
STDIO (default) — compatible with all MCP hosts (Claude Code, Cursor, Codex CLI).
HTTP — set MCP_TRANSPORT=http and optionally MCP_PORT=3100. Uses StreamableHTTPServerTransport.
Architecture
Each tool call signs a short-lived RS256 JWT (exp: 60s) using the agent's private key. The JWT is verified by the AgentValet proxy, which checks permissions and forwards the request to the target platform using stored credentials.
The agent never sees platform credentials. The proxy decrypts them in-memory at call time and discards them after the upstream request completes.