26 lines
1.2 KiB
TypeScript
26 lines
1.2 KiB
TypeScript
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
|
|
import type { SceneOperations } from '../operations'
|
|
import { registerAgentGuide } from './agent-guide'
|
|
import { registerCatalogItems } from './catalog-items'
|
|
import { registerConstraints } from './constraints'
|
|
import { registerSceneCurrent } from './scene-current'
|
|
import { registerSceneSummary } from './scene-summary'
|
|
|
|
/**
|
|
* Registers all MCP resources exposed by `@pascal-app/mcp`.
|
|
*
|
|
* Resources:
|
|
* - `pascal://scene/current` — application/json, full snapshot
|
|
* - `pascal://scene/current/summary` — text/markdown, human summary
|
|
* - `pascal://catalog/items` — application/json, host-supplied catalog
|
|
* - `pascal://constraints/{levelId}` — application/json, per-level constraints
|
|
* - `pascal://agent/guide` — text/markdown, MCP-first construction guide
|
|
*/
|
|
export function registerResources(server: McpServer, operations: SceneOperations): void {
|
|
registerAgentGuide(server, operations)
|
|
registerSceneCurrent(server, operations)
|
|
registerSceneSummary(server, operations)
|
|
registerCatalogItems(server, operations)
|
|
registerConstraints(server, operations)
|
|
}
|