@kurrent/kapacitor 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,7 +23,20 @@ kapacitor setup Configure server, login, and install plugin
23
23
  kapacitor status Show server, auth, and agent status
24
24
  kapacitor agent start [-d] Start agent daemon
25
25
  kapacitor agent stop Stop agent daemon
26
+ kapacitor review <pr> Launch Claude Code with PR review context
26
27
  kapacitor update Check for updates
27
28
  kapacitor --version Show version
28
29
  kapacitor --help Show all commands
29
30
  ```
31
+
32
+ ## PR Review
33
+
34
+ Start a Claude Code session with tools to query implementation context for a PR:
35
+
36
+ ```bash
37
+ kapacitor review https://github.com/owner/repo/pull/123
38
+ # or
39
+ kapacitor review owner/repo#123
40
+ ```
41
+
42
+ Claude gets MCP tools to search session transcripts, understand per-file rationale, and explain design decisions made during implementation.
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@kurrent/kapacitor",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "CLI companion for Kurrent Capacitor — records and visualizes Claude Code sessions",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
7
7
  "kapacitor": "bin/kapacitor.js"
8
8
  },
9
9
  "optionalDependencies": {
10
- "@kurrent/kapacitor-darwin-arm64": "0.1.11",
11
- "@kurrent/kapacitor-darwin-x64": "0.1.11",
12
- "@kurrent/kapacitor-linux-x64": "0.1.11",
13
- "@kurrent/kapacitor-linux-arm64": "0.1.11",
14
- "@kurrent/kapacitor-linux-musl-x64": "0.1.11",
15
- "@kurrent/kapacitor-linux-musl-arm64": "0.1.11",
16
- "@kurrent/kapacitor-win-x64": "0.1.11"
10
+ "@kurrent/kapacitor-darwin-arm64": "0.1.13",
11
+ "@kurrent/kapacitor-darwin-x64": "0.1.13",
12
+ "@kurrent/kapacitor-linux-x64": "0.1.13",
13
+ "@kurrent/kapacitor-linux-arm64": "0.1.13",
14
+ "@kurrent/kapacitor-linux-musl-x64": "0.1.13",
15
+ "@kurrent/kapacitor-linux-musl-arm64": "0.1.13",
16
+ "@kurrent/kapacitor-win-x64": "0.1.13"
17
17
  },
18
18
  "files": [
19
19
  "bin/",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "kapacitor",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Records and visualizes Claude Code sessions via kapacitor CLI hooks"
5
5
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "mcpServers": {
3
+ "kapacitor-review": {
4
+ "command": "kapacitor",
5
+ "args": ["mcp", "review"],
6
+ "description": "PR review context tools — query implementation session transcripts to understand why code was changed"
7
+ }
8
+ }
9
+ }
package/plugin/README.md CHANGED
@@ -1,9 +1,22 @@
1
1
  # Kapacitor Plugin for Claude Code
2
2
 
3
- This plugin integrates [Kurrent Capacitor](../README.md) with Claude Code by automatically registering lifecycle hooks and providing skills for session review.
3
+ This plugin integrates [Kurrent Capacitor](../README.md) with Claude Code by automatically registering lifecycle hooks, providing skills for session review, and exposing MCP tools for PR review context.
4
4
 
5
5
  ## What it does
6
6
 
7
+ **MCP Tools** — PR review context tools, available automatically when you're on a branch with an open PR. Claude can query implementation session transcripts to understand why code was changed:
8
+
9
+ | Tool | Description |
10
+ |------|-------------|
11
+ | `get_pr_summary` | Overview: sessions, files changed, test runs |
12
+ | `list_pr_files` | Files changed with session links and event counts |
13
+ | `get_file_context` | Why a specific file was changed, with transcript excerpts |
14
+ | `search_context` | Free-text search across session transcripts |
15
+ | `list_sessions` | Sessions that contributed to the PR |
16
+ | `get_transcript` | Full transcript of a specific session |
17
+
18
+ The MCP server auto-detects the current repo and PR from git. If you're not on a PR branch, the tools return a helpful message suggesting `kapacitor review <pr>`.
19
+
7
20
  **Hooks** — Automatically captures session activity and forwards it to the Kurrent Capacitor server:
8
21
 
9
22
  | Hook | Event |
@@ -17,10 +30,11 @@ This plugin integrates [Kurrent Capacitor](../README.md) with Claude Code by aut
17
30
 
18
31
  Each hook pipes its JSON payload through the `kapacitor` CLI, which enriches it with git/PR info and forwards it to the server. A background watcher process streams transcript lines in real time.
19
32
 
20
- **Skills** — Two slash commands for reviewing recorded sessions:
33
+ **Skills** — Slash commands for reviewing recorded sessions:
21
34
 
22
35
  - `/kapacitor:session-recap` — Retrieve a structured summary of a session (user prompts, assistant responses, plans, file changes)
23
36
  - `/kapacitor:session-errors` — Extract tool call errors from a session for post-session review and pattern detection
37
+ - `/kapacitor:validate-plan` — Verify that all planned items were completed
24
38
 
25
39
  ## Prerequisites
26
40
 
@@ -84,11 +98,14 @@ export KAPACITOR_URL=http://my-server:5108
84
98
  plugin/
85
99
  .claude-plugin/
86
100
  plugin.json — Plugin manifest (name, version, description)
101
+ .mcp.json — MCP server config (PR review context tools)
87
102
  hooks/
88
- hooks.json — Hook definitions for all 6 lifecycle events
103
+ hooks.json — Hook definitions for all lifecycle events
89
104
  skills/
90
105
  session-recap/
91
106
  SKILL.md — /kapacitor:session-recap skill
92
107
  session-errors/
93
108
  SKILL.md — /kapacitor:session-errors skill
109
+ validate-plan/
110
+ SKILL.md — /kapacitor:validate-plan skill
94
111
  ```