webmcp-codegen 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +23 -0
  2. package/package.json +31 -0
  3. package/src/index.js +4 -0
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # webmcp-codegen
2
+
3
+ Generate safe, typed, human-reviewed [WebMCP](https://github.com/webmachinelearning/webmcp) tools from the API contracts you already have — OpenAPI specs, tRPC routers, Zod schemas — instead of hand-writing `registerTool()` calls for every action.
4
+
5
+ > Generate the tool. Review the tool. You own the tool.
6
+
7
+ **Status: under active development.** This package is published as a placeholder to claim the name; the CLI and adapters are being built in the open. Design document: [`notes/webmcp-codegen-design.md`](https://github.com/SouravInsights/groundstate/blob/main/notes/webmcp-codegen-design.md).
8
+
9
+ ## What it will do
10
+
11
+ ```bash
12
+ npx webmcp-codegen init # detect your API layer, scaffold config
13
+ npx webmcp-codegen generate # generate reviewed, safety-classified tool files
14
+ ```
15
+
16
+ - Real TypeScript files in your repo — readable, editable, no runtime magic
17
+ - Schemas derived from your existing types, never hand-typed twice
18
+ - Automatic risk classification (`readOnlyHint`, `destructiveHint`), PII field detection, and an audit pass built for CI
19
+ - Regeneration that never clobbers your hand-written logic
20
+
21
+ ## License
22
+
23
+ MIT
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "webmcp-codegen",
3
+ "version": "0.0.1",
4
+ "description": "Generate safe, typed, human-reviewed WebMCP tools from the API contracts you already have (OpenAPI, tRPC, Zod). Under active development.",
5
+ "type": "module",
6
+ "main": "./src/index.js",
7
+ "exports": {
8
+ ".": "./src/index.js"
9
+ },
10
+ "files": [
11
+ "src"
12
+ ],
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "keywords": [
17
+ "webmcp",
18
+ "codegen",
19
+ "ai-agents",
20
+ "openapi",
21
+ "trpc",
22
+ "zod",
23
+ "model-context-protocol"
24
+ ],
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/SouravInsights/groundstate.git",
29
+ "directory": "packages/codegen"
30
+ }
31
+ }
package/src/index.js ADDED
@@ -0,0 +1,4 @@
1
+ // webmcp-codegen — under active development.
2
+ // This placeholder claims the npm name; the codegen pipeline (sources, safety
3
+ // layer, emitters, CLI) lands here. See notes/webmcp-codegen-design.md.
4
+ export {};