mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-04 22:00:27 +00:00
register SpaceState durable object (#1376)
Registers `SpaceState` before the stateless MCP starts routing requests through it. The class is intentionally unused here, so this changes no request behavior. Rollout: 1. Apply this exact commit once with `wrangler deploy`, not `wrangler versions upload`. 2. Rerun the Workers check and merge this parent PR. 3. Land #1120, which adds the active-space methods and request routing. Verified with the MCP widget build, isolated class typecheck, and Wrangler deploy/version dry runs.
This commit is contained in:
parent
a051ba0e28
commit
95a34602b7
3 changed files with 12 additions and 0 deletions
|
|
@ -197,5 +197,6 @@ app.all("/mcp/*", handleMcpRequest)
|
|||
|
||||
// Export the Durable Object class for Cloudflare Workers
|
||||
export { SupermemoryMCP }
|
||||
export { SpaceState } from "./server/space-state"
|
||||
|
||||
export default app
|
||||
|
|
|
|||
3
apps/mcp/src/server/space-state.ts
Normal file
3
apps/mcp/src/server/space-state.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { DurableObject } from "cloudflare:workers"
|
||||
|
||||
export class SpaceState extends DurableObject {}
|
||||
|
|
@ -25,6 +25,10 @@
|
|||
{
|
||||
"name": "MCP_SERVER",
|
||||
"class_name": "SupermemoryMCP"
|
||||
},
|
||||
{
|
||||
"name": "SPACE_STATE",
|
||||
"class_name": "SpaceState"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -33,6 +37,10 @@
|
|||
{
|
||||
"tag": "v1",
|
||||
"new_sqlite_classes": ["SupermemoryMCP"]
|
||||
},
|
||||
{
|
||||
"tag": "v2",
|
||||
"new_sqlite_classes": ["SpaceState"]
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue