mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 23:29:10 +02:00
| .. | ||
| client.py | ||
| README.md | ||
| server.py | ||
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.py -
In another terminal, run the client:
python client.py
The client will open your browser for WorkOS authentication.