fastmcp/examples/auth/authkit_dcr
2025-09-27 12:01:41 -04:00
..
client.py Add authkit example (#1935) 2025-09-26 18:33:08 -04:00
README.md Add authkit example (#1935) 2025-09-26 18:33:08 -04:00
server.py Remove redirect path for authkit example (#1938) 2025-09-27 12:01:41 -04:00

AuthKit DCR Example

Demonstrates FastMCP server protection with AuthKit Dynamic Client Registration.

Setup

  1. Set your AuthKit domain:

    export FASTMCP_SERVER_AUTH_AUTHKITPROVIDER_AUTHKIT_DOMAIN="https://your-app.authkit.app"
    
  2. Run the server:

    python server.py
    
  3. In another terminal, run the client:

    python client.py
    

The client will open your browser for AuthKit authentication.