@a2uicatalog/mcp 0.2.0 → 0.2.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.
- package/cli.mjs +14 -5
- package/package.json +2 -2
package/cli.mjs
CHANGED
|
@@ -5,10 +5,16 @@
|
|
|
5
5
|
// no MCP client, no connector, no deployment, no account. Compose a payload
|
|
6
6
|
// against spec.json, render it, get HTML.
|
|
7
7
|
//
|
|
8
|
-
// npx @a2uicatalog/mcp render page.json > page.html
|
|
9
|
-
// npx @a2uicatalog/mcp validate page.json
|
|
10
|
-
// npx @a2uicatalog/mcp atoms --surface email
|
|
11
|
-
// npx @a2uicatalog/mcp surfaces quiz_set
|
|
8
|
+
// npx -p @a2uicatalog/mcp a2ui render page.json > page.html
|
|
9
|
+
// npx -p @a2uicatalog/mcp a2ui validate page.json
|
|
10
|
+
// npx -p @a2uicatalog/mcp a2ui atoms --surface email
|
|
11
|
+
// npx -p @a2uicatalog/mcp a2ui surfaces quiz_set
|
|
12
|
+
//
|
|
13
|
+
// The -p is not optional. npx resolves a bare `npx <pkg>` to the bin whose
|
|
14
|
+
// name MATCHES the package — here that would be `mcp`, and this package
|
|
15
|
+
// publishes `a2uicatalog-mcp` and `a2ui` instead, so npx cannot choose and
|
|
16
|
+
// errors with "could not determine executable to run". Shipped 0.2.0 with the
|
|
17
|
+
// bare form documented and discovered on the first real invocation.
|
|
12
18
|
//
|
|
13
19
|
// ZERO DEPENDENCIES. Node 18+ has fetch built in, and the vocabulary ships in
|
|
14
20
|
// data/ so validate and atoms work with no network at all. Only `render`
|
|
@@ -144,7 +150,10 @@ Surfaces for --surface: web · mcp-apps · google-apps-script-web · google-meet
|
|
|
144
150
|
validate and atoms are fully offline — the vocabulary ships with the package.
|
|
145
151
|
Only render makes a network call. No account, no API key, no MCP client.
|
|
146
152
|
|
|
147
|
-
npx @a2uicatalog/mcp render page.json > page.html
|
|
153
|
+
npx -p @a2uicatalog/mcp a2ui render page.json > page.html
|
|
154
|
+
|
|
155
|
+
(-p is required: npx cannot pick between this package's two bins on its own.)
|
|
156
|
+
Installed globally, it is just: a2ui render page.json
|
|
148
157
|
`);
|
|
149
158
|
},
|
|
150
159
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2uicatalog/mcp",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "CLI + local MCP server for the A2UI Atomic Catalog. Render an A2UI payload to HTML with no account and no MCP client (`npx @a2uicatalog/mcp render page.json`), browse and validate the 474-atom vocabulary offline, or run the local MCP server for Claude/Cursor. A hallucinated atom is a parse error, not a broken screen.",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "CLI + local MCP server for the A2UI Atomic Catalog. Render an A2UI payload to HTML with no account and no MCP client (`npx -p @a2uicatalog/mcp a2ui render page.json`), browse and validate the 474-atom vocabulary offline, or run the local MCP server for Claude/Cursor. A hallucinated atom is a parse error, not a broken screen.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"a2uicatalog-mcp": "server.mjs",
|