APS MCP Auth Examples
OfficialAPS MCP 身份验证示例
MCP 服务器的参考实现,集成 Autodesk Platform Services,覆盖以下所有组合:
服务器如何向 APS 进行身份验证
2LO- 2-legged OAuth,应用级3LO- 3-legged OAuth,按用户PKCE- 用于公共客户端的 3-legged OAuth,按用户SSA- 安全服务账户,非人类身份
MCP 客户端如何向服务器进行身份验证
完全没有(STDIO)
通过外部身份提供方
通过 OAuth 代理服务
所有基于 HTTP 的示例均面向 2026-07-28 MCP 规范修订版,并基于拆分后的 MCP TypeScript SDK v2(@modelcontextprotocol/{server,express,node})。该规范要求 MCP 服务器充当 OAuth 2.1 的 资源服务器,由专用授权服务器支持;在标识 MCP 客户端时,更倾向于使用 Client ID Metadata Documents (CIMD) 而非 Dynamic Client Registration。
每个示例都提供相同的 MCP 工具,均在 shared/ 中实现一次并在各处复用:list-projects(通过 Data Management API 获取 hubs 和 projects)和 list-contents(获取某个项目顶层的文件夹,或某个具体文件夹的内容)。
目录 | MCP 客户端身份验证 | 演示内容 |
无(STDIO) | 最简单的设置——本地启动的进程,完全没有 MCP 层的身份验证。 | |
外部 IdP(Auth0) | 此服务器只验证令牌;Auth0(或任何符合 OIDC/JWKS 的提供方)仍然是授权服务器。按 IdP 用户缓存的 APS 提供方保存在内存中。 | |
单独的 OAuth 代理服务 | 依赖一个位于 APS 认证之前的 OAuth 代理( | |
(代理本身) | 由 | |
(库) | 五个 APS 身份验证提供方类、两个 MCP 工具,以及上面所有示例复用的辅助函数。 |
所有示例共用的设置
在 https://aps.autodesk.com/myapps 注册一个 APS 应用(如果你会使用任何
3LO示例,请选择 传统 Web 应用(Traditional Web App);如果只使用2LO,只需 Server-to-Server / API-key 风格的应用即可)。对于SSA,还需要另外创建一个 Secure Service Account 并注册其公钥——参见 SSA 指南。在仓库根目录执行
npm install——这是一个 npm workspaces 项目,一条安装命令即可解析shared和所有四个 TypeScript 服务器。复制
.env.example为.env,并为你选择的APS_AUTH_MODE填写适当的值,然后在相应文件夹内用npm start运行任意 TypeScript 示例(或在根目录运行npm run start -w <package-name>)。simple-oauth-proxy是一个单独的 Python/FastMCP 服务——其设置请参阅它自己的 README;只有在尝试aps-mcp-server-remote-proxy时才需要它。
Related MCP server: Devcon MCP Workshop 2026
关于范围的说明
这些是教学示例,优化用于一口气读完。有几处为了简洁刻意做了简化,并已在相关 README 中标注(例如仅保存在内存中、没有水平扩展方案;OAuth 代理示例中,CIMD 获取方式简化且未对 SSRF 做完整加固,等等)。请不要在未阅读这些注意事项的情况下,将安全性相关的部分直接复制到生产环境。
This server cannot be deployed
Maintenance
Related MCP Connectors
- StytchOAuthdev.stytch.mcp
The Stytch MCP server is a reference implementation that demonstrates remote MCP server authentication and authorization using Stytch Connected Apps. It provides OAuth 2.1-compliant authorization (including PKCE), Dynamic Client Registration, and validates Stytch-issued access tokens to enable AI agents to securely interact with external services through permissioned access, supporting scopes like openid, email, profile, and manage:project_data.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- FlicenseAqualityCmaintenanceAn MCP server that exposes Autodesk Platform Services (APS) as tools for AI assistants to interact with the APS Data Management API. It enables users to authenticate and manage hubs, projects, and folders through a standardized interface.272-
- AlicenseNot gradedqualityDmaintenanceMCP server integrating Autodesk Platform Services, exposing tools for LLM clients like VS Code Copilot, with OAuth authentication and agentic workflow support.ISC
- FlicenseNot gradedqualityDmaintenanceExample MCP server for Autodesk Platform Services that demonstrates proper OAuth authorization with Auth0 as the first layer and APS 3-legged OAuth as the second layer. Enables querying APS projects and issues through natural language after authenticating via Auth0 and APS.-
- AlicenseNot gradedqualityDmaintenanceA complete MCP server implementation demonstrating all protocol features (tools, resources, prompts, sampling, and elicitation) with OAuth authentication, serving as a learning resource and starting template for building MCP servers.MIT