feat(mcp): add guided construction workflows

This commit is contained in:
Aymeric Rabot
2026-04-27 14:31:04 -04:00
parent b3d1f663f6
commit 3d5c87a651
48 changed files with 3877 additions and 115 deletions
+17
View File
@@ -4,6 +4,9 @@ import { registerPrompts } from './prompts'
import { registerResources } from './resources'
import { createSceneStore } from './storage'
import type {
SceneEvent,
SceneEventAppendOptions,
SceneEventListOptions,
SceneListOptions,
SceneMeta,
SceneMutateOptions,
@@ -70,5 +73,19 @@ function createLazySceneStore(): SceneStore {
const real = await resolve()
return real.rename(id, newName, options)
},
async appendSceneEvent(options: SceneEventAppendOptions): Promise<SceneEvent> {
const real = await resolve()
if (!real.appendSceneEvent) {
throw new Error('scene_events_unavailable')
}
return real.appendSceneEvent(options)
},
async listSceneEvents(id: string, options?: SceneEventListOptions): Promise<SceneEvent[]> {
const real = await resolve()
if (!real.listSceneEvents) {
throw new Error('scene_events_unavailable')
}
return real.listSceneEvents(id, options)
},
}
}