@intangle/mcp-server 1.2.7 → 1.4.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/.env.local +2 -0
- package/dist/index.js +0 -21
- package/dist/tool-definitions.js +5 -42
- package/index.ts +0 -33
- package/package.json +1 -1
- package/tool-definitions.ts +5 -42
- package/intangle-memory-1.0.0.tgz +0 -0
package/.env.local
ADDED
package/dist/index.js
CHANGED
|
@@ -96,18 +96,6 @@ async function handleSearchMemories(args) {
|
|
|
96
96
|
topics,
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
async function handleGetRecentMemories(args) {
|
|
100
|
-
const { space_id, topics, limit = 20, } = args;
|
|
101
|
-
// Require space_id to be provided
|
|
102
|
-
if (!space_id) {
|
|
103
|
-
throw new Error("space_id is required. Use list_spaces to see available options.");
|
|
104
|
-
}
|
|
105
|
-
return makeApiCall("get-recent-memories", {
|
|
106
|
-
space_id,
|
|
107
|
-
topics,
|
|
108
|
-
limit,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
99
|
async function handleFetch(args) {
|
|
112
100
|
const { id, ids } = args;
|
|
113
101
|
return makeApiCall("fetch", { id, ids });
|
|
@@ -141,9 +129,6 @@ async function handleUpdateSpace(args) {
|
|
|
141
129
|
delete: args.delete,
|
|
142
130
|
});
|
|
143
131
|
}
|
|
144
|
-
async function handleListTasks(args) {
|
|
145
|
-
return makeApiCall("list-tasks", args);
|
|
146
|
-
}
|
|
147
132
|
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
148
133
|
const { name, arguments: args } = request.params;
|
|
149
134
|
try {
|
|
@@ -152,9 +137,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
152
137
|
case "search":
|
|
153
138
|
result = await handleSearchMemories(args);
|
|
154
139
|
break;
|
|
155
|
-
case "get_recent_memories":
|
|
156
|
-
result = await handleGetRecentMemories(args);
|
|
157
|
-
break;
|
|
158
140
|
case "fetch":
|
|
159
141
|
result = await handleFetch(args);
|
|
160
142
|
break;
|
|
@@ -173,9 +155,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
173
155
|
case "update_space":
|
|
174
156
|
result = await handleUpdateSpace(args);
|
|
175
157
|
break;
|
|
176
|
-
case "list_tasks":
|
|
177
|
-
result = await handleListTasks(args);
|
|
178
|
-
break;
|
|
179
158
|
default:
|
|
180
159
|
throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
181
160
|
}
|
package/dist/tool-definitions.js
CHANGED
|
@@ -123,59 +123,22 @@ export const TOOLS = [
|
|
|
123
123
|
},
|
|
124
124
|
add: {
|
|
125
125
|
type: "object",
|
|
126
|
-
description: "Add new
|
|
126
|
+
description: "Add new items to memory with automatic intelligent classification and topic suggestion",
|
|
127
127
|
properties: {
|
|
128
|
-
|
|
128
|
+
items: {
|
|
129
129
|
type: "array",
|
|
130
130
|
items: {
|
|
131
131
|
type: "object",
|
|
132
132
|
properties: {
|
|
133
|
-
title: { type: "string", description: "
|
|
133
|
+
title: { type: "string", description: "Item title" },
|
|
134
134
|
content: {
|
|
135
135
|
type: "string",
|
|
136
|
-
description: "
|
|
137
|
-
},
|
|
138
|
-
topics: {
|
|
139
|
-
type: "array",
|
|
140
|
-
items: { type: "string" },
|
|
141
|
-
description: "Optional topics/tags",
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
required: ["title", "content"],
|
|
145
|
-
},
|
|
146
|
-
description: "Array of context items to add",
|
|
147
|
-
},
|
|
148
|
-
tasks: {
|
|
149
|
-
type: "array",
|
|
150
|
-
items: {
|
|
151
|
-
type: "object",
|
|
152
|
-
properties: {
|
|
153
|
-
title: { type: "string", description: "Task title" },
|
|
154
|
-
content: { type: "string", description: "Task description" },
|
|
155
|
-
topics: {
|
|
156
|
-
type: "array",
|
|
157
|
-
items: { type: "string" },
|
|
158
|
-
description: "Optional topics/tags",
|
|
159
|
-
},
|
|
160
|
-
status: {
|
|
161
|
-
type: "string",
|
|
162
|
-
enum: [
|
|
163
|
-
"pending",
|
|
164
|
-
"in_progress",
|
|
165
|
-
"completed",
|
|
166
|
-
"invalidated",
|
|
167
|
-
],
|
|
168
|
-
description: "Task status (default: pending)",
|
|
169
|
-
},
|
|
170
|
-
priority: {
|
|
171
|
-
type: "string",
|
|
172
|
-
enum: ["urgent", "high", "medium", "low"],
|
|
173
|
-
description: "Priority level (default: medium)",
|
|
136
|
+
description: "Item content - system automatically classifies as task (actionable) or context (knowledge) and suggests relevant topics",
|
|
174
137
|
},
|
|
175
138
|
},
|
|
176
139
|
required: ["title", "content"],
|
|
177
140
|
},
|
|
178
|
-
description: "Array of
|
|
141
|
+
description: "Array of items to add. System intelligently: (1) classifies as task or context, (2) suggests 1-3 relevant topics based on content and existing topics. Examples: 'Need to fix auth bug' → task with topics like 'authentication', 'bug-fix'. 'Learned React batches updates' → context with topics like 'react', 'learning'.",
|
|
179
142
|
},
|
|
180
143
|
},
|
|
181
144
|
},
|
package/index.ts
CHANGED
|
@@ -140,30 +140,6 @@ async function handleSearchMemories(args: any) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
async function handleGetRecentMemories(args: any) {
|
|
144
|
-
const {
|
|
145
|
-
space_id,
|
|
146
|
-
topics,
|
|
147
|
-
limit = 20,
|
|
148
|
-
} = args as {
|
|
149
|
-
space_id?: string;
|
|
150
|
-
topics?: string[];
|
|
151
|
-
limit?: number;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// Require space_id to be provided
|
|
155
|
-
if (!space_id) {
|
|
156
|
-
throw new Error(
|
|
157
|
-
"space_id is required. Use list_spaces to see available options.",
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return makeApiCall("get-recent-memories", {
|
|
162
|
-
space_id,
|
|
163
|
-
topics,
|
|
164
|
-
limit,
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
143
|
|
|
168
144
|
async function handleFetch(args: any) {
|
|
169
145
|
const { id, ids } = args as { id?: string; ids?: string[] };
|
|
@@ -211,9 +187,6 @@ async function handleUpdateSpace(args: any) {
|
|
|
211
187
|
});
|
|
212
188
|
}
|
|
213
189
|
|
|
214
|
-
async function handleListTasks(args: any) {
|
|
215
|
-
return makeApiCall("list-tasks", args);
|
|
216
|
-
}
|
|
217
190
|
|
|
218
191
|
server.setRequestHandler(CallToolRequestSchema, async (request: any) => {
|
|
219
192
|
const { name, arguments: args } = request.params;
|
|
@@ -225,9 +198,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request: any) => {
|
|
|
225
198
|
case "search":
|
|
226
199
|
result = await handleSearchMemories(args);
|
|
227
200
|
break;
|
|
228
|
-
case "get_recent_memories":
|
|
229
|
-
result = await handleGetRecentMemories(args);
|
|
230
|
-
break;
|
|
231
201
|
case "fetch":
|
|
232
202
|
result = await handleFetch(args);
|
|
233
203
|
break;
|
|
@@ -246,9 +216,6 @@ server.setRequestHandler(CallToolRequestSchema, async (request: any) => {
|
|
|
246
216
|
case "update_space":
|
|
247
217
|
result = await handleUpdateSpace(args);
|
|
248
218
|
break;
|
|
249
|
-
case "list_tasks":
|
|
250
|
-
result = await handleListTasks(args);
|
|
251
|
-
break;
|
|
252
219
|
default:
|
|
253
220
|
throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
254
221
|
}
|
package/package.json
CHANGED
package/tool-definitions.ts
CHANGED
|
@@ -137,59 +137,22 @@ export const TOOLS = [
|
|
|
137
137
|
},
|
|
138
138
|
add: {
|
|
139
139
|
type: "object",
|
|
140
|
-
description: "Add new
|
|
140
|
+
description: "Add new items to memory with automatic intelligent classification and topic suggestion",
|
|
141
141
|
properties: {
|
|
142
|
-
|
|
142
|
+
items: {
|
|
143
143
|
type: "array",
|
|
144
144
|
items: {
|
|
145
145
|
type: "object",
|
|
146
146
|
properties: {
|
|
147
|
-
title: { type: "string", description: "
|
|
147
|
+
title: { type: "string", description: "Item title" },
|
|
148
148
|
content: {
|
|
149
149
|
type: "string",
|
|
150
|
-
description: "
|
|
151
|
-
},
|
|
152
|
-
topics: {
|
|
153
|
-
type: "array",
|
|
154
|
-
items: { type: "string" },
|
|
155
|
-
description: "Optional topics/tags",
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
required: ["title", "content"],
|
|
159
|
-
},
|
|
160
|
-
description: "Array of context items to add",
|
|
161
|
-
},
|
|
162
|
-
tasks: {
|
|
163
|
-
type: "array",
|
|
164
|
-
items: {
|
|
165
|
-
type: "object",
|
|
166
|
-
properties: {
|
|
167
|
-
title: { type: "string", description: "Task title" },
|
|
168
|
-
content: { type: "string", description: "Task description" },
|
|
169
|
-
topics: {
|
|
170
|
-
type: "array",
|
|
171
|
-
items: { type: "string" },
|
|
172
|
-
description: "Optional topics/tags",
|
|
173
|
-
},
|
|
174
|
-
status: {
|
|
175
|
-
type: "string",
|
|
176
|
-
enum: [
|
|
177
|
-
"pending",
|
|
178
|
-
"in_progress",
|
|
179
|
-
"completed",
|
|
180
|
-
"invalidated",
|
|
181
|
-
],
|
|
182
|
-
description: "Task status (default: pending)",
|
|
183
|
-
},
|
|
184
|
-
priority: {
|
|
185
|
-
type: "string",
|
|
186
|
-
enum: ["urgent", "high", "medium", "low"],
|
|
187
|
-
description: "Priority level (default: medium)",
|
|
150
|
+
description: "Item content - system automatically classifies as task (actionable) or context (knowledge) and suggests relevant topics",
|
|
188
151
|
},
|
|
189
152
|
},
|
|
190
153
|
required: ["title", "content"],
|
|
191
154
|
},
|
|
192
|
-
description: "Array of
|
|
155
|
+
description: "Array of items to add. System intelligently: (1) classifies as task or context, (2) suggests 1-3 relevant topics based on content and existing topics. Examples: 'Need to fix auth bug' → task with topics like 'authentication', 'bug-fix'. 'Learned React batches updates' → context with topics like 'react', 'learning'.",
|
|
193
156
|
},
|
|
194
157
|
},
|
|
195
158
|
},
|
|
Binary file
|