SouravInsights/webmcp-stack

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

webmcp.souravinsights.com
agent
agent-ready
browser-agents
codegen
model-context
webmcp
webmcp-agent-skill
webmcp-package
webmcp-tools

README

webmcp-stack

webmcp-stack

The open-source developer stack for WebMCP.

Generate → Understand → Review → Test → Control → Observe → Secure

npm version MIT license

Docs | npm | Brand | About


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.

Today: codegen

@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.

The stack

PackageStatusWhat it does
@webmcp-stack/codegenAvailableGenerate safe, typed WebMCP tools from API contracts, plus a local tools dashboard
@webmcp-stack/auditPlannedPoint it at a URL, get a WebMCP audit report
@webmcp-stack/telemetryPlannedUnderstand 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.

Principles

  • The generated code belongs to you. Inspect it, modify it, delete the generator, keep the files. shadcn-style energy, not a runtime you rent.
  • Safety first. An agent-facing surface is a security surface. The tools help you decide what to expose, then enforce the decision.
  • Open-source first. Everything here is genuinely useful on its own and self-hostable. Any future cloud offering adds convenience, never a gate.

Repository layout

Pathnpm nameWhat it is
packages/codegen@webmcp-stack/codegenThe CLI and the generation pipeline: sources (OpenAPI today), generators, the safety audit, the dev dashboard.
examples/openapi-petstoreprivateExample app with tools generated from the Petstore OpenAPI spec.
site/privateLanding page and documentation (Next.js + Fumadocs).
docs/Design specs (specs/), decision notes (notes/), and what this project is.
brand/Logo and brand assets.

Development

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

License

MIT

Contributors

SouravInsights/webmcp-stack

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

webmcp.souravinsights.com
agent
agent-ready
browser-agents
codegen
model-context
webmcp
webmcp-agent-skill
webmcp-package
webmcp-tools

README

webmcp-stack

webmcp-stack

The open-source developer stack for WebMCP.

Generate → Understand → Review → Test → Control → Observe → Secure

npm version MIT license

Docs | npm | Brand | About


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.

Today: codegen

@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.

The stack

PackageStatusWhat it does
@webmcp-stack/codegenAvailableGenerate safe, typed WebMCP tools from API contracts, plus a local tools dashboard
@webmcp-stack/auditPlannedPoint it at a URL, get a WebMCP audit report
@webmcp-stack/telemetryPlannedUnderstand 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.

Principles

  • The generated code belongs to you. Inspect it, modify it, delete the generator, keep the files. shadcn-style energy, not a runtime you rent.
  • Safety first. An agent-facing surface is a security surface. The tools help you decide what to expose, then enforce the decision.
  • Open-source first. Everything here is genuinely useful on its own and self-hostable. Any future cloud offering adds convenience, never a gate.

Repository layout

Pathnpm nameWhat it is
packages/codegen@webmcp-stack/codegenThe CLI and the generation pipeline: sources (OpenAPI today), generators, the safety audit, the dev dashboard.
examples/openapi-petstoreprivateExample app with tools generated from the Petstore OpenAPI spec.
site/privateLanding page and documentation (Next.js + Fumadocs).
docs/Design specs (specs/), decision notes (notes/), and what this project is.
brand/Logo and brand assets.

Development

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

License

MIT

Contributors

Languages

TypeScript

91.9%

MDX

5.2%

JavaScript

1.3%

CSS

1.3%