Skip to content

ctx7-2660: support EMA through Claude Code plugin - #3135

Open
fahreddinozcan wants to merge 9 commits into
masterfrom
ctx7-2660-ema-support-for-claude
Open

ctx7-2660: support EMA through Claude Code plugin#3135
fahreddinozcan wants to merge 9 commits into
masterfrom
ctx7-2660-ema-support-for-claude

Conversation

@fahreddinozcan

@fahreddinozcan fahreddinozcan commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • support Enterprise-Managed Auth through the existing Claude Code marketplace plugin URL: https://mcp.context7.com/mcp?client=claude-code-plugin
  • keep one MCP resource for API keys, interactive OAuth, and EMA instead of introducing a dedicated EMA route
  • document the fixed Claude client ID and Okta setup
  • add a real-JWT integration test that executes an MCP tool through the marketplace URL using an EMA access token

How it works

The client=claude-code-plugin query marks marketplace traffic and makes authentication mandatory. It does not select EMA itself.

The shared protected-resource metadata advertises both authorization servers. Claude uses Context7 JWT-bearer and ID-JAG when managed authorization is enabled for the organization; otherwise it uses interactive Clerk OAuth. Context7 validates JWTs by issuer, including EMA signature and audience validation against the shared MCP resource.

The runtime path is the composition of the merged Claude Code plugin authentication work in #3028 and the existing Context7 EMA token support. No parallel request handler or /mcp/ema endpoint is added.

Verification

  • real RSA-signed EMA token served through a local JWKS
  • authenticated connection to /mcp?client=claude-code-plugin
  • successful query-docs execution
  • bearer token forwarding and plugin attribution verified
  • pnpm --filter @upstash/context7-mcp lint:check
  • pnpm --filter @upstash/context7-mcp typecheck
  • pnpm --filter @upstash/context7-mcp test — 71 tests passed
  • pnpm --filter @upstash/context7-mcp build

@mintlify

mintlify Bot commented Sep 3, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
context7 🟢 Ready View Preview Sep 3, 2026, 10:01 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@linear-code

linear-code Bot commented Sep 3, 2026

Copy link
Copy Markdown

CTX7-2660

@context7

context7 Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Docs7 for context7.com

Result Status Action
Deployment ✅ Ready Open preview
Content review ✅ Passed. No problems found. View findings

Commit 5755688 · Updated 2026-09-07 16:56 UTC · View build details

@fahreddinozcan fahreddinozcan changed the title ctx7-2660: add Claude Enterprise-Managed Auth endpoint ctx7-2660: support EMA through Claude Code plugin Sep 7, 2026
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