mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-12 08:39:09 +02:00
530 B
530 B
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.