CLI
Python - Single Agent
Python - Multi-Agent
agents.yaml
MCP server mode is Python-only. Use the CLI to start an HTTP server, then connect via MCP client.MCP Endpoints
| Endpoint | Method | Description |
|---|---|---|
/sse | GET | SSE connection for MCP |
/messages/ | POST | Send MCP messages |
Connect MCP Client
Claude Desktop (claude_desktop_config.json):
.cursor/mcp.json):
launch() Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
port | int | 8000 | Server port |
host | str | 0.0.0.0 | Server host |
protocol | str | mcp | Must be mcp |
debug | bool | False | Debug mode |
Docker
app.py:Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | lsof -i :8080 |
| Missing deps | pip install "praisonaiagents[mcp]" |
| No API key | export OPENAI_API_KEY="your-key" |
| SSE not connecting | Check firewall, use host="0.0.0.0" |
Related
- MCP API Reference - Full MCP endpoint documentation
- Tools Server - Expose tools as MCP server
- Agents Server - Deploy as HTTP server

