toolcapsule 0.1.0-alpha.11 → 0.1.0-alpha.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 +46 -18
- package/dist/cli.js +521 -283
- package/dist/cli.js.map +1 -1
- package/docs/agent-tool-compatibility.md +14 -3
- package/docs/architecture.md +1 -1
- package/docs/blog-launch.md +13 -10
- package/docs/comparison.md +69 -0
- package/docs/concept.md +4 -4
- package/docs/hero-copy.md +1 -1
- package/docs/importing-mcp.md +36 -7
- package/docs/launch.md +13 -12
- package/docs/next-steps.md +5 -4
- package/examples/feishu/README.md +4 -1
- package/llms.txt +11 -15
- package/package.json +3 -2
- package/skills/toolcapsule/SKILL.md +122 -0
package/README.md
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://github.com/RainSunMe/toolcapsule)
|
|
7
7
|
|
|
8
|
-
>
|
|
8
|
+
> AI-first workflow manager for heavy MCP tools.
|
|
9
9
|
|
|
10
|
-
**ToolCapsule** turns heavy
|
|
10
|
+
**ToolCapsule** inventories your MCPs, turns heavy ones into lightweight, lazy-loaded, file-first **Agent Skills**, and keeps tool calls auditable with saved runs and patch-and-retry recovery.
|
|
11
11
|
|
|
12
|
-
If you are looking for **lazy MCP**, **MCP to Skill**, **MCP-to-Skill**, or **Agent Skills for MCP tools**, ToolCapsule
|
|
12
|
+
If you are looking for **lazy MCP**, **MCP to Skill**, **MCP-to-Skill**, or **Agent Skills for MCP tools**, ToolCapsule covers that workflow without replacing MCP.
|
|
13
13
|
|
|
14
14
|
It is not a replacement for MCP or Skills. It is the missing workflow layer between them:
|
|
15
15
|
|
|
16
16
|
```text
|
|
17
17
|
Heavy MCP server
|
|
18
|
-
→
|
|
18
|
+
→ AI-first ToolCapsule workflow layer
|
|
19
19
|
→ compact Agent Skill
|
|
20
20
|
→ local args/content files
|
|
21
21
|
→ auditable tool runs
|
|
@@ -36,9 +36,9 @@ But large MCP servers can be expensive in agent contexts:
|
|
|
36
36
|
ToolCapsule keeps the MCP server as the source of truth, but exposes it through a lightweight Skill and local artifacts.
|
|
37
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
38
|
|
|
39
|
-
##
|
|
39
|
+
## AI-first MCP workflow
|
|
40
40
|
|
|
41
|
-
ToolCapsule is an **
|
|
41
|
+
ToolCapsule is an **AI-first workflow manager for heavy MCP tools**. It inventories existing MCP configurations, links selected servers into ToolCapsule profiles, and generates Agent Skills that let agents lazy-load MCP schemas only when needed.
|
|
42
42
|
|
|
43
43
|
This is the practical version of a lazy MCP workflow:
|
|
44
44
|
|
|
@@ -52,18 +52,20 @@ This is the practical version of a lazy MCP workflow:
|
|
|
52
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
53
|
|
|
54
54
|
```bash
|
|
55
|
-
tcap
|
|
56
|
-
tcap
|
|
55
|
+
tcap mcp list --include-user
|
|
56
|
+
tcap mcp enable docs --as feishu --target claude
|
|
57
57
|
```
|
|
58
58
|
|
|
59
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
60
|
|
|
61
61
|
```text
|
|
62
|
-
|
|
62
|
+
~/.toolcapsule/profiles/<server>.json
|
|
63
63
|
.claude/skills/<server>-mcp/SKILL.md
|
|
64
64
|
```
|
|
65
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`.
|
|
66
|
+
MCP profiles are user-level by default because MCP server connections are usually reused across projects. Use `--local` to store a profile in `.toolcapsule/profiles/` for the current workspace. 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`.
|
|
67
|
+
|
|
68
|
+
Imports link back to the original MCP config by default so ToolCapsule does not duplicate private MCP URLs. Use `--copy` when you want a stable ToolCapsule snapshot profile.
|
|
67
69
|
|
|
68
70
|
## What is a ToolCapsule?
|
|
69
71
|
|
|
@@ -77,12 +79,32 @@ Instead of making the model hold everything in the prompt, ToolCapsule stores he
|
|
|
77
79
|
|
|
78
80
|
## Quick start
|
|
79
81
|
|
|
82
|
+
AI-first onboarding: install the ToolCapsule Skill into your coding agent, then ask the agent to inventory MCPs and capsule the heavy ones.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`npx skills add toolcapsule` is not enough today because the `skills` CLI treats a bare value as a git source. Use the GitHub shorthand above.
|
|
89
|
+
|
|
90
|
+
For a specific agent or global install:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule --agent claude-code
|
|
94
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule --global --agent claude-code
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Then tell your agent:
|
|
98
|
+
|
|
99
|
+
> Use the ToolCapsule Skill. Scan my MCP servers, pick the heavy ones, and turn them into lazy ToolCapsule Skills.
|
|
100
|
+
|
|
101
|
+
Manual CLI workflow:
|
|
102
|
+
|
|
80
103
|
```bash
|
|
81
104
|
npm i -g toolcapsule
|
|
82
105
|
|
|
83
|
-
toolcapsule
|
|
84
|
-
toolcapsule
|
|
85
|
-
toolcapsule import --name feishu --target claude
|
|
106
|
+
toolcapsule mcp list --include-user
|
|
107
|
+
toolcapsule mcp enable docs --as feishu --target claude
|
|
86
108
|
toolcapsule tools feishu --brief
|
|
87
109
|
toolcapsule schema feishu create-doc
|
|
88
110
|
toolcapsule call feishu create-doc @args.json --save-run
|
|
@@ -101,12 +123,13 @@ tcap call feishu create-doc @args.json --save-run
|
|
|
101
123
|
```text
|
|
102
124
|
.claude/skills/feishu-mcp/
|
|
103
125
|
SKILL.md # lightweight Agent Skill entrypoint
|
|
104
|
-
toolcapsule.config.json # MCP transport/profile config
|
|
105
126
|
scripts/README.md
|
|
106
127
|
|
|
128
|
+
~/.toolcapsule/
|
|
129
|
+
profiles/feishu.json # user-level MCP profile, reusable across projects
|
|
130
|
+
|
|
107
131
|
.toolcapsule/
|
|
108
|
-
|
|
109
|
-
runs/feishu/ # auditable tool call records
|
|
132
|
+
runs/feishu/ # workspace-local auditable tool call records
|
|
110
133
|
```
|
|
111
134
|
|
|
112
135
|
This lets your agent discover the Skill instead of carrying the full MCP schema in every turn.
|
|
@@ -153,9 +176,13 @@ Results vary by MCP server, model, and host.
|
|
|
153
176
|
```text
|
|
154
177
|
toolcapsule init <name> --url <remote-mcp-url> --target claude
|
|
155
178
|
toolcapsule init <name> --command <stdio-command> --arg <arg> --target claude
|
|
156
|
-
toolcapsule
|
|
179
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
180
|
+
toolcapsule mcp list --include-user
|
|
181
|
+
toolcapsule mcp enable <server> --as <profile> --target claude
|
|
182
|
+
toolcapsule mcp disable <profile>
|
|
183
|
+
toolcapsule mcp disable <server> --native
|
|
157
184
|
toolcapsule import --dry-run
|
|
158
|
-
toolcapsule import --name <server> --target claude
|
|
185
|
+
toolcapsule import --name <server> --as <profile> --target claude
|
|
159
186
|
toolcapsule import --all --target all
|
|
160
187
|
toolcapsule tools <profile> --brief
|
|
161
188
|
toolcapsule describe <profile> <tool> --brief
|
|
@@ -197,6 +224,7 @@ Early alpha. APIs may change before v1.0.
|
|
|
197
224
|
- [Next steps](docs/next-steps.md)
|
|
198
225
|
- [Release checklist](docs/release-checklist.md)
|
|
199
226
|
- [Agent tool compatibility research](docs/agent-tool-compatibility.md)
|
|
227
|
+
- [Comparison with native MCP, lazy-mcp, and MCP-to-Skill generators](docs/comparison.md)
|
|
200
228
|
- [Roadmap](ROADMAP.md)
|
|
201
229
|
|
|
202
230
|
## License
|