Back to feed
Dev.to
Dev.to
6/28/2026
webmcp-gen: Generate Chrome WebMCP Tool Definitions from TypeScript

webmcp-gen: Generate Chrome WebMCP Tool Definitions from TypeScript

Short summary

webmcp-gen is a new open-source CLI that generates WebMCP tool definitions directly from TypeScript interfaces at build time, eliminating manual schema rewrites. It embeds Google's security guidance into generated handler stubs, including user-interaction requests for mutating operations and input-sanitization warnings. The tool ships with CRUD, search, and data-transformation templates; v1.2.0 passed a 4-agent security audit with 10 findings fixed before launch.

  • Generates WebMCP definitions from TypeScript interfaces instead of requiring manual Zod schemas
  • Bakes security best practices into all generated handler stubs per Google guidance
  • Includes CLI templates, underwent 4-agent security audit, MIT licensed

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more