@intangle/mcp-server 1.2.1 → 1.2.3
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 +13 -350
- package/dist/tool-definitions.js +282 -0
- package/index.ts +13 -370
- package/package.json +1 -1
- package/tool-definitions.ts +296 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
// Tools definition - matches the stdio server
|
|
2
|
+
export const TOOLS = [
|
|
3
|
+
{
|
|
4
|
+
name: "search",
|
|
5
|
+
title: "Search Space",
|
|
6
|
+
description: "Search for information within a space. Supports quick, balanced, and deep search modes.",
|
|
7
|
+
inputSchema: {
|
|
8
|
+
type: "object",
|
|
9
|
+
properties: {
|
|
10
|
+
query: {
|
|
11
|
+
type: "string",
|
|
12
|
+
description: "Search query for finding relevant memories",
|
|
13
|
+
},
|
|
14
|
+
space_id: {
|
|
15
|
+
type: "string",
|
|
16
|
+
description: "REQUIRED: Space to search in (use list_spaces to see available options)",
|
|
17
|
+
},
|
|
18
|
+
topics: {
|
|
19
|
+
type: "array",
|
|
20
|
+
items: { type: "string" },
|
|
21
|
+
description: "Optional: Filter by specific topics",
|
|
22
|
+
},
|
|
23
|
+
max_results: {
|
|
24
|
+
type: "number",
|
|
25
|
+
description: "Maximum number of results to return",
|
|
26
|
+
default: 10,
|
|
27
|
+
},
|
|
28
|
+
depth: {
|
|
29
|
+
type: "string",
|
|
30
|
+
enum: ["quick", "balanced", "deep"],
|
|
31
|
+
description: "Search depth: 'quick' = direct hybrid search (fastest, no AI cost), 'balanced' = attention agent with 1-2 iterations (default), 'deep' = attention agent with up to 5 iterations (most thorough)",
|
|
32
|
+
default: "balanced",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
required: ["query", "space_id"],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "fetch",
|
|
40
|
+
title: "Fetch Items by ID",
|
|
41
|
+
description: "Retrieve full content for specific items by ID. Accepts single ID or array of IDs.",
|
|
42
|
+
inputSchema: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
id: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Single ID to fetch (context or task ID like 'mem_123' or 'task_456')",
|
|
48
|
+
},
|
|
49
|
+
ids: {
|
|
50
|
+
type: "array",
|
|
51
|
+
items: { type: "string" },
|
|
52
|
+
description: "Array of IDs to fetch (mix of context and task IDs). Use this to fetch multiple items in one call.",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "start",
|
|
59
|
+
title: "Start Space Session",
|
|
60
|
+
description: "Begin working in a space. Returns a dynamic briefing of recent developments and current priorities.",
|
|
61
|
+
inputSchema: {
|
|
62
|
+
type: "object",
|
|
63
|
+
properties: {
|
|
64
|
+
space_id: {
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Space to start (e.g., 'renvoi', 'personal')",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
required: ["space_id"],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "view_spaces",
|
|
74
|
+
title: "View Spaces",
|
|
75
|
+
description: "View all available spaces with their descriptions and metrics.",
|
|
76
|
+
inputSchema: {
|
|
77
|
+
type: "object",
|
|
78
|
+
properties: {},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "create_space",
|
|
83
|
+
title: "Create Space",
|
|
84
|
+
description: "Create a new space with optional configuration.",
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
name: {
|
|
89
|
+
type: "string",
|
|
90
|
+
description: "Name for the NEW space being created (e.g., 'Work', 'Personal', 'Project X')",
|
|
91
|
+
},
|
|
92
|
+
description: {
|
|
93
|
+
type: "string",
|
|
94
|
+
description: "Brief description of what this NEW space is for (e.g., 'Work-related context and tasks')",
|
|
95
|
+
},
|
|
96
|
+
config_badges: {
|
|
97
|
+
type: "array",
|
|
98
|
+
items: { type: "string" },
|
|
99
|
+
description: "Array of keywords for memory focus in this NEW space. These keywords help steer what context gets loaded when running 'start' for this space. Examples: ['TypeScript', 'React', 'API design', 'authentication']. They act as search terms to prioritize relevant memories.",
|
|
100
|
+
},
|
|
101
|
+
startup_preferences: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "AI behavior preferences for this NEW space. Guides how AI assistants and agents should communicate and behave (e.g., 'be concise and frank', 'think critically', 'play devils advocate'). This appears in the start briefing under 'Assistant Preferences'.",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
required: ["name"],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "view_space",
|
|
111
|
+
title: "View Space",
|
|
112
|
+
description: "View detailed information about a space including configuration and overview.",
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: "object",
|
|
115
|
+
properties: {
|
|
116
|
+
space_id: {
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "ID of space to get info for",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
required: ["space_id"],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "update_space",
|
|
126
|
+
title: "Update Space",
|
|
127
|
+
description: "Add, update, or delete items in a space. Supports any combination of operations in a single call.",
|
|
128
|
+
inputSchema: {
|
|
129
|
+
type: "object",
|
|
130
|
+
properties: {
|
|
131
|
+
space_id: {
|
|
132
|
+
type: "string",
|
|
133
|
+
description: "REQUIRED: Space to operate in (use list_spaces to see available options)",
|
|
134
|
+
},
|
|
135
|
+
add: {
|
|
136
|
+
type: "object",
|
|
137
|
+
description: "Add new context and/or tasks to memory",
|
|
138
|
+
properties: {
|
|
139
|
+
context: {
|
|
140
|
+
type: "array",
|
|
141
|
+
items: {
|
|
142
|
+
type: "object",
|
|
143
|
+
properties: {
|
|
144
|
+
title: { type: "string", description: "Context title" },
|
|
145
|
+
content: {
|
|
146
|
+
type: "string",
|
|
147
|
+
description: "Context content (general information)",
|
|
148
|
+
},
|
|
149
|
+
topics: {
|
|
150
|
+
type: "array",
|
|
151
|
+
items: { type: "string" },
|
|
152
|
+
description: "Optional topics/tags",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
required: ["title", "content"],
|
|
156
|
+
},
|
|
157
|
+
description: "Array of context items to add",
|
|
158
|
+
},
|
|
159
|
+
tasks: {
|
|
160
|
+
type: "array",
|
|
161
|
+
items: {
|
|
162
|
+
type: "object",
|
|
163
|
+
properties: {
|
|
164
|
+
title: { type: "string", description: "Task title" },
|
|
165
|
+
content: { type: "string", description: "Task description" },
|
|
166
|
+
topics: {
|
|
167
|
+
type: "array",
|
|
168
|
+
items: { type: "string" },
|
|
169
|
+
description: "Optional topics/tags",
|
|
170
|
+
},
|
|
171
|
+
status: {
|
|
172
|
+
type: "string",
|
|
173
|
+
enum: [
|
|
174
|
+
"pending",
|
|
175
|
+
"in_progress",
|
|
176
|
+
"completed",
|
|
177
|
+
"invalidated",
|
|
178
|
+
],
|
|
179
|
+
description: "Task status (default: pending)",
|
|
180
|
+
},
|
|
181
|
+
priority: {
|
|
182
|
+
type: "string",
|
|
183
|
+
enum: ["urgent", "high", "medium", "low"],
|
|
184
|
+
description: "Priority level (default: medium)",
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
required: ["title", "content"],
|
|
188
|
+
},
|
|
189
|
+
description: "Array of tasks to add",
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
update: {
|
|
194
|
+
type: "object",
|
|
195
|
+
description: "Update existing context and/or tasks",
|
|
196
|
+
properties: {
|
|
197
|
+
context: {
|
|
198
|
+
type: "array",
|
|
199
|
+
items: {
|
|
200
|
+
type: "object",
|
|
201
|
+
properties: {
|
|
202
|
+
id: { type: "string", description: "Context ID to update" },
|
|
203
|
+
title: {
|
|
204
|
+
type: "string",
|
|
205
|
+
description: "New title (optional)",
|
|
206
|
+
},
|
|
207
|
+
content: {
|
|
208
|
+
type: "string",
|
|
209
|
+
description: "New content (optional)",
|
|
210
|
+
},
|
|
211
|
+
topics: {
|
|
212
|
+
type: "array",
|
|
213
|
+
items: { type: "string" },
|
|
214
|
+
description: "New topics (optional)",
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
required: ["id"],
|
|
218
|
+
},
|
|
219
|
+
description: "Array of context updates (must include id)",
|
|
220
|
+
},
|
|
221
|
+
tasks: {
|
|
222
|
+
type: "array",
|
|
223
|
+
items: {
|
|
224
|
+
type: "object",
|
|
225
|
+
properties: {
|
|
226
|
+
task_id: { type: "string", description: "Task ID to update" },
|
|
227
|
+
title: {
|
|
228
|
+
type: "string",
|
|
229
|
+
description: "New title (optional)",
|
|
230
|
+
},
|
|
231
|
+
content: {
|
|
232
|
+
type: "string",
|
|
233
|
+
description: "New content (optional)",
|
|
234
|
+
},
|
|
235
|
+
topics: {
|
|
236
|
+
type: "array",
|
|
237
|
+
items: { type: "string" },
|
|
238
|
+
description: "New topics (optional)",
|
|
239
|
+
},
|
|
240
|
+
status: {
|
|
241
|
+
type: "string",
|
|
242
|
+
enum: [
|
|
243
|
+
"pending",
|
|
244
|
+
"in_progress",
|
|
245
|
+
"completed",
|
|
246
|
+
"invalidated",
|
|
247
|
+
],
|
|
248
|
+
description: "New status (optional)",
|
|
249
|
+
},
|
|
250
|
+
priority: {
|
|
251
|
+
type: "string",
|
|
252
|
+
enum: ["urgent", "high", "medium", "low"],
|
|
253
|
+
description: "New priority (optional)",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
required: ["task_id"],
|
|
257
|
+
},
|
|
258
|
+
description: "Array of task updates (must include task_id)",
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
delete: {
|
|
263
|
+
type: "object",
|
|
264
|
+
description: "Delete context and/or tasks by ID",
|
|
265
|
+
properties: {
|
|
266
|
+
context_ids: {
|
|
267
|
+
type: "array",
|
|
268
|
+
items: { type: "string" },
|
|
269
|
+
description: "Array of context IDs to delete",
|
|
270
|
+
},
|
|
271
|
+
task_ids: {
|
|
272
|
+
type: "array",
|
|
273
|
+
items: { type: "string" },
|
|
274
|
+
description: "Array of task IDs to delete",
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
required: ["space_id"],
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
];
|