@intangle/mcp-server 1.1.3 → 1.1.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.
Files changed (3) hide show
  1. package/dist/index.js +30 -17
  2. package/index.ts +30 -19
  3. package/package.json +50 -51
package/dist/index.js CHANGED
@@ -208,19 +208,22 @@ const TOOLS = [
208
208
  },
209
209
  },
210
210
  },
211
- {
212
- name: "get_entities",
213
- description: "Get extracted entities (people, places, concepts) from CONTEXT items (general information). If no memory_id provided, returns top 20 most frequently mentioned entities across all context. WARNING: This tool can return large responses - use sparingly and only when entity information is specifically needed.",
214
- inputSchema: {
215
- type: "object",
216
- properties: {
217
- memory_id: {
218
- type: "string",
219
- description: "Memory ID to get entities for. RECOMMENDED: Always provide memory_id to get focused results.",
220
- },
221
- },
222
- },
223
- },
211
+ // DISABLED: get_entities tool - not useful in current form
212
+ // {
213
+ // name: "get_entities",
214
+ // description:
215
+ // "Get extracted entities (people, places, concepts) from CONTEXT items (general information). If no memory_id provided, returns top 20 most frequently mentioned entities across all context. WARNING: This tool can return large responses - use sparingly and only when entity information is specifically needed.",
216
+ // inputSchema: {
217
+ // type: "object",
218
+ // properties: {
219
+ // memory_id: {
220
+ // type: "string",
221
+ // description:
222
+ // "Memory ID to get entities for. RECOMMENDED: Always provide memory_id to get focused results.",
223
+ // },
224
+ // },
225
+ // },
226
+ // },
224
227
  {
225
228
  name: "delete_memory",
226
229
  description: "Delete one or more CONTEXT items (general information). For deleting tasks, use delete_task instead. Accepts a single memory ID or an array of memory IDs for batch deletion.",
@@ -913,9 +916,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
913
916
  case "fetch":
914
917
  result = await handleFetch(args);
915
918
  break;
916
- case "get_entities":
917
- result = await handleGetEntities(args);
918
- break;
919
+ // DISABLED: get_entities handler - not useful in current form
920
+ // case "get_entities":
921
+ // result = await handleGetEntities(args);
922
+ // break;
919
923
  case "delete_memory":
920
924
  result = await handleDeleteMemory(args);
921
925
  break;
@@ -952,8 +956,17 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
952
956
  default:
953
957
  throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
954
958
  }
959
+ // Extract response field for Layer 2 compressed tools, otherwise stringify full result
960
+ let responseText;
961
+ if (result && typeof result === 'object' && 'response' in result && typeof result.response === 'string') {
962
+ // Tool has Layer 2 compression - use the formatted response field
963
+ responseText = result.response;
964
+ }
965
+ else {
966
+ // Standard tool - return full JSON
967
+ responseText = JSON.stringify(result, null, 2);
968
+ }
955
969
  // Add version warning to response if outdated
956
- let responseText = JSON.stringify(result, null, 2);
957
970
  if (latestVersion && latestVersion !== CURRENT_VERSION) {
958
971
  const warning = `\n\n⚠️ UPDATE AVAILABLE: MCP Server v${latestVersion} is available (you're on v${CURRENT_VERSION}). Update with: npx @intangle/mcp-server@latest`;
959
972
  responseText += warning;
package/index.ts CHANGED
@@ -250,21 +250,22 @@ const TOOLS = [
250
250
  },
251
251
  },
252
252
  },
