toolcapsule 0.1.0-alpha.0 → 0.1.0-alpha.10

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
@@ -1,13 +1,21 @@
1
1
  # ToolCapsule
2
2
 
3
- > Heavy MCP tools don't belong in your prompt. Put them in a ToolCapsule.
3
+ [![npm version](https://img.shields.io/npm/v/toolcapsule?style=flat-square)](https://www.npmjs.com/package/toolcapsule)
4
+ [![CI](https://img.shields.io/github/actions/workflow/status/RainSunMe/toolcapsule/ci.yml?branch=main&style=flat-square)](https://github.com/RainSunMe/toolcapsule/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/license-MIT-black?style=flat-square)](LICENSE)
6
+ [![GitHub Repo stars](https://img.shields.io/github/stars/RainSunMe/toolcapsule?style=flat-square)](https://github.com/RainSunMe/toolcapsule)
4
7
 
5
- **ToolCapsule** turns heavy MCP servers into lightweight, lazy-loaded, file-first **Agent Skills** with patch-and-retry workflows.
8
+ > MCP-to-Skill for heavy MCP tools.
9
+
10
+ **ToolCapsule** turns heavy MCP servers into lightweight, lazy-loaded, file-first **Agent Skills** with saved runs and patch-and-retry recovery.
11
+
12
+ If you are looking for **lazy MCP**, **MCP to Skill**, **MCP-to-Skill**, or **Agent Skills for MCP tools**, ToolCapsule is built for that workflow.
6
13
 
7
14
  It is not a replacement for MCP or Skills. It is the missing workflow layer between them:
8
15
 
9
16
  ```text
10
17
  Heavy MCP server
18
+ → MCP-to-Skill workflow layer
11
19
  → compact Agent Skill
12
20
  → local args/content files
13
21
  → auditable tool runs
@@ -26,6 +34,36 @@ But large MCP servers can be expensive in agent contexts:
26
34
  - failed tool calls force the model to regenerate the whole call.
27
35
 
28
36
  ToolCapsule keeps the MCP server as the source of truth, but exposes it through a lightweight Skill and local artifacts.
37
+ Transport logs are quiet by default so remote MCP URLs are not printed during normal use. Set `TOOLCAPSULE_DEBUG=1` only when debugging.
38
+
39
+ ## MCP-to-Skill and lazy MCP
40
+
41
+ ToolCapsule is an **MCP-to-Skill workflow layer**. It imports existing MCP configurations and generates Agent Skills that let agents lazy-load MCP schemas only when needed.
42
+
43
+ This is the practical version of a lazy MCP workflow:
44
+
45
+ - MCP remains the protocol and source of truth;
46
+ - Skills become the agent-facing workflow;
47
+ - large payloads move into local files;
48
+ - failed calls become patchable artifacts instead of regenerated prompts.
49
+
50
+ ## Import your existing MCP setup
51
+
52
+ Already configured MCP in Claude Code, GitHub Copilot / VS Code, OpenCode, Gemini CLI, or Cursor? Import it instead of retyping URLs and commands:
53
+
54
+ ```bash
55
+ tcap import --dry-run
56
+ tcap import --name github --target claude
57
+ ```
58
+
59
+ ToolCapsule scans common workspace MCP config files such as `.mcp.json`, `.vscode/mcp.json`, `opencode.json`, `.gemini/settings.json`, and `.cursor/mcp.json`, then creates:
60
+
61
+ ```text
62
+ .toolcapsule/profiles/<server>.json
63
+ .claude/skills/<server>-mcp/SKILL.md
64
+ ```
65
+
66
+ Use `--target copilot`, `--target opencode`, `--target agents`, or `--target all` to write skills for other agents. User-level MCP configs are only inspected when you opt in with `--include-user`.
29
67
 
30
68
  ## What is a ToolCapsule?
31
69
 
@@ -42,9 +80,11 @@ Instead of making the model hold everything in the prompt, ToolCapsule stores he
42
80
  ```bash
43
81
  npm i -g toolcapsule
44
82
 
45
- toolcapsule init feishu --url https://mcp.example.com/mcp/xxx
83
+ toolcapsule install-skill
84
+ toolcapsule import --dry-run
85
+ toolcapsule import --name feishu --target claude
46
86
  toolcapsule tools feishu --brief
47
- toolcapsule describe feishu create-doc --brief
87
+ toolcapsule schema feishu create-doc
48
88
  toolcapsule call feishu create-doc @args.json --save-run
49
89
  toolcapsule retry runs/2026-06-06T10-00-00-000Z
50
90
  ```
@@ -59,7 +99,7 @@ tcap call feishu create-doc @args.json --save-run
59
99
  ## What it generates
60
100
 
61
101
  ```text
62
- .github/skills/feishu-mcp/
102
+ .claude/skills/feishu-mcp/
63
103
  SKILL.md # lightweight Agent Skill entrypoint
64
104
  toolcapsule.config.json # MCP transport/profile config
65
105
  scripts/README.md
@@ -108,14 +148,19 @@ Results vary by MCP server, model, and host.
108
148
  ## CLI
109
149
 
110
150
  ```text
111
- toolcapsule init <name> --url <remote-mcp-url>
112
- toolcapsule init <name> --command <stdio-command> --arg <arg>
151
+ toolcapsule init <name> --url <remote-mcp-url> --target claude
152
+ toolcapsule init <name> --command <stdio-command> --arg <arg> --target claude
153
+ toolcapsule install-skill --target claude
154
+ toolcapsule import --dry-run
155
+ toolcapsule import --name <server> --target claude
156
+ toolcapsule import --all --target all
113
157
  toolcapsule tools <profile> --brief
114
158
  toolcapsule describe <profile> <tool> --brief
159
+ toolcapsule schema <profile> <tool>
115
160
  toolcapsule call <profile> <tool> @args.json --save-run
116
161
  toolcapsule retry <run-dir>
117
162
  toolcapsule summarize <profile>
118
- toolcapsule benchmark <profile>
163
+ toolcapsule benchmark <profile> --markdown --out toolcapsule-report.md
119
164
  ```
120
165
 
121
166
  `tcap` is an equivalent short alias for `toolcapsule`.
@@ -140,9 +185,15 @@ Early alpha. APIs may change before v1.0.
140
185
 
141
186
  - [Concept](docs/concept.md)
142
187
  - [Architecture](docs/architecture.md)
188
+ - [Import existing MCP configuration](docs/importing-mcp.md)
143
189
  - [Patch and retry](docs/patch-and-retry.md)
144
190
  - [Benchmark methodology](docs/benchmark-methodology.md)
191
+ - [Releasing](docs/releasing.md)
192
+ - [Launch notes](docs/launch.md)
193
+ - [Screenshots and recordings](docs/screenshots.md)
194
+ - [Next steps](docs/next-steps.md)
145
195
  - [Release checklist](docs/release-checklist.md)
196
+ - [Agent tool compatibility research](docs/agent-tool-compatibility.md)
146
197
  - [Roadmap](ROADMAP.md)
147
198
 
148
199
  ## License