# Plugins and Plugin MCP reference

Session Marketplace plugins turn completed 23step sessions into pre-merge reviews, security audits, runnable test suites, release notes, walkthroughs, living docs, and automatic PR links. All 1st-party plugins enable in one click from `/app/marketplace` using your plan's shared monthly AI credits—with zero per-plugin paywalls.

## 1st-party plugins and shared AI credits

Every plan includes a shared monthly AI credit pool across all live 1st-party AI plugins: **Free** (20 credits/month, plus your first 5 pushed or PR sessions auto-run Catch free), **Pro** ($20/month, 150 credits/month), **Team** ($80/month, 600 credits/month), and **Enterprise** (custom/unlimited credits plus Enterprise Governance). **CR Badges** is free on every plan and uses 0 credits.

Credits reset on the 1st of each month (UTC). If an organization reaches 0 credits, automatic plugin runs pause cleanly with no overage charges. Admins can enable plugins per organization, team, or squad in `/app/marketplace` and open active plugin workspaces under `/app/plugins`.

Live 1st-party plugins:

| Plugin ID | Category | Credits | Workspace & share path |
| --- | --- | --- | --- |
| `cr-badges` (CR Badges; legacy alias `pr-sync`) | Workflows | Free (0 cr) | `/app/marketplace/cr-badges` · Commit trailers, live badges & PR preview cards |
| `catch` (Catch) | Review & Quality | 1 cr / catch | `/app/marketplace/catch` · `/c/{id}` |
| `debtradar` (DebtRadar) | Review & Quality | 1 cr / scan | `/app/marketplace/debtradar` · `/d/{id}` |
| `schemawatch` (SchemaWatch) | Review & Quality | 1 cr / check | `/app/marketplace/schemawatch` · `/w/{id}` |
| `stride` (Stride) | Review & Quality | 1 cr / audit | `/app/marketplace/stride` · `/e/{id}` |
| `testforge` (TestForge) | QA & Testing | 2 cr / suite | `/app/marketplace/testforge` · `/f/{id}` |
| `aegis` (Aegis) | Security & Compliance | 2 cr / scan | `/app/marketplace/aegis` · `/a/{id}` |
| `polygraph` (Polygraph) | Security & Compliance | 1 cr / audit | `/app/marketplace/polygraph` · `/p/{id}` · `/p/{id}/badge.svg` |
| `attest` (Attest) | Enterprise Governance | 2 cr / attestation | `/app/marketplace/attest` · `/t/{id}` (Enterprise Governance plans) |
| `shiplog` (ShipLog) | Delivery & Docs | 1 cr / release | `/app/marketplace/shiplog` · `/r/{id}` |
| `guidecraft` (GuideCraft) | Delivery & Docs | 1 cr / guide | `/app/marketplace/guidecraft` · `/g/{id}` |
| `lore` (Lore) | Delivery & Docs | 2 cr / sync | `/app/marketplace/lore` · `/l/{id}` |
| `techradar` (TechRadar) | Delivery & Docs | 1 cr / sweep | `/app/marketplace/techradar` · `/n/{id}` |

## CR Badges and live status badges

**CR Badges** (`cr-badges`, legacy ID `pr-sync`) works with zero OAuth server setup by delivering lightweight instructions over the existing 23step agent feedback channel (`GET /runs/{id}/feedback`). When enabled, coding agents automatically attach `23step:` and active plugin trailers to commits and a footer with the replay link, live status badges, and PR preview cards to pull or merge requests.

Configure organization, team, and squad toggles (`include_commits`, `include_prs`, `include_step_link`, `include_catch_badge`) at `/app/marketplace/cr-badges`, or mute CR Badges for your own runs in `/app/settings`.

`GET https://app.23step.com/c/{id}/badge.svg` renders a compact, live-updating SVG verdict badge (`Analyzing...`, `Safe to merge`, `Needs verification`, or `Blocked`) with generic counts only—never code, filenames, repo names, or PII—and sets `Cache-Control: no-cache` + revision `ETag` so GitHub and GitLab revalidate cleanly. Opening `/c/{id}` before Catch finishes lazily queues synthesis on demand.

