@nodegx/mcp 0.2.6 → 0.2.7
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 +10 -7
- package/dist/backend/cli.js +5534 -2481
- package/dist/backend/folder/start.js +89 -1
- package/dist/backend/vm/provision-app.sh +41 -0
- package/dist/cloud-bundle.cjs +4174 -1633
- package/dist/kit-extract.cjs +4530 -2147
- package/dist/kit-extract.inputs.json +30 -1
- package/dist/node-catalog.json +3 -2
- package/dist/noodl-mcp.cjs +10371 -7141
- package/dist/package.json +1 -1
- package/dist/render-harness/data/node-catalog-enriched.json +998 -238
- package/dist/render-harness/data/node-catalog.json +3 -2
- package/dist/render-harness/drive-steps.js +196 -21
- package/dist/render-harness/measure-from-disk.js +174 -22
- package/dist/src/external/viewer/noodl.viewer.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ and the validator's feedback — never the entire project.*
|
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
14
|
-
The simplest start is `npm create nodegx my-apps`. It writes
|
|
15
|
-
|
|
14
|
+
The simplest start is `npm create nodegx my-apps`. It writes `my-apps/.mcp.json`, which tells Claude Code to start this
|
|
15
|
+
server when you run `claude` in the folder, beside short `CLAUDE.md` / `AGENTS.md` notes and the NodeGX skills.
|
|
16
16
|
|
|
17
17
|
Any other MCP client can start the server itself over stdio:
|
|
18
18
|
|
|
@@ -78,13 +78,15 @@ Drop `--allow-writes` for a read-only server.
|
|
|
78
78
|
claude mcp add --scope user nodegx-bootstrap -- node <path-to>/noodl-mcp.cjs --allow-writes
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Omit the project directory and the server starts anyway, advertising
|
|
81
|
+
Omit the project directory and the server starts anyway, advertising seven tools:
|
|
82
82
|
|
|
83
83
|
| Tool | |
|
|
84
84
|
|---|---|
|
|
85
85
|
| `list_projects` | The NodeGX projects this machine has opened, read from the launcher's own recent-projects list and never written to. **Call this first** when the user talks about their app as something that already exists |
|
|
86
|
+
| `open_project` | Bind this server to a project `list_projects` reported; its tools arrive in the same conversation |
|
|
86
87
|
| `create_project` | Scope an app in conversation, then write the project, its `docs/` and a build plan that is returned but not run |
|
|
87
88
|
| `list_examples`, `get_example` | What a NodeGX graph actually looks like, without needing a project to read |
|
|
89
|
+
| `find_tools`, `call_tool` | Find a tool that is not advertised yet, or call one by name (for a client that does not refresh its tool list) |
|
|
88
90
|
|
|
89
91
|
Everything else — reading components, authoring, validation, rendering, the backend — is **absent
|
|
90
92
|
from `tools/list`**, not present-and-erroring, because a model calls what it is shown.
|
|
@@ -93,9 +95,9 @@ from `tools/list`**, not present-and-erroring, because a model calls what it is
|
|
|
93
95
|
`create_project` is a write, and with no project there is nothing to read, so a read-only bootstrap
|
|
94
96
|
server would start, appear connected, and be unable to do the one thing it exists for.
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
**Creating or opening a project binds this server to it.** Its tools arrive in the same conversation
|
|
99
|
+
(`notifications/tools/list_changed`), with no second registration and no restart. A server binds once: a second
|
|
100
|
+
`create_project` or `open_project` leaves it on the first project, and says so.
|
|
99
101
|
|
|
100
102
|
### Where the bundle is
|
|
101
103
|
|
|
@@ -299,7 +301,8 @@ npm run build --workspace @nodegx/mcp # esbuild → dist/noodl-mcp.cjs
|
|
|
299
301
|
|
|
300
302
|
- File-based only; no live sync with a running editor (a bridge is future work —
|
|
301
303
|
the editor holds its own in-memory state and can overwrite MCP writes on save).
|
|
302
|
-
- No
|
|
304
|
+
- No asset upload or model files. Project settings, tokens and element styles are written by `set_project_settings`,
|
|
305
|
+
`set_project_tokens` and `set_element_style`; a page is registered in the router when it is written.
|
|
303
306
|
- Read-side supports v2 directories only; migrate legacy projects with the editor first.
|
|
304
307
|
- `get_node_type` with several types can exceed an MCP host's tool-result cap
|
|
305
308
|
(~126 KB for 7 types in the SUB-010 demo, and the host's "overflow saved to a
|