praisonai connect
One command installs PraisonAI's MCP server into 22 editors and coding agents — with backup, handshake check, and scoped tools
Connect your PraisonAI agents and tools to Cursor, VS Code, Claude Code, Claude Desktop, Codex, Gemini CLI, Windsurf, Zed, Antigravity, and 13 more MCP clients in one command — without hand-editing JSON or TOML configs.
from praisonaiagents import Agent
agent = Agent(name="Assistant", instructions="Help answer questions from any connected editor.")
agent.start("Verify my project setup")Run praisonai connect <client> and this agent is wired into your editor as an MCP server, verified with a real initialize + tools/list handshake.
Quick Start
- Install praisonai-mcp
bash pip install "praisonai[mcp]" # or standalone: pip install praisonai-mcp - Check detected clients
bash praisonai connectShows a status table across all 22 supported clients:
installed,connected, ornot installed, plus last active from the localconnections.jsonledger (nothing leaves your machine). - Connect one or all editors
bash praisonai connect cursor # writes ~/.cursor/mcp.json + verifies tools praisonai connect --all # every installed client praisonai connect codex --agents agents.yaml --tools 'ask_*' # scope to specific agents/tools praisonai connect cursor --print # print deep link, CLI command, and JSON (no write) praisonai connect --remove # remove the praisonai entry everywhere
How It Works
| Capability | Behaviour |
|---|---|
| Idempotent & safe writes | Keeps a .praisonai.bak backup, writes atomically, and edits only the praisonai entry (preserving TOML comments and other MCP servers). |
| Zero secrets written | API keys stay out of client configs; set keys are referenced in each client’s native env syntax (${env:OPENAI_API_KEY}, ${OPENAI_API_KEY}, Codex env_vars). |
| Live handshake check | After writing, runs a real MCP initialize + tools/list against the exact configured command and reports "N tools ready". |
| Consistent scoping | --tools 'ask_*,list_agents' and --agents agents.yaml are baked into server arguments, so scoping holds across every client including one-click deep links. |
| Remote servers | Pass --url https://agents.example.com/mcp to connect to a remote HTTP-stream server (warns when a cloud-hosted client cannot reach localhost). |
| UI catalog | praisonai_mcp.connect.export_catalog(spec) exports the same client catalog as JSON for the Connect sidebar page in praisonai dashboard / praisonai ui. |
Supported Clients (22 + Generic)
| Group | Clients |
|---|---|
| Editors (12) | cursor, vscode, vscode-insiders, windsurf, claude-desktop, zed, kiro, antigravity, trae, junie, cline, continue |
| Terminal agents (6) | claude-code, codex, gemini-cli, copilot-cli, opencode, amp |
| Other (4) | goose, raycast, chatgpt, lm-studio |
| Generic | any — prints a paste-ready snippet for any MCP-compatible client |
Best Practices
Preview with –print before editing shared configs
Run praisonai connect <client> --print to inspect the one-click deep link, vendor CLI command, and JSON/TOML snippet without modifying files on disk.
Scope exposed tools in team environments
Pass --agents agents.yaml --tools 'ask_*,list_agents' so connected editors see only the agents and tools you intend to expose.
Use OAuth 2.1 when connecting to a remote URL
When passing --url to a remote praisonai mcp serve --transport http-stream server, pair it with MCP Server OAuth 2.1 so editors sign in automatically without sharing static API keys.