@trops/dash-core 0.1.79 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,10 @@ const { Server } = require("@modelcontextprotocol/sdk/server/index.js");
|
|
|
21
21
|
const {
|
|
22
22
|
StdioServerTransport,
|
|
23
23
|
} = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
24
|
+
const {
|
|
25
|
+
CallToolRequestSchema,
|
|
26
|
+
ListToolsRequestSchema,
|
|
27
|
+
} = require("@modelcontextprotocol/sdk/types.js");
|
|
24
28
|
const fs = require("fs");
|
|
25
29
|
const https = require("https");
|
|
26
30
|
const path = require("path");
|
|
@@ -267,7 +271,7 @@ if (process.argv[2] === "auth") {
|
|
|
267
271
|
{ capabilities: { tools: {} } },
|
|
268
272
|
);
|
|
269
273
|
|
|
270
|
-
server.setRequestHandler(
|
|
274
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
271
275
|
tools: [
|
|
272
276
|
{
|
|
273
277
|
name: "search",
|
|
@@ -286,7 +290,7 @@ if (process.argv[2] === "auth") {
|
|
|
286
290
|
],
|
|
287
291
|
}));
|
|
288
292
|
|
|
289
|
-
server.setRequestHandler(
|
|
293
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
290
294
|
if (request.params.name !== "search") {
|
|
291
295
|
return {
|
|
292
296
|
content: [
|