Skip to main content
Glama
khandrew1

mcp-use-aps-example

by khandrew1

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 dev

Open the printed URL to use the built-in mcp-use Inspector.

  1. Call issue_aps_demo_grant with a message.

  2. Copy its structured result into vault_echo.

  3. Run vault_echo; the APS middleware verifies the signature, target, argument hash, expiry, scope, and replay state before dispatch.

  4. Run the same request again to see replay rejection before the upstream is called.

Related MCP server: SINT Protocol

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.

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    This server acts as a Portal (zero-trust Policy Enforcement Point) for AI agents. Every tool call is attested, measured against a sealed cryptographic reference, and logged to a tamper-evident continuity chain with signed receipts.
    15
    62
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Security-enforcing MCP proxy that sits between an AI agent and any number of downstream MCP servers, intercepting every tool call through a capability-token policy gateway that can allow, deny, or escalate to human approval before the call reaches any real tool. It also exposes built-in operator tools for approval workflows, audit trail queries, token management, voice/HUD output, and hierarchical
    21
    12
    Apache 2.0
  • F
    license
    Not graded
    quality
    C
    maintenance
    A production-ready MCP server that authenticates agents via OAuth 2.1 Bearer tokens, validates JWTs with JWKS, enforces tool-level scopes and roles, and logs the full delegation chain.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/khandrew1/mcp-use-aps-example'

If you have feedback or need assistance with the MCP directory API, please join our Discord server