Skip to main content
Keep AgentOS as the MCP resource server while WorkOS AuthKit owns login, consent, and token issuance. Configure AuthKit to issue AgentOS resource scopes such as config:read and agents:run.
oauth_authkit.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as oauth_authkit.py, then run:
Full source: cookbook/05_agent_os/14_mcp/oauth_authkit.py