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/docs/importing-mcp.md
CHANGED
|
@@ -6,17 +6,42 @@ This is the fastest onboarding path when a user already has MCP working in Claud
|
|
|
6
6
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
9
|
+
AI-first onboarding starts by installing the ToolCapsule Skill, not the CLI:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
For non-interactive installation into Claude Code:
|
|
16
|
+
|
|
9
17
|
```bash
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule --agent claude-code --yes
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then ask the agent to use the ToolCapsule Skill to inspect MCPs and capsule selected heavy servers.
|
|
22
|
+
|
|
23
|
+
Manual CLI flow:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
tcap mcp list --include-user
|
|
27
|
+
tcap mcp enable <server> --as <profile> --target claude
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The newer inventory-oriented flow is:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
tcap mcp list --include-user
|
|
34
|
+
tcap mcp enable <server> --as <profile> --target claude
|
|
12
35
|
```
|
|
13
36
|
|
|
14
37
|
To write skills for multiple agents:
|
|
15
38
|
|
|
16
39
|
```bash
|
|
17
|
-
tcap
|
|
40
|
+
tcap mcp enable <server> --as <profile> --target all
|
|
18
41
|
```
|
|
19
42
|
|
|
43
|
+
Use `--as` when the native MCP server name is generic, for example `tcap import --name docs --as feishu`.
|
|
44
|
+
|
|
20
45
|
## What gets created
|
|
21
46
|
|
|
22
47
|
An MCP-to-Skill import keeps MCP as the capability layer and creates a Skill as the agent-facing workflow layer.
|
|
@@ -24,7 +49,7 @@ An MCP-to-Skill import keeps MCP as the capability layer and creates a Skill as
|
|
|
24
49
|
For an imported server named `github`, ToolCapsule writes:
|
|
25
50
|
|
|
26
51
|
```text
|
|
27
|
-
|
|
52
|
+
~/.toolcapsule/profiles/github.json
|
|
28
53
|
.claude/skills/github-mcp/SKILL.md
|
|
29
54
|
```
|
|
30
55
|
|
|
@@ -90,7 +115,11 @@ ToolCapsule stores the reference, not the resolved secret value.
|
|
|
90
115
|
|
|
91
116
|
- Run `--dry-run` first.
|
|
92
117
|
- Use `--include-user` only when you want ToolCapsule to inspect personal MCP config.
|
|
93
|
-
-
|
|
118
|
+
- Imported profiles are stored under `~/.toolcapsule/profiles/` by default so MCP connections can be reused across projects.
|
|
119
|
+
- Imports link to the original MCP config by default instead of copying private endpoints.
|
|
120
|
+
- Use `--copy` when you want a stable snapshot profile that no longer depends on the source MCP config file.
|
|
121
|
+
- Use `--local` only when a profile should be stored in the current workspace under `.toolcapsule/profiles/`.
|
|
122
|
+
- Do not commit local generated profiles if they contain private endpoints, document IDs, tokens, or machine-specific paths.
|
|
94
123
|
- Keep `.toolcapsule/`, generated skills, and run artifacts under review before sharing.
|
|
95
124
|
- Transport logs are quiet by default. Set `TOOLCAPSULE_DEBUG=1` only when debugging.
|
|
96
125
|
|
|
@@ -99,8 +128,8 @@ ToolCapsule stores the reference, not the resolved secret value.
|
|
|
99
128
|
### Import one server for Claude Code
|
|
100
129
|
|
|
101
130
|
```bash
|
|
102
|
-
tcap
|
|
103
|
-
tcap
|
|
131
|
+
tcap mcp list --include-user
|
|
132
|
+
tcap mcp enable notion --target claude
|
|
104
133
|
tcap tools notion --brief
|
|
105
134
|
```
|
|
106
135
|
|
package/docs/launch.md
CHANGED
|
@@ -2,29 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
## One-line pitch
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
AI-first workflow manager for heavy MCP tools.
|
|
6
6
|
|
|
7
7
|
## Short pitch
|
|
8
8
|
|
|
9
|
-
ToolCapsule turns
|
|
9
|
+
ToolCapsule inventories existing MCPs, turns selected heavy servers into lazy Agent Skills, and keeps calls file-first with patch-and-retry recovery.
|
|
10
10
|
|
|
11
11
|
## Announcement draft
|
|
12
12
|
|
|
13
|
-
MCP is becoming the standard way to connect agents to tools. Skills are becoming the standard way to package repeatable agent workflows. ToolCapsule connects the two
|
|
13
|
+
MCP is becoming the standard way to connect agents to tools. Skills are becoming the standard way to package repeatable agent workflows. ToolCapsule connects the two as an AI-first workflow manager for heavy MCP tools.
|
|
14
14
|
|
|
15
15
|
Large MCP servers can quietly eat your context window with long tool descriptions and schemas. ToolCapsule keeps MCP as the capability layer and turns heavy tools into compact, lazy-loaded Agent Skills. Large payloads live in files, every call can be recorded, and failed calls can be patched and retried without asking the model to regenerate everything.
|
|
16
16
|
|
|
17
17
|
Install:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
20
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Try:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
|
|
27
|
-
tcap
|
|
26
|
+
npm i -g toolcapsule
|
|
27
|
+
tcap mcp list --include-user
|
|
28
|
+
tcap mcp enable docs --as feishu --target claude
|
|
28
29
|
tcap tools feishu --brief
|
|
29
30
|
tcap call feishu create-doc @args.json --save-run
|
|
30
31
|
```
|
|
@@ -35,13 +36,13 @@ New onboarding angle:
|
|
|
35
36
|
|
|
36
37
|
Search angle:
|
|
37
38
|
|
|
38
|
-
> Lazy MCP, MCP to Skill, MCP-to-Skill, Agent Skills for MCP tools —
|
|
39
|
+
> Lazy MCP, MCP to Skill, MCP-to-Skill, Agent Skills for MCP tools — these are related search terms, but ToolCapsule is broader: inventory, enable, Skill generation, file-first calls, and patch-and-retry.
|
|
39
40
|
|
|
40
41
|
Short demo:
|
|
41
42
|
|
|
42
43
|
```bash
|
|
43
|
-
tcap
|
|
44
|
-
tcap
|
|
44
|
+
tcap mcp list --include-user
|
|
45
|
+
tcap mcp enable github --target all
|
|
45
46
|
```
|
|
46
47
|
|
|
47
48
|
## Suggested screenshot checklist
|
|
@@ -49,15 +50,15 @@ tcap import --name github --target all
|
|
|
49
50
|
Ask a human/function-caller to capture:
|
|
50
51
|
|
|
51
52
|
1. Hero section at `https://toolcapsule.studio` or `https://toolcapsule.vercel.app`.
|
|
52
|
-
2. Terminal showing `tcap
|
|
53
|
+
2. Terminal showing `tcap mcp list --include-user` finding existing MCP servers.
|
|
53
54
|
3. Terminal showing `tcap tools feishu --brief`.
|
|
54
55
|
4. Terminal showing a saved run directory.
|
|
55
56
|
5. Before/after graphic: native MCP schema in prompt vs ToolCapsule local artifacts.
|
|
56
57
|
|
|
57
58
|
## Suggested GIF flow
|
|
58
59
|
|
|
59
|
-
1. Run `tcap
|
|
60
|
-
2. Run `tcap
|
|
60
|
+
1. Run `tcap mcp list --include-user`.
|
|
61
|
+
2. Run `tcap mcp enable ... --as ... --target claude`.
|
|
61
62
|
3. Run `tcap call ... --save-run`.
|
|
62
63
|
4. Show failure or saved run artifacts.
|
|
63
64
|
5. Patch `args.json`.
|
package/docs/next-steps.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
ToolCapsule has reached a public alpha loop: GitHub repository, Vercel site, npm package, release workflow, and project skill are in place.
|
|
4
4
|
|
|
5
|
-
The public positioning is now:
|
|
5
|
+
The public positioning is now: AI-first workflow manager for heavy MCP tools. Keep future docs, demos, and releases aligned with MCP inventory, lazy Agent Skills, file-first calls, and patch-and-retry.
|
|
6
6
|
|
|
7
7
|
This document tracks what should happen next.
|
|
8
8
|
|
|
@@ -62,8 +62,8 @@ Add a better release note with:
|
|
|
62
62
|
Initial support exists:
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
tcap
|
|
66
|
-
tcap
|
|
65
|
+
tcap mcp list --include-user
|
|
66
|
+
tcap mcp enable <server> --as <profile> --target claude
|
|
67
67
|
tcap import --all --target all
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -201,7 +201,8 @@ Because ToolCapsule can call tools, store artifacts, and connect to MCP servers,
|
|
|
201
201
|
|
|
202
202
|
- Do not commit secrets.
|
|
203
203
|
- Run artifacts may contain sensitive data.
|
|
204
|
-
- `.toolcapsule/` is ignored by default and stores local
|
|
204
|
+
- `.toolcapsule/` is ignored by default and stores workspace-local run artifacts plus optional `--local` profiles.
|
|
205
|
+
- User-level MCP profiles live under `~/.toolcapsule/profiles/` by default.
|
|
205
206
|
- Generated files should be reviewed before sharing.
|
|
206
207
|
- Enterprise users should audit local artifacts.
|
|
207
208
|
|
|
@@ -13,10 +13,13 @@ tcap init feishu --url https://mcp.feishu.cn/mcp/your-endpoint
|
|
|
13
13
|
This creates:
|
|
14
14
|
|
|
15
15
|
```text
|
|
16
|
-
|
|
16
|
+
~/.toolcapsule/profiles/feishu.json
|
|
17
17
|
.github/skills/feishu-mcp/SKILL.md
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
Use `--local` if the profile should be stored in this workspace under `.toolcapsule/profiles/` instead.
|
|
21
|
+
Use `--copy` with `tcap import` if you want ToolCapsule to snapshot the MCP transport instead of linking the original MCP config.
|
|
22
|
+
|
|
20
23
|
## 2. Discover tools briefly
|
|
21
24
|
|
|
22
25
|
```bash
|
package/llms.txt
CHANGED
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
# ToolCapsule
|
|
2
2
|
|
|
3
|
-
ToolCapsule is
|
|
3
|
+
ToolCapsule is an AI-first workflow manager for heavy MCP tools. It inventories existing MCPs, turns selected heavy servers into lazy Agent Skills, and keeps calls file-first with patch-and-retry recovery.
|
|
4
4
|
|
|
5
5
|
Use it when an AI agent needs a lazy MCP workflow: operate a heavy MCP server without carrying full tool schemas in every prompt.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
+
AI-first install:
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
|
-
|
|
12
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
11
13
|
```
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
The ToolCapsule Skill then instructs the agent to install the CLI if needed:
|
|
14
16
|
|
|
15
17
|
```bash
|
|
16
|
-
|
|
18
|
+
npm install -g toolcapsule
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Inside a workspace:
|
|
21
|
+
Short command:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
tcap
|
|
24
|
+
tcap --help
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```text
|
|
30
|
-
.github/skills/toolcapsule/SKILL.md
|
|
31
|
-
```
|
|
27
|
+
Note: `npx skills add toolcapsule` is not enough today because the `skills` CLI treats a bare value as a git source. Use `RainSunMe/toolcapsule`.
|
|
32
28
|
|
|
33
29
|
## Convert an MCP server into a Skill workflow
|
|
34
30
|
|
|
35
|
-
This is the
|
|
31
|
+
This is the ToolCapsule enable step: keep MCP as the capability layer and generate an Agent Skill as the workflow layer.
|
|
36
32
|
|
|
37
33
|
Remote MCP:
|
|
38
34
|
|
|
@@ -67,7 +63,7 @@ tcap call <name> <tool> @args.json --save-run
|
|
|
67
63
|
## Retry after patching local files
|
|
68
64
|
|
|
69
65
|
```bash
|
|
70
|
-
tcap retry runs/<run-id>
|
|
66
|
+
tcap retry .toolcapsule/runs/<profile>/<run-id>
|
|
71
67
|
```
|
|
72
68
|
|
|
73
69
|
## Benchmark schema footprint
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcapsule",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
|
+
"description": "AI-first workflow manager for heavy MCP tools with lazy Agent Skills and patchable runs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"toolcapsule": "dist/cli.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"LICENSE",
|
|
14
14
|
"docs",
|
|
15
|
+
"skills",
|
|
15
16
|
"examples",
|
|
16
17
|
"llms.txt"
|
|
17
18
|
],
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: toolcapsule
|
|
3
|
+
description: 'Use when: discovering MCP servers, turning heavy MCP tools into lazy Agent Skills, installing ToolCapsule, generating MCP-specific Skills, calling MCP tools through local files, or using patch-and-retry recovery.'
|
|
4
|
+
argument-hint: 'MCP server, profile name, target agent, args file, or retry task'
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ToolCapsule
|
|
8
|
+
|
|
9
|
+
ToolCapsule is not a replacement for MCP. It is a workflow layer for heavy MCP tools: discover MCP servers, turn selected ones into lazy Agent Skills, keep large payloads in files, and retry failed calls by patching artifacts.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
This Skill is intended to be installed with the open `skills` CLI:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
For a specific agent or global install:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule --agent claude-code
|
|
23
|
+
npx skills add RainSunMe/toolcapsule --skill toolcapsule --global --agent claude-code
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
After this Skill is active, check whether the ToolCapsule CLI is available. If `toolcapsule` or `tcap` is missing, install it:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g toolcapsule
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Verify:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
tcap --version
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Core workflow for agents
|
|
39
|
+
|
|
40
|
+
1. Inventory MCP servers without exposing secrets:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
tcap mcp list
|
|
44
|
+
# If the user asks to inspect user-level configs too:
|
|
45
|
+
tcap mcp list --include-user
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
2. Pick heavy MCP servers that should not stay in the prompt every turn. Prefer document, SaaS, ticket, wiki, dashboard, or batch tools.
|
|
49
|
+
|
|
50
|
+
3. Enable ToolCapsule for a selected native MCP. Use `--as` when the original server name is generic:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
tcap mcp enable <native-server-name> --as <profile-name> --target claude
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This links to the original MCP config by default. Use `--copy` only when the user wants a stable snapshot independent of the source MCP config:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
tcap mcp enable <native-server-name> --as <profile-name> --copy --target claude
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
4. If there is no existing MCP config, create a ToolCapsule profile directly:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
tcap init <profile-name> --url <remote-mcp-url> --target claude
|
|
66
|
+
# or
|
|
67
|
+
tcap init <profile-name> --command <stdio-command> --arg <arg> --target claude
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
5. Use generated MCP-specific Skills. They should contain a tool summary table. Only run schema lookup when needed:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
tcap schema <profile-name> <tool>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
6. For calls, prefer local files:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
tcap call <profile-name> <tool> @args.json --save-run
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
7. If a call fails, patch artifacts and retry:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
tcap retry .toolcapsule/runs/<profile-name>/<run-id>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Optional native disable
|
|
89
|
+
|
|
90
|
+
Only disable native MCP configs when the user explicitly wants to stop the host from loading a heavy MCP directly.
|
|
91
|
+
|
|
92
|
+
Always dry-run first:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
tcap mcp disable <native-server-name> --native
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Apply only after user confirmation:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
tcap mcp disable <native-server-name> --native --yes
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Do not modify managed or enterprise MCP configs.
|
|
105
|
+
|
|
106
|
+
## Safety
|
|
107
|
+
|
|
108
|
+
- Never print private MCP URLs, tokens, API keys, user IDs, or document IDs unless the user explicitly asks.
|
|
109
|
+
- Prefer linked profiles over copied snapshots to avoid duplicating private endpoints.
|
|
110
|
+
- Use `--include-user` only when the user agrees to inspect user-level MCP configs.
|
|
111
|
+
- Keep `.toolcapsule/` local; it may contain run artifacts with sensitive request/response data.
|
|
112
|
+
- Use `TOOLCAPSULE_DEBUG=1` only for debugging.
|
|
113
|
+
|
|
114
|
+
## Target paths
|
|
115
|
+
|
|
116
|
+
- `--target claude` → `.claude/skills/<name>-mcp/`
|
|
117
|
+
- `--target copilot` → `.github/skills/<name>-mcp/`
|
|
118
|
+
- `--target opencode` → `.opencode/skills/<name>-mcp/`
|
|
119
|
+
- `--target agents` → `.agents/skills/<name>-mcp/`
|
|
120
|
+
- `--target all` → all of the above
|
|
121
|
+
|
|
122
|
+
MCP profiles are stored under `~/.toolcapsule/profiles/` by default. Workspace run artifacts are stored under `.toolcapsule/runs/<profile>/`.
|