create-fungi-app 0.0.1 → 0.0.2

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/dist/app-cli.js CHANGED
@@ -66,7 +66,7 @@ async function dev(port) {
66
66
  // standalone Worker retains Oyster's production CSP.
67
67
  const developmentCsp = `default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'unsafe-inline'; frame-src 'self'; connect-src 'self' ws://127.0.0.1:${String(port)}; img-src 'self' data:; base-uri 'none'; form-action 'none'; frame-ancestors 'none'`;
68
68
  const worker = (release) => `import worker from "../../oyster/worker.ts";
69
- export { OysterBinding, OysterRegistry, OysterInstance, OysterInstallationExecutor } from "../../oyster/worker.ts";
69
+ export { OysterBinding, OysterRegistry, OysterInstance, OysterMcp, OysterInstallationExecutor } from "../../oyster/worker.ts";
70
70
  export default { async fetch(request, env, context) {
71
71
  const headers = new Headers(request.headers);
72
72
  headers.set("Authorization", "Bearer " + env.OYSTER_OWNER_KEY);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fungi-app",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Create a Caps and Agar App that runs on a standalone Oyster",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,10 +25,10 @@
25
25
  "LICENSE"
26
26
  ],
27
27
  "dependencies": {
28
- "@fungi.computer/lantern": "0.4.1",
28
+ "@fungi.computer/lantern": "0.4.2",
29
29
  "zod": "4.4.3",
30
- "@fungi.computer/oyster": "0.14.1",
31
- "@fungi.computer/puffball": "0.5.3",
30
+ "@fungi.computer/oyster": "0.15.0",
31
+ "@fungi.computer/puffball": "0.5.4",
32
32
  "effect": "4.0.2",
33
33
  "validate-npm-package-name": "7.0.2",
34
34
  "@fungi.computer/cairn": "0.1.0"
@@ -25,6 +25,8 @@ Development runs a standalone Oyster on loopback with Wrangler. Save an edit in
25
25
  requests as its owner; use the ordinary key-authenticated `oyster/worker.ts` for
26
26
  a deployed host, with `OYSTER_OWNER_KEY` as a secret and `OYSTER_ORIGIN` set to
27
27
  its public origin. Each App Instance records that origin when it is installed.
28
+ The host serves `/mcp` (send `Authorization: Bearer $OYSTER_OWNER_KEY`) only for
29
+ requests whose host matches `OYSTER_ORIGIN`; any other host gets a plain 404.
28
30
 
29
31
  The host Worker, Durable Objects, Worker Loader and Release assets run locally;
30
32
  state stays under `.wrangler/`. No Computer or container is configured. Computer
@@ -3,6 +3,7 @@ import { createOysterWorker } from "@fungi.computer/oyster/workers";
3
3
  export {
4
4
  OysterBinding,
5
5
  OysterInstance,
6
+ OysterMcp,
6
7
  OysterRegistry,
7
8
  OysterInstallationExecutor,
8
9
  } from "@fungi.computer/oyster/workers";
@@ -17,6 +17,10 @@
17
17
  ],
18
18
  "durable_objects": {
19
19
  "bindings": [
20
+ {
21
+ "name": "MCP",
22
+ "class_name": "OysterMcp"
23
+ },
20
24
  {
21
25
  "name": "REGISTRY",
22
26
  "class_name": "OysterRegistry"
@@ -30,7 +34,7 @@
30
34
  "migrations": [
31
35
  {
32
36
  "tag": "v1",
33
- "new_sqlite_classes": ["OysterRegistry", "OysterInstance"]
37
+ "new_sqlite_classes": ["OysterRegistry", "OysterInstance", "OysterMcp"]
34
38
  }
35
39
  ]
36
40
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "dependencies": {
3
- "@fungi.computer/agar": "0.7.3",
4
- "@fungi.computer/caps": "0.7.1",
3
+ "@fungi.computer/agar": "0.8.0",
4
+ "@fungi.computer/caps": "0.8.0",
5
5
  "react": "18.3.1",
6
6
  "react-dom": "18.3.1",
7
7
  "zod": "4.4.3"
8
8
  },
9
9
  "devDependencies": {
10
- "create-fungi-app": "0.0.1",
11
- "@fungi.computer/oyster": "0.14.1",
10
+ "create-fungi-app": "0.0.2",
11
+ "@fungi.computer/oyster": "0.15.0",
12
12
  "typescript": "5.9.3",
13
13
  "@types/react": "18.3.3",
14
14
  "@types/react-dom": "18.3.0",