Skip to main content
Glama
khandrew1

mcp-use-aps-example

by khandrew1

mcp-use + APS 授权示例

此独立示例将 Agent Passport System 的 aps-mcp-1 配置放在现有 mcp-use TypeScript 中间件接缝之后。网关代理 vault_echo 工具,并在 next() 到达上游服务器之前验证已签名的一次性授权信封。

运行

npm install
npm test
npm run dev

打开打印的 URL 以使用内置的 mcp-use Inspector。

  1. 使用一条消息调用 issue_aps_demo_grant

  2. 将其结构化结果复制到 vault_echo

  3. 运行 vault_echo;APS 中间件会在分发前验证签名、目标、参数哈希、过期时间、作用域和重放状态。

  4. 再次运行相同的请求,观察上游被调用前的重放拒绝。

Related MCP server: SINT Protocol

Inspector 兼容性

APS MCP 配置通常会在以下位置携带其信封:

tools/call.params._meta["org.agent-passport/authorization"]

当前的 Inspector 表单不暴露任意的每次调用 _meta。仅用于交互式演示,此仓库接受以 apsAuthorization 工具参数形式传入的相同信封,在中间件内部将其移入带命名空间的 _meta 条目,并在转发前将其移除。生产环境中的 MCP 客户端应直接发送 _meta

此 localhost 演示还假定传输层认证已经建立。生产代码必须配置 OAuth,并从已验证的传输上下文(ctx.auth)中推断出这一点。

APS 是一个独立的第三方项目,不属于 MCP 或 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