diff --git a/src/memory/index.ts b/src/memory/index.ts index 2ea8c138..cfc6296f 100644 --- a/src/memory/index.ts +++ b/src/memory/index.ts @@ -1,6 +1,6 @@ #!/usr/bin/env node -import { McpServer } from "@modelcontextprotocol/sdk/server/index.js"; +import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { promises as fs } from 'fs'; import path from 'path'; @@ -249,10 +249,6 @@ const OpenNodesSchema = z.object({ const server = new McpServer({ name: "memory-server", version: "0.6.3", -}, { - capabilities: { - tools: {}, - }, }); server.registerTool( diff --git a/src/sequentialthinking/index.ts b/src/sequentialthinking/index.ts index 6e04d199..0a2386a5 100644 --- a/src/sequentialthinking/index.ts +++ b/src/sequentialthinking/index.ts @@ -84,7 +84,7 @@ class SequentialThinkingServer { └${border}┘`; } - public processThought(input: unknown): { content: Array<{ type: string; text: string }>; isError?: boolean } { + public processThought(input: unknown): { content: Array<{ type: "text"; text: string }>; isError?: boolean } { try { const validatedInput = this.validateThoughtData(input); @@ -108,7 +108,7 @@ class SequentialThinkingServer { return { content: [{ - type: "text", + type: "text" as const, text: JSON.stringify({ thoughtNumber: validatedInput.thoughtNumber, totalThoughts: validatedInput.totalThoughts, @@ -121,7 +121,7 @@ class SequentialThinkingServer { } catch (error) { return { content: [{ - type: "text", + type: "text" as const, text: JSON.stringify({ error: error instanceof Error ? error.message : String(error), status: 'failed'