Skip to Content
coaadedocs

MCP, plugins and hooks

Connect stdio MCP servers, add custom slash commands with local plugins, and run scripts on agent events with hooks.

None of these turn on by themselves. A repository can't enable an MCP server, plugin or hook; you configure each one explicitly, and the configuration is stored privately for your account and project.

MCP servers

The CLI supports the Model Context Protocol over the standard stdio transport.

/mcp add example {"command":"/absolute/path/to/server","args":[]}
/mcp                    # list servers and their status
/mcp reconnect
/mcp remove example

The JSON can also include an env object. Adding a server runs its executable, so only add servers you trust.

  • Each tool call shows its arguments and needs approval unless a permission rule allows it.
  • MCP tools aren't available in plan mode.
  • Remote HTTP/OAuth transports, server-initiated sampling and resource subscriptions aren't supported.

Plugins

A plugin is a folder with a coaade-plugin.json manifest. It can add skills (custom slash commands) and hooks.

coaade-plugin.json
{
  "name": "team",
  "skills": [
    {
      "name": "review",
      "description": "Review against the team's checklist",
      "instructions": "Review correctness, error handling and meaningful tests. Cite file locations."
    }
  ],
  "hooks": [
    { "event": "PostToolUse", "command": "/absolute/path/to/hook-script" }
  ]
}
/plugins install /absolute/path/to/plugin-folder
/team:review                 # run the plugin's skill
/skills                      # list custom commands
/plugins remove team

Installing copies the manifest into your private project settings. Hook scripts stay where they are. There's no marketplace.

Hooks

Hooks run a command when something happens in a session. They receive the event as JSON on standard input.

EventRunsIf the hook fails
SessionStartWhen a session startsReported
PreToolUseBefore a tool runsThe tool is blocked
PostToolUseAfter a tool runsReported; the tool isn't undone
StopWhen the agent finishes a turnReported
  • Hooks time out after 30 seconds, and their output is capped.
  • A hook's output isn't treated as instructions or permission.
  • With /sandbox on, hooks run in the sandbox too.

Skills from Manager

With the bedrock provider, the CLI also loads data-only skill manifests and Markdown rules from ~/.coaade/skills (or the skill_dir setting). No scripts in skill packs are run. With the manager provider, Manager handles skills.

On this page