Skip to content

feat: add b2b_ecommerce example for auth0-ai-mcp - #172

Open
kishore7snehil wants to merge 4 commits into
feat/auth0-ai-mcp-packagefrom
feat/auth0-ai-mcp-example
Open

kishore7snehil wants to merge 4 commits into
feat/auth0-ai-mcp-packagefrom
feat/auth0-ai-mcp-example

Conversation

@kishore7snehil

Copy link
Copy Markdown
Contributor

📋 Changes

Adds examples/b2b_ecommerce, an MCP server for a pretend online store that runs against a live Auth0 tenant. It shows auth0-ai-mcp end to end, with the store's tools returning one-line messages while token checks and exchanges are real.

✨ Features

  • Five tools behind per-tool scopes, four of which swap the caller's token for a separate token per downstream service with On-Behalf-Of, and one that uses a client credentials token.
  • An in-memory token_store that shows both strict and non_strict scope matching.
  • Auth0AsgiMiddleware wrapped around the MCP streamable-HTTP app.

📖 Documentation

The example README.md lists the services and tools, then gives the Auth0 CLI steps for the tenant, how to run it, how to add a service and tool, optional organization mode, and troubleshooting. Links to the package guides resolve once those land in a follow-up PR.

🧪 Testing

The example needs a live Auth0 tenant, so it has no automated tests. ruff check passes.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Contributor Checklist

@kishore7snehil
kishore7snehil marked this pull request as ready for review October 30, 2026 08:17
@kishore7snehil
kishore7snehil requested a review from a team as a code owner October 30, 2026 08:17
@kishore7snehil
kishore7snehil force-pushed the feat/auth0-ai-mcp-example branch from 2ce0bb3 to 564707a Compare November 2, 2026 16:25
@kishore7snehil
kishore7snehil force-pushed the feat/auth0-ai-mcp-example branch 2 times, most recently from c7085b6 to b9c4335 Compare November 4, 2026 08:32
@kishore7snehil
kishore7snehil force-pushed the feat/auth0-ai-mcp-example branch from b9c4335 to a51a447 Compare November 5, 2026 14:07
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.

2 participants