fix(mcp): add shared operations and secure scene APIs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
|
||||
import type { AnyNodeId } from '@pascal-app/core/schema'
|
||||
import { z } from 'zod'
|
||||
import type { SceneBridge } from '../bridge/scene-bridge'
|
||||
import type { SceneOperations } from '../operations'
|
||||
import { ErrorCode, throwMcpError } from './errors'
|
||||
import { NodeIdSchema } from './schemas'
|
||||
|
||||
@@ -13,7 +13,7 @@ export const getNodeOutput = {
|
||||
node: z.record(z.string(), z.unknown()),
|
||||
}
|
||||
|
||||
export function registerGetNode(server: McpServer, bridge: SceneBridge): void {
|
||||
export function registerGetNode(server: McpServer, bridge: SceneOperations): void {
|
||||
server.registerTool(
|
||||
'get_node',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user