george43g/mcp-cli-starter-template/mcp-tool-author
Claude Code and agent skill by george43g/mcp-cli-starter-template
- community
Checking that the SKILL.md file is still in the repository.
Authoring checklist for adding new MCP tools to a example tool. Use whenever the user asks to add or modify a tool.
Install
npx vskill@latest install george43g/mcp-cli-starter-template/mcp-tool-authorSKILL.md
The same SKILL.md was published earlier as george43g/mcp-cli-starter-template/mcp-tool-author.
Adding an MCP tool — canonical checklist
Use this skill whenever the user asks to add, modify, or refactor an MCP tool in any repo cloned from mcp-cli-starter-template. Following this checklist keeps every tool in the codebase uniform and avoids subtle robustness bugs (missing timeouts, ignored abort signals, unsanitized output).
1. Define the schemas
Two Zod schemas — input and output — .describe() every field:
If the schema mirrors a Rust struct, declare it in @george43g/shared-types and register the entry in MIRRORED_SCHEMAS. Otherwise keep it inline in src/tools/<name>.ts.
2. Write the ToolDefinition
3. Honor the invariants
Encoded by @george43g/mcp-kit's buildDispatcher, but you must follow them in your handler:
- Timeout — the wrapper sets one for you; just don't make the work unbounded inside.
- Activity beacon — handled by the dispatcher.
- Perf span — handled by the dispatcher; if you want sub-spans inside, use
perf("sub-span"). - Actionable errors — throw
new Error("clear message..."). The dispatcher wraps with the tool name and hint. - Abort signal — check
signal?.abortedbetween iterations of any long loop. Return early if true. - No stdout writes — log via
@george43g/robustness/loggeronly. Neverconsole.logafter the stdio transport opens. - Sanitize external content — pass user-content surfaces through
sanitize(). Wrap withwrapUntrusted()when the content came from outside your control (web scrape, email body, etc).
4. Register the tool
Add to apps/example/src/tools/registry.ts:
5. Add an integration test
apps/example/tests/integration.test.ts:
6. Stress harness — only if lifecycle-affecting
If the tool can block the event loop, spawn subprocesses, hold network connections, or otherwise affect process health, add a stress case to apps/example/scripts/stress-mcp.ts. Run pnpm stress to verify.
7. Documentation
- Update the tool table in
apps/example/README.mdif there is one. - Update
AGENTS.mdif the tool needs special handling notes (auth, permissions, etc). - VHS tape: only update if the tool changes the user-facing CLI subcommand list.
8. Verify
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexample/.agents/skills/mcp-tool-author/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/george43g/mcp-cli-starter-template/mcp-tool-author)