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.

python
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.

Diagram

praisonai connect

⌨️ praisonai connect cursor

📝 Diff + .praisonai.bak

⚙️ Atomic Config Update

🔍 MCP Handshake

✅ N tools ready

Quick Start

  1. Install praisonai-mcp
    bash
    pip install "praisonai[mcp]"
    # or standalone:
    pip install praisonai-mcp
  2. Check detected clients
    bash
    praisonai connect

    Shows a status table across all 22 supported clients: installed, connected, or not installed, plus last active from the local connections.json ledger (nothing leaves your machine).

  3. 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

Diagram
praisonai-mcpEditor Configpraisonai connectUserpraisonai-mcpEditor Configpraisonai connectUserpraisonai connect cursorBackup (.praisonai.bak) + atomic write of praisonai entryMCP initialize + paginated tools/listN tools readyConnected (N tools ready)
CapabilityBehaviour
Idempotent & safe writesKeeps a .praisonai.bak backup, writes atomically, and edits only the praisonai entry (preserving TOML comments and other MCP servers).
Zero secrets writtenAPI 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 checkAfter 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 serversPass --url https://agents.example.com/mcp to connect to a remote HTTP-stream server (warns when a cloud-hosted client cannot reach localhost).
UI catalogpraisonai_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)

GroupClients
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
Genericany — 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.


Related