diff --git a/examples/budget-allocator-server/server.ts b/examples/budget-allocator-server/server.ts index fd7618ed..a6bd782c 100755 --- a/examples/budget-allocator-server/server.ts +++ b/examples/budget-allocator-server/server.ts @@ -16,6 +16,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; diff --git a/examples/cohort-heatmap-server/server.ts b/examples/cohort-heatmap-server/server.ts index 9d3c9cb3..1df2d128 100644 --- a/examples/cohort-heatmap-server/server.ts +++ b/examples/cohort-heatmap-server/server.ts @@ -7,6 +7,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; diff --git a/examples/customer-segmentation-server/server.ts b/examples/customer-segmentation-server/server.ts index 0bbbbba8..82967517 100644 --- a/examples/customer-segmentation-server/server.ts +++ b/examples/customer-segmentation-server/server.ts @@ -10,6 +10,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; import { diff --git a/examples/scenario-modeler-server/server.ts b/examples/scenario-modeler-server/server.ts index c3824939..75f73582 100644 --- a/examples/scenario-modeler-server/server.ts +++ b/examples/scenario-modeler-server/server.ts @@ -10,6 +10,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; diff --git a/examples/system-monitor-server/server.ts b/examples/system-monitor-server/server.ts index b439c5ac..9d431433 100644 --- a/examples/system-monitor-server/server.ts +++ b/examples/system-monitor-server/server.ts @@ -12,6 +12,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; diff --git a/examples/threejs-server/server.ts b/examples/threejs-server/server.ts index e9208542..e97bd365 100644 --- a/examples/threejs-server/server.ts +++ b/examples/threejs-server/server.ts @@ -12,6 +12,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js"; @@ -178,9 +180,8 @@ function createServer(): McpServer { }, ); - // Tool 2: learn_threejs - registerAppTool( - server, + // Tool 2: learn_threejs (not a UI tool, just returns documentation) + server.registerTool( "learn_threejs", { title: "Learn Three.js", diff --git a/examples/wiki-explorer-server/server.ts b/examples/wiki-explorer-server/server.ts index 15c93c26..6d5e790b 100644 --- a/examples/wiki-explorer-server/server.ts +++ b/examples/wiki-explorer-server/server.ts @@ -11,6 +11,8 @@ import { z } from "zod"; import { RESOURCE_MIME_TYPE, RESOURCE_URI_META_KEY, + registerAppResource, + registerAppTool, } from "@modelcontextprotocol/ext-apps/server"; import { startServer } from "../shared/server-utils.js";