velixar-mcp-server 0.2.0 → 0.2.2
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/package.json +2 -2
- package/src/index.js +19 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "velixar-mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "MCP server for Velixar persistent memory — give your AI agents long-term recall",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://velixarai.com",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@modelcontextprotocol/sdk": "
|
|
30
|
+
"@modelcontextprotocol/sdk": "1.21.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const API_BASE = process.env.VELIXAR_API_URL || "https://api.velixarai.com";
|
|
|
13
13
|
const USER_ID = process.env.VELIXAR_USER_ID || "mcp-user";
|
|
14
14
|
const AUTO_RECALL = process.env.VELIXAR_AUTO_RECALL !== "false"; // on by default
|
|
15
15
|
const RECALL_LIMIT = parseInt(process.env.VELIXAR_RECALL_LIMIT || "10", 10);
|
|
16
|
-
const TIMEOUT_MS =
|
|
16
|
+
const TIMEOUT_MS = 30000; // Increased from 15s to match Lambda timeout
|
|
17
17
|
|
|
18
18
|
if (!API_KEY) {
|
|
19
19
|
console.error("VELIXAR_API_KEY environment variable required");
|
|
@@ -47,7 +47,7 @@ async function apiRequest(path, options = {}) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const server = new Server(
|
|
50
|
-
{ name: "velixar-mcp-server", version: "0.2.
|
|
50
|
+
{ name: "velixar-mcp-server", version: "0.2.1" },
|
|
51
51
|
{ capabilities: { tools: {}, resources: {} } }
|
|
52
52
|
);
|
|
53
53
|
|
|
@@ -237,9 +237,24 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
237
237
|
return { content: [{ type: "text", text: `✓ Updated memory: ${args.id}` }] };
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
return {
|
|
240
|
+
return {
|
|
241
|
+
content: [{
|
|
242
|
+
type: "text",
|
|
243
|
+
text: `Unknown tool: ${name}\n\nNote: Velixar MCP tools are only available in the primary agent context. If you're seeing this in a subagent, memory operations must be handled by the primary agent.`
|
|
244
|
+
}],
|
|
245
|
+
isError: true
|
|
246
|
+
};
|
|
241
247
|
} catch (error) {
|
|
242
|
-
|
|
248
|
+
const helpText = error.message.includes("tool") || error.message.includes("not found")
|
|
249
|
+
? "\n\nNote: Velixar MCP tools are only available in the primary agent context. If you're using subagents, handle memory operations in the primary agent before/after delegating other tasks."
|
|
250
|
+
: "";
|
|
251
|
+
return {
|
|
252
|
+
content: [{
|
|
253
|
+
type: "text",
|
|
254
|
+
text: `Error: ${error.message}${helpText}`
|
|
255
|
+
}],
|
|
256
|
+
isError: true
|
|
257
|
+
};
|
|
243
258
|
}
|
|
244
259
|
});
|
|
245
260
|
|