aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mcp/src/shared.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-04-13 13:47:40 +0000
committerMohamed Bassem <me@mbassem.com>2025-04-13 13:47:40 +0000
commit8c6cfc8f5fdab4bbdae41060518c08731720976a (patch)
tree9e0bf2cbd2e61342380f295faaec88e014c33fa9 /apps/mcp/src/shared.ts
parent46277c74d5df376e4350cb3c8035ec9dda329a7a (diff)
downloadkarakeep-8c6cfc8f5fdab4bbdae41060518c08731720976a.tar.zst
fix(mcp): compact the response of get bookmark lists
Diffstat (limited to 'apps/mcp/src/shared.ts')
-rw-r--r--apps/mcp/src/shared.ts15
1 files changed, 0 insertions, 15 deletions
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`,
- },
- ],
- };
-}