Skip to content

Commit fb0d28e

Browse files
committed
chore: set search_object readonly
1 parent 4b6f571 commit fb0d28e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ See documentation for more details on configuring database connections.
143143
// Print sources and tools table
144144
const sourceDisplayInfos = buildSourceDisplayInfo(
145145
sources,
146-
(sourceId) => getToolsForSource(sourceId).map((t) => t.name),
146+
(sourceId) => getToolsForSource(sourceId).map((t) => t.readonly ? `🔒 ${t.name}` : t.name),
147147
isDemo
148148
);
149149
console.error(generateStartupTable(sourceDisplayInfos));

src/utils/tool-metadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ function buildSearchObjectsTool(sourceId: string): Tool {
246246
description: "Max results (default: 100, max: 1000)",
247247
},
248248
],
249+
readonly: true, // search_objects is always readonly
249250
};
250251
}
251252

0 commit comments

Comments
 (0)