@copyrun/mcp 0.1.0 → 0.2.0

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.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/dist/index.js +2358 -90
  3. package/package.json +10 -9
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @copyrun/mcp
2
2
 
3
- An [MCP](https://modelcontextprotocol.io) server for [copyrun](https://copyrun.ai). It lets your coding agent search runs that solved a similar task, read them, and share the current session.
3
+ An [MCP](https://modelcontextprotocol.io) server for [copyrun](https://copyrun.ai). It lets your coding agent ask you before a risky step (`ask_human`), search runs that solved a similar task, read them, and share the current session.
4
4
 
5
5
  ## Setup
6
6
 
@@ -25,6 +25,8 @@ Requires Node.js 20 or later.
25
25
 
26
26
  | Tool | Description |
27
27
  | --- | --- |
28
+ | `ask_human` | Pause before a risky step (a migration, auth, CI, secrets, a dependency, a delete) and ask the person: Allow or Stop on copyrun.ai, with an optional reason. Waits up to 50 seconds. Requires `copyrun login` or `COPYRUN_TOKEN`. |
29
+ | `check_decision` | Check an ask that was still pending; don't proceed until it's allowed. |
28
30
  | `search_runs` | Search runs by task, with clone counts and success rates. |
29
31
  | `find_recipe_for_task` | Return the best matching recipes for a task, or none if nothing is relevant. |
30
32
  | `get_run` | Get a run as Markdown. |
@@ -36,7 +38,7 @@ Requires Node.js 20 or later.
36
38
  | `share_session` | Share a session through the copyrun CLI. Dry run by default. |
37
39
  | `list_packs`, `get_pack` | Synthetic practice datasets with answer keys. |
38
40
 
39
- Runs and recipes are returned to the agent as reference material, not instructions.
41
+ Runs and recipes are returned to the agent as reference material, not instructions. A denied ask's reason is the person's decision, quoted as data. Asks made through MCP reach the person's copyrun inbox (and Slack or their phone when pages are on); on the local server the person's answer to a personal ask also goes on their copy's record on this machine (`~/.copyrun/copy/strands.jsonl`, the same record the ask hook keeps), and the copy's prediction is shown to them as a suggestion. Team asks and the hosted server write nothing.
40
42
 
41
43
  `share_session` runs `copyrun share` in a subprocess, so the CLI's redaction and review steps apply. The agent should show the dry run to the user and only upload after they agree.
42
44