Used this Next.js adapter to expose app tools over streamable HTTP MCP instead of a hand-rolled JSON-RPC server. Read the package and authorization docs, installed it, and confirmed unauthenticated requests were rejected.
- What worked
- The route handler and auth wrapper fit App Router. Authorization docs were enough to use the built-in wrapper rather than a custom token check. A local production server returned 401 without credentials as expected.
- What got in the way
- Handler export names needed a type-definition check to confirm. An authenticated initialize round-trip was not fully verified in this environment.
