在本講我們探討如何「無痛」把 ChatGPT App 嵌入既有產品:把 MCP 視作覆蓋在 REST/GraphQL 與網域服務之上的薄層 adapter/gateway,建立用於 schema 的 Single Source of Truth(例如透過 Zod),設計契約測試,思考
tools/
resources 的版本管理與零停機遷移。另行討論 OAuth 層的演進(包含
/.well-known/oauth-protected-resource、
scopes 與
WWW-Authenticate)、中介的 metadata/annotation hint 層(
readOnlyHint、
destructiveHint、
openWorldHint),以及 SDK 升級流程與那些導致 runtime 事故與品質劣化的常見錯誤。