flowpad-mcp 0.1.1 → 0.2.0
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.
- package/README.md +68 -87
- package/dist/local.js +58 -0
- package/package.json +15 -17
- package/dist/index.js +0 -76
package/package.json
CHANGED
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowpad-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Local validation helper for Flowpad's canvas engine — runs flowpad-core on your machine (validate_design, preview_layout, describe_engine) so an AI host can self-check a design before writing it through the Flowpad connector. Optional enhancer for the hosted URL connector.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"private": false,
|
|
7
6
|
"publishConfig": {
|
|
8
7
|
"access": "public"
|
|
9
8
|
},
|
|
10
9
|
"type": "module",
|
|
11
|
-
"bin":
|
|
12
|
-
"flowpad-mcp": "dist/index.js"
|
|
13
|
-
},
|
|
10
|
+
"bin": "dist/local.js",
|
|
14
11
|
"files": [
|
|
15
|
-
"dist/
|
|
12
|
+
"dist/local.js"
|
|
16
13
|
],
|
|
17
14
|
"scripts": {
|
|
18
15
|
"build": "tsc",
|
|
19
|
-
"build:bundle": "esbuild src/index.ts --bundle --minify --platform=node --format=esm --target=node18 --outfile=dist/
|
|
16
|
+
"build:bundle": "esbuild src/local-index.ts --bundle --minify --platform=node --format=esm --target=node18 --outfile=dist/local.js --banner:js='import { createRequire } from \"module\"; const require = createRequire(import.meta.url);'",
|
|
20
17
|
"prepare": "husky",
|
|
21
|
-
"prepack": "yarn build:bundle",
|
|
22
|
-
"dev": "tsx src/index.ts",
|
|
18
|
+
"prepack": "yarn check:version && yarn build:bundle",
|
|
19
|
+
"dev": "tsx src/local-index.ts",
|
|
20
|
+
"dev:http": "tsx src/index.ts",
|
|
23
21
|
"start": "node dist/index.js",
|
|
24
22
|
"typecheck": "tsc --noEmit",
|
|
25
23
|
"lint": "eslint src/ --fix",
|
|
26
24
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
27
25
|
"check-unused-exports": "ts-unused-exports tsconfig.json --allowUnusedTypes",
|
|
28
26
|
"check:parity": "tsx scripts/check-tool-parity.ts",
|
|
29
|
-
"
|
|
27
|
+
"check:version": "tsx scripts/check-version-sync.ts",
|
|
28
|
+
"validate": "tsc --noEmit && eslint src/ && prettier --check \"src/**/*.ts\" && tsx scripts/check-tool-parity.ts && tsx scripts/check-version-sync.ts",
|
|
30
29
|
"validate:emit": "tsc --noEmit && eslint src/ --fix && prettier --write \"src/**/*.ts\"",
|
|
31
|
-
"inspect": "npx @modelcontextprotocol/inspector tsx src/index.ts"
|
|
30
|
+
"inspect": "npx @modelcontextprotocol/inspector tsx src/local-index.ts"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
|
34
33
|
"node": ">=18"
|
|
35
34
|
},
|
|
36
|
-
"comment": "No runtime dependencies on purpose: esbuild (prepack) inlines everything into dist/
|
|
37
|
-
"dependencies": {},
|
|
35
|
+
"comment": "No runtime dependencies on purpose: esbuild (prepack) inlines everything into the published bin dist/local.js (the npx LOCAL validator), so it installs nothing and never tries to fetch the PRIVATE flowpad-core. All deps below are BUILD-time (devDependencies). The hosted HTTP server (B, src/index.ts) is NOT published; its deploy uses `yarn build` (tsc) + a normal install, which gets devDeps too.",
|
|
38
36
|
"resolutions": {
|
|
39
|
-
"//": "Force a single zod across the tree. The MCP SDK allows zod ^3.25 || ^4.0; without this, yarn installs a separate zod@4 under the SDK, so app zod@3 schemas mismatch the SDK's .tool() types (TS2589 / heap OOM in tsc). npm deduped to one zod; this makes yarn do the same.",
|
|
40
37
|
"zod": "3.25.76"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
@@ -46,7 +43,7 @@
|
|
|
46
43
|
"dotenv": "^17.4.2",
|
|
47
44
|
"esbuild": "^0.24.0",
|
|
48
45
|
"eslint": "^10.5.0",
|
|
49
|
-
"flowpad-core": "git+https://github.com/demirsefa/flowpad-core.git#semver
|
|
46
|
+
"flowpad-core": "git+https://github.com/demirsefa/flowpad-core.git#semver:0.1.4",
|
|
50
47
|
"husky": "^9.1.7",
|
|
51
48
|
"lint-staged": "^17.0.7",
|
|
52
49
|
"prettier": "^3.8.4",
|
|
@@ -62,5 +59,6 @@
|
|
|
62
59
|
"prettier --write",
|
|
63
60
|
"bash -c \"tsc --noEmit\""
|
|
64
61
|
]
|
|
65
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"packageManager": "yarn@4.17.0"
|
|
66
64
|
}
|