Plugins & Extensions Overview

How Tools, Skills, Connectors (MCP), and Plugins work together as four peer extension systems in PraisonAI

PraisonAI provides four peer extension systems — Tools, Skills, Connectors (inbound MCP), and Plugins — so you can add executable actions, declarative playbooks, remote SaaS integrations, or runtime lifecycle hooks without mixing concerns.

python
from praisonaiagents import Agent, MCP, plugins

plugins.enable(["logging"])  # Runtime lifecycle plugin

def get_order_status(order_id: str) -> str:
    """Look up an order status by ID."""
    return f"Order {order_id}: shipped"

agent = Agent(
    name="Support Agent",
    instructions="Answer customer questions accurately.",
    tools=[get_order_status],                                      # 1. Tool (executable function)
    skills=["./skills/refund-policy"],                             # 2. Skill (declarative SKILL.md)
    mcps=MCP("https://mcp.linear.app/mcp", oauth=True, server_name="linear"),  # 3. Connector (remote MCP)
)

agent.start("Check order #4821, explain our return window, and file a Linear follow-up.")

The user submits one request; the agent follows its Skill instructions, calls local Tools and remote Connectors, while active Plugins observe, rewrite, or guard lifecycle events.

Diagram

Reverse Direction (Outbound)

Runtime Lifecycle & Bundling

Direct Agent Capabilities

can bundle via get_tools()

can bundle via get_skills()

served via praisonai-mcp

🔧 Tools
Executable functions
praisonai tools

📚 Skills
Declarative SKILL.md
praisonai skills / npx skills

🔌 Connectors (Inbound MCP)
Remote SaaS + OAuth 2.1
praisonai connectors

🧩 Plugins & Hooks
PluginScope · requires · backends
praisonai plugins

🚀 Connect (Outbound MCP)
Expose PraisonAI to 22 editors
praisonai connect

🤖 PraisonAI Agent


Which Extension Should I Use?

Choose the right layer based on whether you are running code, teaching instructions, connecting a remote SaaS service, or intercepting the agent runtime.

Diagram

Connect external SaaS into PraisonAI

Expose PraisonAI inside Cursor / Claude Code

Teach procedures & domain rules

Run a Python function or built-in tool

Intercept lifecycle, guardrails, backends, or ship a bundle

What do you want to add?

🔌 Connectors · praisonai connectors

🚀 Connect · praisonai connect

📚 Skills · SKILL.md

🔧 Tools · @tool

🧩 Plugins & Hooks · Plugin

SystemOne-Line RolePython APICLI CommandStarting Point
Connectors (Inbound MCP)Connect remote third-party SaaS MCP servers (GitHub, Linear, Notion, Stripe, …) with OAuth 2.1MCP("https://...", oauth=True)praisonai connectorsList of Connectors · Remote MCP Connectors
SkillsDeclarative SKILL.md playbooks loaded via progressive disclosureAgent(skills=["./dir"])praisonai skills · npx skills addAgent Skills · Skills vs Tools
ToolsExecutable functions — 140+ built-ins plus custom @tool callablesAgent(tools=[fn])praisonai toolsTools Overview · Custom Tools
Plugins & HooksRuntime lifecycle hooks, PluginScope, guardrails, swappable backends, and pip capability bundles (TOOL, HOOK, SKILL, POLICY, GUARDRAIL, INTEGRATION)plugins.enable() · PluginManagerpraisonai pluginsPlugins · Hooks
Connect (Outbound MCP)Opposite direction: register PraisonAI’s MCP server inside 22 editors & coding agentspraisonai-mcp servepraisonai connect <client>praisonai connect · Add to Your Agent

Quick Start

  1. Connect a remote SaaS service (Inbound Connector)
    bash
    praisonai connectors add github --auth
    praisonai mcp sync github
  2. Add a Skill
    bash
    npx skills add https://praison.ai/docs
    python
    from praisonaiagents import Agent
    
    agent = Agent(
        instructions="Review pull requests carefully.",
        skills=["./skills/code-review"],
    )
    agent.start("Review this diff for edge cases")
  3. Add a Tool
    python
    from praisonaiagents import Agent
    
    def convert_usd_to_eur(amount: float) -> str:
        """Convert a USD amount to EUR."""
        return f"{amount * 0.92:.2f} EUR"
    
    agent = Agent(
        instructions="Help with currency conversions.",
        tools=[convert_usd_to_eur],
    )
    agent.start("Convert 150 USD to EUR")
  4. Install or Load a Plugin
    bash
    praisonai plugins add praisonai-my-plugin
    python
    from praisonaiagents import Agent, discover_and_load_plugins
    
    discover_and_load_plugins()
    
    agent = Agent(name="Assistant", instructions="Help users")
    agent.start("Hello!")

Browse Every Section


Best Practices

Start with a Tool, Skill, or Connector before writing a Plugin

Use a plain function (tools=[fn]) for actions, a SKILL.md (skills=[...]) for instructions, and praisonai connectors add for remote SaaS APIs. Reach for a Plugin when you need cross-cutting lifecycle hooks, guardrails/policies, swappable backends, or a bundled pip package.

Keep inbound connectors and outbound connect separate

Use praisonai connectors when your PraisonAI agent needs to call GitHub, Linear, Notion, or Stripe. Use praisonai connect when Cursor, Claude Code, Codex, or VS Code needs to call your PraisonAI agents.

Scope tools and enforce plugin trust gates in production

Pass --allow on remote connectors, --tools on outbound MCP servers, and use plugins.enable([...]) or .praisonai/config.yaml allow-lists so untrusted project plugins never auto-load silently.


Related