## Plugin MCP endpoints, scopes, and tools

Coding agents can read plugin digests, fetch ready-made remediation prompts, post inline comments, and resolve tasks live alongside human reviewers using dedicated least-privilege scopes (`plugins:read`, `plugins:comment`, `plugins:tasks`, or `plugins:write` for both comment and task writes) via either MCP OAuth 2.1 or scoped `st_...` API keys.

Connect to `POST https://mcp.23step.com/mcp` to use run and plugin tools together, `POST https://mcp.23step.com/mcp/plugins` for a plugin-only surface across all 12 collaboration plugins (`catch`, `aegis`, `polygraph`, `attest`, `lore`, `stride`, `debtradar`, `guidecraft`, `schemawatch`, `testforge`, `shiplog`, `techradar`), or `POST https://mcp.23step.com/mcp/plugins/{plugin}` to pin a single plugin automatically.

Inline text quote highlights and image/diagram annotations stay synced in real time between the Web UI and MCP. As with run data, all plugin text, findings, prompts, and comments are fenced inside unforgeable `<<UNTRUSTED …>>` boundary markers.

Terminal (Plugin MCP tools/call):

```sh
curl -sS https://mcp.23step.com/mcp/plugins \
  -H "Authorization: Bearer $STEP23_PLUGIN_MCP_KEY" \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"get_plugin_summary","arguments":{"plugin":"catch","only_open_tasks":true}}}'
```

Plugin MCP tools, prompts, and resources:

| Tool / Method | Scope | Arguments & result |
| --- | --- | --- |
| `get_plugin_summary` | `plugins:read` | `plugin` (or `all`), optional `id`/`session_id`, `q`, `status`, `repo`, `only_open_tasks`, `include_prompts`, `limit`. Returns a `<450`-token summary (verdict, score, TLDR, identified tasks, recent comments), or lists documents when `id` is omitted. |
| `inspect_plugin_doc` | `plugins:read` | `plugin`, `id`/`session_id`, optional `task_id`, `section` (`tasks`, `markdown`, `structured`, `comments`, `extra`, `all`), `grep`, `offset`, `limit`. Drills into one task's ready-made AI prompt and evidence, or paginates full sections. |
| `comment_plugin` | `plugins:comment` | `plugin`, `id`/`session_id`, `text` (`<=4000` chars), optional `task_id`, plus optional inline anchors (`anchor_kind` `text`/`media`, `anchor_id`, `anchor_label`, `selected_text`, `selection_start`, `selection_end`, `x`, `y`). Posts a redacted comment live to the Web UI thread. |
| `complete_plugin_task` | `plugins:tasks` | `plugin`, `id`/`session_id`, `task_id`, optional `done` (default `true`, `false` to reopen), `note` (`<=1000` chars). Updates the shared task checklist live. |
| `prompts/list` & `prompts/get` | `plugins:read` | Exposes ready-made coding-agent prompts (`resolve_<plugin>_task` templates and concrete `<plugin>:<id>:<task_id>` prompts for open tasks). |
| `resources/read` | `plugins:read` | Reads `23step://plugins/{plugin}/{id}/summary` and `23step://plugins/{plugin}/{id}/tasks` directly. |

## Building custom plugins on the 23step data stream

External developers can build custom workflows and plugins on top of the 23step data stream using the documented [HTTP API](https://23step.com/docs/http-api.md) (`23step.run/v4` structured run payloads, frames, commands, and OTLP telemetry), [MCP server](https://23step.com/docs/mcp.md) (OAuth 2.1 + least-privilege `runs:*` and `plugins:*` scopes), and per-organization visibility controls.

Start by reading structured runs via `GET /runs/{id}` or `get_run_summary`, authenticating user workflows with MCP OAuth 2.1 (`/.well-known/oauth-protected-resource`), and writing findings or annotations back via `annotate_run` or `comment_plugin`.

---

Version: `v0.2` (latest). All 23step developer docs: https://23step.com/docs.md
