@aotter/mantle 0.0.11-alpha.51 → 0.0.11-alpha.53
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/docs/release-process.md +1 -1
- package/package.json +6 -6
- package/skills/develop/SKILL.md +26 -0
- package/skills/extend/SKILL.md +2 -3
package/docs/release-process.md
CHANGED
|
@@ -481,7 +481,7 @@ re-attach to the new (empty) worker, etc.
|
|
|
481
481
|
|
|
482
482
|
```bash
|
|
483
483
|
sleep 60 # Let the deploy + DNS propagate
|
|
484
|
-
for path in / /zh-TW /skill/
|
|
484
|
+
for path in / /zh-TW /skill/after-launch /admin; do
|
|
485
485
|
code=$(curl -sIo /dev/null -w "%{http_code}" "https://<your-site>$path")
|
|
486
486
|
echo " $path → $code"
|
|
487
487
|
done
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aotter/mantle",
|
|
3
|
-
"version": "0.0.11-alpha.
|
|
3
|
+
"version": "0.0.11-alpha.53",
|
|
4
4
|
"description": "Umbrella entry for @aotter/mantle. Adopters install this one package and import from subpaths: /spec, /runtime, /cloudflare, /admin-ui. Sub-packages remain individually installable on npm for tooling / alt-adapter authors. The Netlify adapter ships as a private workspace stub in v0.1 — its subpath will be added when the impl lands in v0.2.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://mantle.tools/",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"README.md"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@aotter/mantle-admin-ui": "0.0.11-alpha.
|
|
51
|
-
"@aotter/mantle-
|
|
52
|
-
"@aotter/mantle-
|
|
53
|
-
"@aotter/mantle-
|
|
50
|
+
"@aotter/mantle-admin-ui": "0.0.11-alpha.53",
|
|
51
|
+
"@aotter/mantle-cloudflare": "0.0.11-alpha.53",
|
|
52
|
+
"@aotter/mantle-runtime": "0.0.11-alpha.53",
|
|
53
|
+
"@aotter/mantle-spec": "0.0.11-alpha.53"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@cloudflare/workers-oauth-provider": "^0.8.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@cloudflare/workers-oauth-provider": "^0.8.0",
|
|
64
|
-
"@types/node": "^
|
|
64
|
+
"@types/node": "^26",
|
|
65
65
|
"aws4fetch": "^1.0.20",
|
|
66
66
|
"better-auth": "^1.6.23",
|
|
67
67
|
"hono": "^4.12.27",
|
package/skills/develop/SKILL.md
CHANGED
|
@@ -88,6 +88,32 @@ pnpm check
|
|
|
88
88
|
|
|
89
89
|
Use `pnpm dev` for local preview when the project provides it.
|
|
90
90
|
|
|
91
|
+
## Connect a Local MCP Client
|
|
92
|
+
|
|
93
|
+
Start the project with `pnpm dev`, then use the exact local origin it prints.
|
|
94
|
+
Generated Cloudflare projects normally expose:
|
|
95
|
+
|
|
96
|
+
- `http://localhost:8787/mcp` for public tools;
|
|
97
|
+
- `http://localhost:8787/mcp/staff` for authenticated authoring tools.
|
|
98
|
+
|
|
99
|
+
Prefer the client's native remote HTTP + OAuth support. Use a standard
|
|
100
|
+
HTTP-to-stdio bridge such as `npx -y mcp-remote <url>` only when the client
|
|
101
|
+
accepts stdio MCP servers but cannot connect to remote HTTP directly. Mantle
|
|
102
|
+
does not own a separate local proxy or an auth-bypass mode.
|
|
103
|
+
|
|
104
|
+
Before changing client config, confirm the Worker is reachable:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
curl -i http://localhost:8787/mcp
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
An OAuth-protected endpoint should respond with `401` and a
|
|
111
|
+
`WWW-Authenticate` resource-metadata challenge before sign-in. After
|
|
112
|
+
connecting, inspect `tools/list`; make one read-only `query_view_*` call when
|
|
113
|
+
available before invoking any mutation. Use project-scoped client config when
|
|
114
|
+
the client offers it, and never commit OAuth tokens or the bridge's token
|
|
115
|
+
cache.
|
|
116
|
+
|
|
91
117
|
## Rules
|
|
92
118
|
|
|
93
119
|
- Prefer manifest YAML for content model changes.
|
package/skills/extend/SKILL.md
CHANGED
|
@@ -16,7 +16,7 @@ The 4-atom manifest model:
|
|
|
16
16
|
- **Procedure** — the typed callable
|
|
17
17
|
- **Trigger** — the event binding (HTTP / lifecycle / cron)
|
|
18
18
|
|
|
19
|
-
Closed enums (`x-mantle-bind` values, `ctx.*` predicates, `Trigger.source.kind`, `Procedure.handler.kind`) are checked by `pnpm validate` — diagnostics return `code` + `suggestion`. If grammar is unclear, run `pnpm introspect` against the current project to see what the manifest compiler accepts, or read the full grammar reference at
|
|
19
|
+
Closed enums (`x-mantle-bind` values, `ctx.*` predicates, `Trigger.source.kind`, `Procedure.handler.kind`) are checked by `pnpm validate` — diagnostics return `code` + `suggestion`. If grammar is unclear, run `pnpm introspect` against the current project to see what the manifest compiler accepts, or read the shipped full grammar reference at `node_modules/@aotter/mantle/docs/design-atoms.md`.
|
|
20
20
|
|
|
21
21
|
## Match the user's request to atoms
|
|
22
22
|
|
|
@@ -151,8 +151,7 @@ If you added a new MCP-relevant Schema, the per-collection authoring tools (`cre
|
|
|
151
151
|
## API and MCP authorization
|
|
152
152
|
|
|
153
153
|
Read the shipped canonical guide before adding an authenticated public API:
|
|
154
|
-
|
|
155
|
-
<https://raw.githubusercontent.com/aotter/mantle/develop/docs/api-mcp-authorization.md>
|
|
154
|
+
`node_modules/@aotter/mantle/docs/api-mcp-authorization.md`.
|
|
156
155
|
|
|
157
156
|
Use only the closed grammar:
|
|
158
157
|
|