aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mcp/src
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-04-16 19:04:25 +0000
committerMohamed Bassem <me@mbassem.com>2025-04-16 23:50:17 +0000
commitba89a864bb4548623ca1bfcfc9ab6eb7fe782603 (patch)
treee3b8ddf9d418255f95c18bee76350d441fdd3081 /apps/mcp/src
parent5e0f4de1625957c6ce057ae272aa301fc459d31b (diff)
downloadkarakeep-ba89a864bb4548623ca1bfcfc9ab6eb7fe782603.tar.zst
fix: Add includeContent to search endpoint and document it in the docs
Diffstat (limited to 'apps/mcp/src')
-rw-r--r--apps/mcp/src/bookmarks.ts7
-rw-r--r--apps/mcp/src/lists.ts3
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/mcp/src/bookmarks.ts b/apps/mcp/src/bookmarks.ts
index 14043489..57b6959b 100644
--- a/apps/mcp/src/bookmarks.ts
+++ b/apps/mcp/src/bookmarks.ts
@@ -36,6 +36,7 @@ machine learning is:fav`),
query: {
q: query,
limit: 10,
+ includeContent: false,
},
},
});
@@ -63,6 +64,9 @@ mcpServer.tool(
path: {
bookmarkId,
},
+ query: {
+ includeContent: false,
+ },
},
});
if (res.error) {
@@ -149,6 +153,9 @@ mcpServer.tool(
path: {
bookmarkId,
},
+ query: {
+ includeContent: true,
+ },
},
});
if (res.error) {
diff --git a/apps/mcp/src/lists.ts b/apps/mcp/src/lists.ts
index 1e0f3a8a..eee1cc96 100644
--- a/apps/mcp/src/lists.ts
+++ b/apps/mcp/src/lists.ts
@@ -33,6 +33,9 @@ mcpServer.tool(
path: {
listId,
},
+ query: {
+ includeContent: false,
+ },
},
});
if (res.error) {