From 8c6cfc8f5fdab4bbdae41060518c08731720976a Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 13 Apr 2025 13:47:40 +0000 Subject: fix(mcp): compact the response of get bookmark lists --- apps/mcp/src/shared.ts | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'apps/mcp/src/shared.ts') diff --git a/apps/mcp/src/shared.ts b/apps/mcp/src/shared.ts index 2c553d17..a80c3620 100644 --- a/apps/mcp/src/shared.ts +++ b/apps/mcp/src/shared.ts @@ -1,5 +1,4 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types"; import TurndownService from "turndown"; import { createKarakeepClient } from "@karakeep/sdk"; @@ -21,17 +20,3 @@ export const mcpServer = new McpServer({ }); export const turndownService = new TurndownService(); - -export function toMcpToolError( - error: { code: string; message: string } | undefined, -): CallToolResult { - return { - isError: true, - content: [ - { - type: "text", - text: error ? JSON.stringify(error) : `Something went wrong`, - }, - ], - }; -} -- cgit v1.2.3-70-g09d2