aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mcp/src/shared.ts
diff options
context:
space:
mode:
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`,
- },
- ],
- };
-}