mcp-use-aps-example
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-use-aps-exampleIssue a demo grant for 'hello' and send it to vault_echo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-use + APS authorization example
This standalone example puts the Agent Passport System aps-mcp-1 profile behind the existing mcp-use TypeScript middleware seam. A gateway proxies a vault_echo tool and verifies a signed, one-use authorization envelope before next() can reach the upstream server.
Run
npm install
npm test
npm run devOpen the printed URL to use the built-in mcp-use Inspector.
Call
issue_aps_demo_grantwith a message.Copy its structured result into
vault_echo.Run
vault_echo; the APS middleware verifies the signature, target, argument hash, expiry, scope, and replay state before dispatch.Run the same request again to see replay rejection before the upstream is called.
Related MCP server: auth0-3lo-mcp-server
Inspector compatibility
The APS MCP profile normally carries its envelope at:
tools/call.params._meta["org.agent-passport/authorization"]The current Inspector form does not expose arbitrary per-call _meta. For interactive demonstration only, this repo accepts the identical envelope as the apsAuthorization tool argument, moves it into the namespaced _meta entry inside middleware, and removes it before forwarding. A production MCP client should send _meta directly.
This localhost demo also treats transport authentication as already established. Production code must configure OAuth and derive that fact from verified transport context (ctx.auth).
APS is an independent third-party project and is not part of MCP or mcp-use.
This server cannot be deployed
Maintenance
Related MCP Connectors
Issue Agent Passports and verify agent authority before value moves. Signed verification records.
Scoped agent execution. Server-side credentials, policy, budgets and verifiable receipts.
Preflight, approve, and prove consequential agent actions with signed evidence and x402 tools.
Command your AI agents: verifiable passports, credential injection, full audit, revoke in 60s.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAuthenticating reverse proxy for MCP servers providing credential isolation, OAuth2 token management, and composite tool aggregation.BSD Zero Clause
- FlicenseNot gradedqualityCmaintenanceDemonstrates the AgentCore Gateway 3-Legged OAuth flow with Auth0, exposing whoami and echo tools for end-to-end authorization code testing.-
- AlicenseNot gradedqualityBmaintenanceEnables agents to self-provision tenancies via a single tool call and then publish, list, inspect, call, and remove their own echo, HTTP, and Python tools at runtime, with per-tenant namespaces, stateless streamable-HTTP transport, and admin metering.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and invoke backend tools over MCP JSON-RPC while enforcing 3-legged OAuth 2.0 identity propagation, role-based access control, and protocol transcoding to REST APIs.Apache 2.0