π The fast, Pythonic way to build MCP servers and clients.
WorkOS OAuth Example
Demonstrates FastMCP server protection with WorkOS OAuth.
Setup
Create a WorkOS application and copy your credentials:
export WORKOS_CLIENT_ID="your-client-id" export WORKOS_CLIENT_SECRET="your-client-secret" export WORKOS_AUTHKIT_DOMAIN="https://your-app.authkit.app"Run the server:
python server.pyIn another terminal, run the client:
python client.py
The client will open your browser for WorkOS authentication.