Skip to content

feat(nitro): add clerk, okta and workos oauth connectors - #332

Merged
HugoRCD merged 1 commit into
mainfrom
feat/nitro-oauth-connectors
Sep 4, 2026
Merged

feat(nitro): add clerk, okta and workos oauth connectors#332
HugoRCD merged 1 commit into
mainfrom
feat/nitro-oauth-connectors

Conversation

@HugoRCD

@HugoRCD HugoRCD commented Sep 3, 2026

Copy link
Copy Markdown
Member

📚 Description

Stacked on #331. Last of the three OAuth PRs.

Each connector fills in one provider's issuer conventions and returns the same options object mcp({ oauth }) and createMcpOAuth already accept, so using a provider is one call rather than a JWKS URL looked up by hand.

They sit on their own subpaths — nitro-mcp-toolkit/oauth/clerk, /okta, /workos — so an app that imports none of them never loads them.

  • clerk reads CLERK_PUBLISHABLE_KEY for the issuer and JWKS, skips audience validation because Clerk puts the OAuth client in azp (use authorizedParties instead), and proxies RFC 8414 metadata for older clients that only look on the resource origin.
  • okta covers custom authorization servers and derives JWKS from the issuer. Org-server tokens are opaque, so they are out of scope.
  • workos covers AuthKit, where aud is the client id rather than the MCP URL.

Adds three package.json subpath exports and three build entries.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nuxt-mcp-toolkit-docs Ready Ready Preview Sep 4, 2026 9:17am UTC

Request Review

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nitro-mcp-toolkit@332
npm i https://pkg.pr.new/@nuxtjs/mcp-toolkit@332

commit: 22b4150

Base automatically changed from feat/nitro-oauth-module-option to main September 4, 2026 09:15
Each connector fills in one provider's issuer conventions and returns the
same options object `mcp({ oauth })` and `createMcpOAuth` already accept,
so using a provider is one call rather than a JWKS URL looked up by hand.

They sit on their own subpaths — `nitro-mcp-toolkit/oauth/clerk`,
`/okta`, `/workos` — so an app that imports none of them never loads
them. `clerk` reads `CLERK_PUBLISHABLE_KEY`, skips audience validation
because Clerk puts the OAuth client in `azp`, and proxies RFC 8414
metadata for clients that only look on the resource origin. `okta`
covers custom authorization servers, `workos` covers AuthKit, where
`aud` is the client id rather than the MCP URL.
@HugoRCD
HugoRCD force-pushed the feat/nitro-oauth-connectors branch from f5578cd to 22b4150 Compare September 4, 2026 09:16
@HugoRCD
HugoRCD merged commit b50badb into main Sep 4, 2026
14 checks passed
@HugoRCD
HugoRCD deleted the feat/nitro-oauth-connectors branch September 4, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant