feat(mcp): add guided construction workflows
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user