add-webmcp
Add WebMCP
Turn capabilities already implemented by a web app into maintained, first-party WebMCP tools. Modify the target codebase and its tests; do not introduce a hosted proxy or third-party runtime.
Compatibility: the bundled Stagehand validator requires Node.js 22.18 or newer. Validation needs Chrome/Chromium locally or BROWSERBASE_API_KEY for a publicly reachable preview.
Be verbose as you work: report what each step found as you go, not only in the final report.
Use webmcp-gen instead when the requested output is a standalone init script derived from a live URL. This skill starts from source code and integrates tools into the application.
1. Establish the application boundary
Read the target repository's instructions, package manifests, framework configuration, and current git status. Preserve unrelated changes.
Set ADD_WEBMCP_SKILL_DIR to the directory containing this file and run the bounded scanner:
node "$ADD_WEBMCP_SKILL_DIR/scripts/scan-codebase.mjs" "$TARGET_REPO"