@copyrun/mcp 0.0.0-stage → 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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +56 -2
  3. package/dist/index.js +5066 -0
  4. package/package.json +48 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Copyrun, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,57 @@
1
- # Temporary Holding Version
1
+ # @copyrun/mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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
+
5
+ ## Setup
6
+
7
+ The `copyrun` CLI can add the server to Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI, Windsurf and VS Code. It asks before changing anything and keeps a backup of each config file.
8
+
9
+ ```sh
10
+ npx copyrun mcp install
11
+ ```
12
+
13
+ To configure it by hand, add a stdio server with this command:
14
+
15
+ ```json
16
+ {
17
+ "command": "npx",
18
+ "args": ["-y", "@copyrun/mcp"]
19
+ }
20
+ ```
21
+
22
+ Requires Node.js 20 or later.
23
+
24
+ ## Tools
25
+
26
+ | Tool | Description |
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. |
30
+ | `search_runs` | Search runs by task, with clone counts and success rates. |
31
+ | `find_recipe_for_task` | Return the best matching recipes for a task, or none if nothing is relevant. |
32
+ | `get_run` | Get a run as Markdown. |
33
+ | `get_recipe` | Get a run's published recipe (SKILL.md) and its security scan result. |
34
+ | `explain_run` | Plain-language notes on a run's steps. Requires `copyrun login`. |
35
+ | `report_result` | Report whether a cloned run worked. |
36
+ | `my_runs` | Runs shared from this machine. |
37
+ | `list_sessions` | Recent agent sessions on this machine. |
38
+ | `share_session` | Share a session through the copyrun CLI. Dry run by default. |
39
+ | `list_packs`, `get_pack` | Synthetic practice datasets with answer keys. |
40
+
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.
42
+
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.
44
+
45
+ ## Configuration
46
+
47
+ | Variable | Description |
48
+ | --- | --- |
49
+ | `COPYRUN_API` | Server URL. Defaults to `https://copyrun.ai`. |
50
+ | `COPYRUN_HOME` | CLI state directory. Defaults to `~/.copyrun`. |
51
+ | `COPYRUN_CLI` | CLI used by `share_session`. Defaults to the bundled `copyrun` package. |
52
+
53
+ The server uses the device token saved by `copyrun login` when one is present.
54
+
55
+ ## License
56
+
57
+ [MIT](LICENSE)