Skip to main content
Run AgentOS as its own OAuth authorization server for the MCP endpoint. Connecting requires the deployer secret on a consent page.
oauth_builtin_example.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run PgVector

5

Run the example

Save the code above as oauth_builtin_example.py, then run:
Full source: cookbook/05_agent_os/mcp_demo/oauth_builtin_example.py