webmcp-add-tool
Installation
SKILL.md
Add a WebMCP Tool
Overview
Each tool is a React component that calls useMcpTool. It registers on mount, unregisters on unmount. Tools can be headless (return null) or render UI showing execution state.
Workflow
- Determine the tool's name, description, input schema, and what the handler does
- Choose headless vs UI tool
- Scaffold using the appropriate template below
- Set annotations based on tool behavior
- Wire the component into the
<WebMCPProvider>tree
Template: Headless tool
For tools that do work without rendering anything visible: