toolcapsule 0.1.0-alpha.1 → 0.1.0-alpha.11

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
@@ -5,14 +5,17 @@
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-black?style=flat-square)](LICENSE)
6
6
  [![GitHub Repo stars](https://img.shields.io/github/stars/RainSunMe/toolcapsule?style=flat-square)](https://github.com/RainSunMe/toolcapsule)
7
7
 
8
- > Heavy MCP tools don't belong in your prompt. Put them in a ToolCapsule.
8
+ > MCP-to-Skill for heavy MCP tools.
9
9
 
10
- **ToolCapsule** turns heavy MCP servers into lightweight, lazy-loaded, file-first **Agent Skills** with patch-and-retry workflows.
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.
11
13
 
12
14
  It is not a replacement for MCP or Skills. It is the missing workflow layer between them:
13
15
 
14
16
  ```text
15
17
  Heavy MCP server
18
+ → MCP-to-Skill workflow layer
16
19
  → compact Agent Skill
17
20
  → local args/content files
18
21
  → auditable tool runs
@@ -31,6 +34,36 @@ But large MCP servers can be expensive in agent contexts:
31
34
  - failed tool calls force the model to regenerate the whole call.
32
35
 
33
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`.
34
67
 
35
68
  ## What is a ToolCapsule?
36
69
 
@@ -47,11 +80,13 @@ Instead of making the model hold everything in the prompt, ToolCapsule stores he
47
80
  ```bash
48
81
  npm i -g toolcapsule
49
82
 
50
- 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
51
86
  toolcapsule tools feishu --brief
52
87
  toolcapsule schema feishu create-doc
53
88
  toolcapsule call feishu create-doc @args.json --save-run
54
- toolcapsule retry runs/2026-06-06T10-00-00-000Z
89
+ toolcapsule retry .toolcapsule/runs/feishu/2026-06-06T10-00-00-000Z
55
90
  ```
56
91
 
57
92
  Short alias:
@@ -64,11 +99,14 @@ tcap call feishu create-doc @args.json --save-run
64
99
  ## What it generates
65
100
 
66
101
  ```text
67
- .github/skills/feishu-mcp/
102
+ .claude/skills/feishu-mcp/
68
103
  SKILL.md # lightweight Agent Skill entrypoint
69
104
  toolcapsule.config.json # MCP transport/profile config
70
105
  scripts/README.md
71
- runs/ # auditable tool call records
106
+
107
+ .toolcapsule/
108
+ profiles/feishu.json # local MCP profile
109
+ runs/feishu/ # auditable tool call records
72
110
  ```
73
111
 
74
112
  This lets your agent discover the Skill instead of carrying the full MCP schema in every turn.
@@ -95,7 +133,7 @@ toolcapsule call feishu create-doc @args.json --save-run
95
133
  # 2. Patch args.json or content.md
96
134
 
97
135
  # 3. Retry deterministically
98
- toolcapsule retry runs/2026-06-06T10-00-00-000Z
136
+ toolcapsule retry .toolcapsule/runs/feishu/2026-06-06T10-00-00-000Z
99
137
  ```
100
138
 
101
139
  This is especially useful for MCP tools that create documents, tickets, pages, dashboards, reports, or batch operations.
@@ -113,8 +151,12 @@ Results vary by MCP server, model, and host.
113
151
  ## CLI
114
152
 
115
153
  ```text
116
- toolcapsule init <name> --url <remote-mcp-url>
117
- toolcapsule init <name> --command <stdio-command> --arg <arg>
154
+ toolcapsule init <name> --url <remote-mcp-url> --target claude
155
+ toolcapsule init <name> --command <stdio-command> --arg <arg> --target claude
156
+ toolcapsule install-skill --target claude
157
+ toolcapsule import --dry-run
158
+ toolcapsule import --name <server> --target claude
159
+ toolcapsule import --all --target all
118
160
  toolcapsule tools <profile> --brief
119
161
  toolcapsule describe <profile> <tool> --brief
120
162
  toolcapsule schema <profile> <tool>
@@ -146,12 +188,15 @@ Early alpha. APIs may change before v1.0.
146
188
 
147
189
  - [Concept](docs/concept.md)
148
190
  - [Architecture](docs/architecture.md)
191
+ - [Import existing MCP configuration](docs/importing-mcp.md)
149
192
  - [Patch and retry](docs/patch-and-retry.md)
150
193
  - [Benchmark methodology](docs/benchmark-methodology.md)
151
194
  - [Releasing](docs/releasing.md)
152
195
  - [Launch notes](docs/launch.md)
196
+ - [Screenshots and recordings](docs/screenshots.md)
153
197
  - [Next steps](docs/next-steps.md)
154
198
  - [Release checklist](docs/release-checklist.md)
199
+ - [Agent tool compatibility research](docs/agent-tool-compatibility.md)
155
200
  - [Roadmap](ROADMAP.md)
156
201
 
157
202
  ## License