253
- {
254
- name: "get_entities",
255
- description:
256
- "Get extracted entities (people, places, concepts) from CONTEXT items (general information). If no memory_id provided, returns top 20 most frequently mentioned entities across all context. WARNING: This tool can return large responses - use sparingly and only when entity information is specifically needed.",
257
- inputSchema: {
258
- type: "object",
259
- properties: {
260
- memory_id: {
261
- type: "string",
262
- description:
263
- "Memory ID to get entities for. RECOMMENDED: Always provide memory_id to get focused results.",
264
- },
265
- },
266
- },
267
- },
253
+ // DISABLED: get_entities tool - not useful in current form
254
+ // {
255
+ // name: "get_entities",
256
+ // description:
257
+ // "Get extracted entities (people, places, concepts) from CONTEXT items (general information). If no memory_id provided, returns top 20 most frequently mentioned entities across all context. WARNING: This tool can return large responses - use sparingly and only when entity information is specifically needed.",
258
+ // inputSchema: {
259
+ // type: "object",
260
+ // properties: {
261
+ // memory_id: {
262
+ // type: "string",
263
+ // description:
264
+ // "Memory ID to get entities for. RECOMMENDED: Always provide memory_id to get focused results.",
265
+ // },
266
+ // },
267
+ // },
268
+ // },
268
269
  {
269
270
  name: "delete_memory",
270
271
  description:
@@ -1050,9 +1051,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request: any) => {
1050
1051
  case "fetch":
1051
1052
  result = await handleFetch(args);
1052
1053
  break;
1053
- case "get_entities":
1054
- result = await handleGetEntities(args);
1055
- break;
1054
+ // DISABLED: get_entities handler - not useful in current form
1055
+ // case "get_entities":
1056
+ // result = await handleGetEntities(args);
1057
+ // break;
1056
1058
  case "delete_memory":
1057
1059
  result = await handleDeleteMemory(args);
1058
1060
  break;
@@ -1090,8 +1092,17 @@ server.setRequestHandler(CallToolRequestSchema, async (request: any) => {
1090
1092
  throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
1091
1093
  }
1092
1094
 
1095
+ // Extract response field for Layer 2 compressed tools, otherwise stringify full result
1096
+ let responseText: string;
1097
+ if (result && typeof result === 'object' && 'response' in result && typeof result.response === 'string') {
1098
+ // Tool has Layer 2 compression - use the formatted response field
1099
+ responseText = result.response;
1100
+ } else {
1101
+ // Standard tool - return full JSON
1102
+ responseText = JSON.stringify(result, null, 2);
1103
+ }
1104
+
1093
1105
  // Add version warning to response if outdated
1094
- let responseText = JSON.stringify(result, null, 2);
1095
1106
  if (latestVersion && latestVersion !== CURRENT_VERSION) {
1096
1107
  const warning = `\n\n⚠️ UPDATE AVAILABLE: MCP Server v${latestVersion} is available (you're on v${CURRENT_VERSION}). Update with: npx @intangle/mcp-server@latest`;
1097
1108
  responseText += warning;
package/package.json CHANGED
@@ -1,52 +1,51 @@
1
1
  {
2
- "name": "@intangle/mcp-server",
3
- "version": "1.1.3",
4
- "description": "Model Context Protocol server for Intangle - AI memory that persists across conversations",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "scripts": {
8
- "start": "node dist/index.js",
9
- "dev": "tsx watch index.ts",
10
- "build": "tsc",
11
- "lint": "biome check .",
12
- "lint:fix": "biome check --fix .",
13
- "prepublishOnly": "npm run build"
14
- },
15
- "bin": {
16
- "intangle-mcp": "dist/index.js"
17
- },
18
- "keywords": [
19
- "mcp",
20
- "model-context-protocol",
21
- "claude",
22
- "claude-code",
23
- "ai",
24
- "memory",
25
- "knowledge-management",
26
- "intangle",
27
- "claude-desktop",
28
- "anthropic"
29
- ],
30
- "author": "Intangle",
31
- "license": "MIT",
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/intangle/mcp-server.git"
35
- },
36
- "homepage": "https://intangle.app",
37
- "engines": {
38
- "node": ">=18.0.0"
39
- },
40
- "dependencies": {
41
- "@modelcontextprotocol/sdk": "^1.0.0",
42
- "dotenv": "^17.2.0",
43
- "node-fetch": "^3.3.2"
44
- },
45
- "devDependencies": {
46
- "@biomejs/biome": "^1.9.4",
47
- "@types/node": "^22.0.0",
48
- "@types/node-fetch": "^2.6.12",
49
- "tsx": "^4.0.0",
50
- "typescript": "^5.0.0"
51
- }
52
- }
2
+ "name": "@intangle/mcp-server",
3
+ "version": "1.1.5",
4
+ "description": "Model Context Protocol server for Intangle - AI memory that persists across conversations",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "intangle-mcp": "dist/index.js"
9
+ },
10
+ "keywords": [
11
+ "mcp",
12
+ "model-context-protocol",
13
+ "claude",
14
+ "claude-code",
15
+ "ai",
16
+ "memory",
17
+ "knowledge-management",
18
+ "intangle",
19
+ "claude-desktop",
20
+ "anthropic"
21
+ ],
22
+ "author": "Intangle",
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/intangle/mcp-server.git"
27
+ },
28
+ "homepage": "https://intangle.app",
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ },
32
+ "dependencies": {
33
+ "@modelcontextprotocol/sdk": "^1.0.0",
34
+ "dotenv": "^17.2.0",
35
+ "node-fetch": "^3.3.2"
36
+ },
37
+ "devDependencies": {
38
+ "@biomejs/biome": "^1.9.4",
39
+ "@types/node": "^22.0.0",
40
+ "@types/node-fetch": "^2.6.12",
41
+ "tsx": "^4.0.0",
42
+ "typescript": "^5.0.0"
43
+ },
44
+ "scripts": {
45
+ "start": "node dist/index.js",
46
+ "dev": "tsx watch index.ts",
47
+ "build": "tsc",
48
+ "lint": "biome check .",
49
+ "lint:fix": "biome check --fix ."
50
+ }
51
+ }