@intangle/mcp-server 1.1.9 → 1.2.0
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/index.js +16 -2
- package/index.ts +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80,7 +80,7 @@ const server = new Server({
|
|
|
80
80
|
const TOOLS = [
|
|
81
81
|
{
|
|
82
82
|
name: "search_memories",
|
|
83
|
-
description: "Search through ALL stored data including BOTH context (general information) AND tasks (actionable workflow items). Uses
|
|
83
|
+
description: "Search through ALL stored data including BOTH context (general information) AND tasks (actionable workflow items). Uses intelligent routing with query classification. Supports depth control for speed vs thoroughness tradeoff. ALWAYS provide space_id parameter - this is mandatory for all searches.",
|
|
84
84
|
inputSchema: {
|
|
85
85
|
type: "object",
|
|
86
86
|
properties: {
|
|
@@ -102,6 +102,18 @@ const TOOLS = [
|
|
|
102
102
|
description: "Maximum number of results to return",
|
|
103
103
|
default: 10,
|
|
104
104
|
},
|
|
105
|
+
depth: {
|
|
106
|
+
type: "string",
|
|
107
|
+
enum: ["quick", "balanced", "thorough"],
|
|
108
|
+
description: "Search depth: 'quick' = fast list retrieval, 'balanced' = smart routing with AI (default), 'thorough' = full hybrid search with attention agent",
|
|
109
|
+
default: "balanced",
|
|
110
|
+
},
|
|
111
|
+
return_format: {
|
|
112
|
+
type: "string",
|
|
113
|
+
enum: ["full", "summary", "ids_only"],
|
|
114
|
+
description: "Result format: 'full' = complete content (default), 'summary' = truncated content, 'ids_only' = just IDs for subsequent fetch",
|
|
115
|
+
default: "full",
|
|
116
|
+
},
|
|
105
117
|
},
|
|
106
118
|
required: ["query"],
|
|
107
119
|
},
|
|
@@ -407,7 +419,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
407
419
|
tools: TOOLS,
|
|
408
420
|
}));
|
|
409
421
|
async function handleSearchMemories(args) {
|
|
410
|
-
const { space_id, query, topics, max_results = 10, } = args;
|
|
422
|
+
const { space_id, query, topics, max_results = 10, depth = "balanced", return_format = "full", } = args;
|
|
411
423
|
// Require space_id
|
|
412
424
|
if (!space_id) {
|
|
413
425
|
throw new Error("space_id is required. Use list_spaces to see available options.");
|
|
@@ -418,6 +430,8 @@ async function handleSearchMemories(args) {
|
|
|
418
430
|
query,
|
|
419
431
|
topics,
|
|
420
432
|
max_results,
|
|
433
|
+
depth,
|
|
434
|
+
return_format,
|
|
421
435
|
});
|
|
422
436
|
}
|
|
423
437
|
async function handleGetRecentMemories(args) {
|
package/index.ts
CHANGED
|
@@ -111,7 +111,7 @@ const TOOLS = [
|
|
|
111
111
|
{
|
|
112
112
|
name: "search_memories",
|
|
113
113
|
description:
|
|
114
|
-
"Search through ALL stored data including BOTH context (general information) AND tasks (actionable workflow items). Uses
|
|
114
|
+
"Search through ALL stored data including BOTH context (general information) AND tasks (actionable workflow items). Uses intelligent routing with query classification. Supports depth control for speed vs thoroughness tradeoff. ALWAYS provide space_id parameter - this is mandatory for all searches.",
|
|
115
115
|
inputSchema: {
|
|
116
116
|
type: "object",
|
|
117
117
|
properties: {
|
|
@@ -134,6 +134,20 @@ const TOOLS = [
|
|
|
134
134
|
description: "Maximum number of results to return",
|
|
135
135
|
default: 10,
|
|
136
136
|
},
|
|
137
|
+
depth: {
|
|
138
|
+
type: "string",
|
|
139
|
+
enum: ["quick", "balanced", "thorough"],
|
|
140
|
+
description:
|
|
141
|
+
"Search depth: 'quick' = fast list retrieval, 'balanced' = smart routing with AI (default), 'thorough' = full hybrid search with attention agent",
|
|
142
|
+
default: "balanced",
|
|
143
|
+
},
|
|
144
|
+
return_format: {
|
|
145
|
+
type: "string",
|
|
146
|
+
enum: ["full", "summary", "ids_only"],
|
|
147
|
+
description:
|
|
148
|
+
"Result format: 'full' = complete content (default), 'summary' = truncated content, 'ids_only' = just IDs for subsequent fetch",
|
|
149
|
+
default: "full",
|
|
150
|
+
},
|
|
137
151
|
},
|
|
138
152
|
required: ["query"],
|
|
139
153
|
},
|
|
@@ -461,11 +475,15 @@ async function handleSearchMemories(args: any) {
|
|
|
461
475
|
query,
|
|
462
476
|
topics,
|
|
463
477
|
max_results = 10,
|
|
478
|
+
depth = "balanced",
|
|
479
|
+
return_format = "full",
|
|
464
480
|
} = args as {
|
|
465
481
|
space_id: string;
|
|
466
482
|
query: string;
|
|
467
483
|
topics?: string[];
|
|
468
484
|
max_results?: number;
|
|
485
|
+
depth?: "quick" | "balanced" | "thorough";
|
|
486
|
+
return_format?: "full" | "summary" | "ids_only";
|
|
469
487
|
};
|
|
470
488
|
|
|
471
489
|
// Require space_id
|
|
@@ -481,6 +499,8 @@ async function handleSearchMemories(args: any) {
|
|
|
481
499
|
query,
|
|
482
500
|
topics,
|
|
483
501
|
max_results,
|
|
502
|
+
depth,
|
|
503
|
+
return_format,
|
|
484
504
|
});
|
|
485
505
|
}
|
|
486
506
|
|