Generate safe, typed, human-reviewed WebMCP tools from the API contracts you already have, instead of hand-writing registerTool() calls for every action.
6
stars
121
commits
TypeScript
primary language
Sep 7, 2026
updated
The open-source developer stack for WebMCP.
Generate → Understand → Review → Test → Control → Observe → Secure
WebMCP lets websites expose typed tools that AI agents can call directly in the browser. webmcp-stack is the tooling layer around it: build, secure, and eventually operate WebMCP surfaces on real applications, without losing visibility or control over what agents can actually do.
@webmcp-stack/codegen takes the API contract you already have (OpenAPI today, more sources coming) and generates WebMCP tools into your own codebase. No install, no config:
npx @webmcp-stack/codegen generate
This is not a dumb API → WebMCP converter. Giving agents access to application actions is a new security surface, so safety is part of generation itself: every endpoint is classified read/write/destructive, webhooks are skipped, auth and admin endpoints are flagged, and higher-risk tools are generated disabled. You decide which write capabilities agents get, not the generator.
The generated code belongs to you. Real files in your repo, no runtime dependency on this package, regeneration that never clobbers your edits. And npx @webmcp-stack/codegen dev opens a local dashboard to browse, edit, toggle, and test your tools, so you never have to stare at a pile of unfamiliar generated files.
| Package | Status | What it does |
|---|---|---|
@webmcp-stack/codegen | Available | Generate safe, typed WebMCP tools from API contracts, plus a local tools dashboard |
@webmcp-stack/audit | Planned | Point it at a URL, get a WebMCP audit report |
@webmcp-stack/telemetry | Planned | Understand how agents actually use your tools |
The goal is a comprehensive stack, not a pile of unrelated utilities: each tool covers one stage of the lifecycle, and they compound.
| Path | npm name | What it is |
|---|---|---|
packages/codegen | @webmcp-stack/codegen | The CLI and the generation pipeline: sources (OpenAPI today), generators, the safety audit, the dev dashboard. |
examples/openapi-petstore | private | Example app with tools generated from the Petstore OpenAPI spec. |
site/ | private | Landing page and documentation (Next.js + Fumadocs). |
docs/ | — | Design specs (specs/), decision notes (notes/), and what this project is. |
brand/ | — | Logo and brand assets. |
pnpm install
pnpm build # turbo run build
pnpm test # turbo run test
pnpm typecheck
pnpm lint:fix
pnpm --filter openapi-petstore dev # example app
pnpm --filter site dev # landing page & docs on :3001
MIT
113 commits
8 commits
TypeScript
91.9%
MDX
5.2%
JavaScript
1.3%
CSS
1.3%
Generate safe, typed, human-reviewed WebMCP tools from the API contracts you already have, instead of hand-writing registerTool() calls for every action.
6
stars
121
commits
TypeScript
primary language
Sep 7, 2026
updated
The open-source developer stack for WebMCP.
Generate → Understand → Review → Test → Control → Observe → Secure
WebMCP lets websites expose typed tools that AI agents can call directly in the browser. webmcp-stack is the tooling layer around it: build, secure, and eventually operate WebMCP surfaces on real applications, without losing visibility or control over what agents can actually do.
@webmcp-stack/codegen takes the API contract you already have (OpenAPI today, more sources coming) and generates WebMCP tools into your own codebase. No install, no config:
npx @webmcp-stack/codegen generate
This is not a dumb API → WebMCP converter. Giving agents access to application actions is a new security surface, so safety is part of generation itself: every endpoint is classified read/write/destructive, webhooks are skipped, auth and admin endpoints are flagged, and higher-risk tools are generated disabled. You decide which write capabilities agents get, not the generator.
The generated code belongs to you. Real files in your repo, no runtime dependency on this package, regeneration that never clobbers your edits. And npx @webmcp-stack/codegen dev opens a local dashboard to browse, edit, toggle, and test your tools, so you never have to stare at a pile of unfamiliar generated files.
| Package | Status | What it does |
|---|---|---|
@webmcp-stack/codegen | Available | Generate safe, typed WebMCP tools from API contracts, plus a local tools dashboard |
@webmcp-stack/audit | Planned | Point it at a URL, get a WebMCP audit report |
@webmcp-stack/telemetry | Planned | Understand how agents actually use your tools |
The goal is a comprehensive stack, not a pile of unrelated utilities: each tool covers one stage of the lifecycle, and they compound.
| Path | npm name | What it is |
|---|---|---|
packages/codegen | @webmcp-stack/codegen | The CLI and the generation pipeline: sources (OpenAPI today), generators, the safety audit, the dev dashboard. |
examples/openapi-petstore | private | Example app with tools generated from the Petstore OpenAPI spec. |
site/ | private | Landing page and documentation (Next.js + Fumadocs). |
docs/ | — | Design specs (specs/), decision notes (notes/), and what this project is. |
brand/ | — | Logo and brand assets. |
pnpm install
pnpm build # turbo run build
pnpm test # turbo run test
pnpm typecheck
pnpm lint:fix
pnpm --filter openapi-petstore dev # example app
pnpm --filter site dev # landing page & docs on :3001
MIT
113 commits
8 commits
TypeScript
91.9%
MDX
5.2%
JavaScript
1.3%
CSS
1.3%