@oked/sdk 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classify.js +13 -1
- package/package.json +1 -1
package/dist/classify.js
CHANGED
|
@@ -1123,7 +1123,19 @@ function splitArgs(s) {
|
|
|
1123
1123
|
function classifyMcpTool(toolName) {
|
|
1124
1124
|
const parts = toolName.split("__");
|
|
1125
1125
|
const tool = parts[parts.length - 1] || "";
|
|
1126
|
-
|
|
1126
|
+
// Read-only retrieval verbs.
|
|
1127
|
+
if (tool.startsWith("list_") || tool.startsWith("get_") || tool.startsWith("search_") ||
|
|
1128
|
+
tool.startsWith("read_") || tool.startsWith("fetch_") || tool.startsWith("query_") ||
|
|
1129
|
+
tool.startsWith("find_") || tool.startsWith("view_") || tool.startsWith("show_") ||
|
|
1130
|
+
tool.startsWith("describe_") || tool.startsWith("inspect_") || tool.startsWith("check_") ||
|
|
1131
|
+
tool.startsWith("count_")) {
|
|
1132
|
+
return "safe";
|
|
1133
|
+
}
|
|
1134
|
+
// Annotation / transcript-marker verbs — they label or organize the session
|
|
1135
|
+
// (mark a chapter, flag a follow-up, dismiss a chip) without touching the
|
|
1136
|
+
// filesystem, network, or any external service, so they auto-allow silently.
|
|
1137
|
+
if (tool.startsWith("mark_") || tool.startsWith("annotate_") || tool.startsWith("tag_") ||
|
|
1138
|
+
tool.startsWith("label_") || tool.startsWith("dismiss_")) {
|
|
1127
1139
|
return "safe";
|
|
1128
1140
|
}
|
|
1129
1141
|
if (tool.endsWith("_status") || tool.endsWith("_info") || tool.endsWith("_count") ||
|