Status
Quick Start
1
Configure Remote Server
Add a remote MCP server with OAuth to your config. Servers declared in
~/.praisonai/config.yaml (global) or ./.praisonai/config.yaml (project) are automatically picked up by praisonai run:2
Authenticate
3
Use the Server
CLI Commands
Authenticate
- Opens browser for user authorization
- Waits for callback with authorization code
- Stores tokens securely in
~/.praisonai/mcp-auth.json
Logout
List Servers
Configuration Schema
Remote Server with OAuth
Remote Server with API Key
Local Server (stdio)
Python SDK
Using Auth Storage
PKCE Utilities
OAuth Callback Handler
Token Storage
OAuth tokens are stored in~/.praisonai/mcp-auth.json with secure file permissions (0600).
Storage structure:
Security
- File permissions: Token storage uses 0600 permissions (owner read/write only)
- PKCE: All OAuth flows use PKCE (Proof Key for Code Exchange) for security
- State parameter: CSRF protection via random state parameter
- URL validation: Tokens are invalidated if server URL changes
Troubleshooting
Related
- MCP Server - Deploy PraisonAI as MCP server
- Remote MCP - Connect to remote MCP servers
- MCP Tools - Using MCP tools with agents

