npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

toolcapsule

v1.0.0

Published

AI-first workflow manager for heavy MCP tools with lazy Agent Skills and patchable runs.

Readme

ToolCapsule

npm version CI License: MIT GitHub Repo stars

AI-first workflow manager for heavy MCP tools.

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.

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.

It is not a replacement for MCP or Skills. It is the missing workflow layer between them:

Heavy MCP server
→ AI-first ToolCapsule workflow layer
→ compact Agent Skill
→ local args/content files
→ auditable tool runs
→ patch-and-retry recovery

Why ToolCapsule

MCP is becoming the standard way to connect agents to tools. Skills are becoming the standard way to package agent workflows.

But large MCP servers can be expensive in agent contexts:

  • long tool descriptions and schemas may be visible every turn;
  • many turns do not need a real tool call;
  • document/workflow tools often carry large Markdown or JSON payloads;
  • failed tool calls force the model to regenerate the whole call.

ToolCapsule keeps the MCP server as the source of truth, but exposes it through a lightweight Skill and local artifacts. Transport logs are quiet by default so remote MCP URLs are not printed during normal use. Set TOOLCAPSULE_DEBUG=1 only when debugging.

AI-first MCP workflow

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.

This is the practical version of a lazy MCP workflow:

  • MCP remains the protocol and source of truth;
  • Skills become the agent-facing workflow;
  • large payloads move into local files;
  • failed calls become patchable artifacts instead of regenerated prompts.

Import your existing MCP setup

Already configured MCP in Claude Code, GitHub Copilot / VS Code, OpenCode, Gemini CLI, or Cursor? Import it instead of retyping URLs and commands:

tcap mcp list --include-user
tcap mcp enable docs --as feishu --target claude

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:

~/.toolcapsule/profiles/<server>.json
.claude/skills/<server>-mcp/SKILL.md

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.

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.

What is a ToolCapsule?

A ToolCapsule is a file-first tool call package:

capsule = MCP tool + args.json + payload files + run metadata + retry history

Instead of making the model hold everything in the prompt, ToolCapsule stores heavy payloads and run state on disk.

Quick start

AI-first onboarding: install the ToolCapsule Skill into your coding agent, then ask the agent to inventory MCPs and capsule the heavy ones.

npx skills add RainSunMe/toolcapsule --skill toolcapsule

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.

For a specific agent or global install:

npx skills add RainSunMe/toolcapsule --skill toolcapsule --agent claude-code
npx skills add RainSunMe/toolcapsule --skill toolcapsule --global --agent claude-code

Then tell your agent:

Use the ToolCapsule Skill. Scan my MCP servers, pick the heavy ones, and turn them into lazy ToolCapsule Skills.

Manual CLI workflow:

npm i -g toolcapsule

toolcapsule mcp list --include-user
toolcapsule mcp enable docs --as feishu --target claude
toolcapsule tools feishu --brief
toolcapsule schema feishu create-doc
toolcapsule call feishu create-doc @args.json --save-run
toolcapsule retry .toolcapsule/runs/feishu/2026-06-06T10-00-00-000Z

Short alias:

tcap tools feishu --brief
tcap call feishu create-doc @args.json --save-run

What it generates

.claude/skills/feishu-mcp/
  SKILL.md                  # lightweight Agent Skill entrypoint
  scripts/README.md

~/.toolcapsule/
  profiles/feishu.json      # user-level MCP profile, reusable across projects

.toolcapsule/
  runs/feishu/              # workspace-local auditable tool call records

This lets your agent discover the Skill instead of carrying the full MCP schema in every turn.

Native MCP vs ToolCapsule

| Concern | Native MCP | ToolCapsule | |---|---|---| | Tool schemas | Often visible every turn | Loaded on demand | | Agent workflow | Direct tool call | Skill-guided workflow | | Large payloads | Generated inside tool calls | Stored as files | | Failed calls | Regenerate full tool call | Patch local file and retry | | Auditability | Host dependent | Run directory with request/response/error | | Best for | Small, high-frequency tools | Heavy SaaS/document/workflow MCPs |

Patch-and-retry

When a large MCP call fails, do not ask the model to rewrite the whole tool call.

# 1. Call with a local args file
toolcapsule call feishu create-doc @args.json --save-run

# 2. Patch args.json or content.md

# 3. Retry deterministically
toolcapsule retry .toolcapsule/runs/feishu/2026-06-06T10-00-00-000Z

This is especially useful for MCP tools that create documents, tickets, pages, dashboards, reports, or batch operations.

Benchmark result

In a Feishu MCP benchmark:

  • 88.4% fewer input tokens;
  • 87.6% fewer total tokens;
  • planning success rate stayed at 100%.

Results vary by MCP server, model, and host.

CLI

toolcapsule init <name> --url <remote-mcp-url> --target claude
toolcapsule init <name> --command <stdio-command> --arg <arg> --target claude
npx skills add RainSunMe/toolcapsule --skill toolcapsule
toolcapsule mcp list --include-user
toolcapsule mcp enable <server> --as <profile> --target claude
toolcapsule mcp disable <profile>
toolcapsule mcp disable <server> --native
toolcapsule import --dry-run
toolcapsule import --name <server> --as <profile> --target claude
toolcapsule import --all --target all
toolcapsule tools <profile> --brief
toolcapsule describe <profile> <tool> --brief
toolcapsule schema <profile> <tool>
toolcapsule call <profile> <tool> @args.json --save-run
toolcapsule retry <run-dir>
toolcapsule summarize <profile>
toolcapsule benchmark <profile> --markdown --out toolcapsule-report.md

tcap is an equivalent short alias for toolcapsule.

Who is it for?

ToolCapsule is useful when your MCP server is:

  • schema-heavy;
  • document/workflow oriented;
  • occasionally used rather than called every turn;
  • carrying large payloads;
  • hard to retry after failures.

Examples: Feishu/Lark, Notion, Jira, Linear, Confluence, Google Docs, GitHub management tools, internal SaaS MCPs.

Project status

Early alpha. APIs may change before v1.0.

Documentation

License

MIT