@intangle/mcp-server 2.0.1 → 2.1.1

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 CHANGED
@@ -26,7 +26,13 @@ if (!MCP_API_KEY) {
26
26
  console.log("Intangle MCP Server starting - connecting to", API_BASE_URL);
27
27
  // Version checking - automatically read from package.json
28
28
  const __dirname = dirname(fileURLToPath(import.meta.url));
29
- const packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
29
+ let packageJson;
30
+ try {
31
+ packageJson = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
32
+ }
33
+ catch {
34
+ packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
35
+ }
30
36
  const CURRENT_VERSION = packageJson.version;
31
37
  let latestVersion = null;
32
38
  let versionCheckDone = false;
@@ -43,6 +43,21 @@ export const TOOLS = [
43
43
  },
44
44
  },
45
45
  },
46
+ {
47
+ name: "view_topic",
48
+ title: "View Topic",
49
+ description: "View all memories and tasks tagged with a specific topic. Perfect for exploring a topic area or following up on topics from the start briefing.",
50
+ inputSchema: {
51
+ type: "object",
52
+ properties: {
53
+ topic_id: {
54
+ type: "string",
55
+ description: "Topic ID to view (e.g., 'architecture', 'bug-fix', 'feature-request'). Get topic IDs from view_topics.",
56
+ },
57
+ },
58
+ required: ["topic_id"],
59
+ },
60
+ },
46
61
  {
47
62
  name: "start",
48
63
  title: "Start Space Session",
@@ -67,6 +82,21 @@ export const TOOLS = [
67
82
  properties: {},
68
83
  },
69
84
  },
85
+ {
86
+ name: "view_topics",
87
+ title: "View Topics",
88
+ description: "View all available topics in a space with their IDs and titles. Use this to get the topic_id needed for view_topic.",
89
+ inputSchema: {
90
+ type: "object",
91
+ properties: {
92
+ space_id: {
93
+ type: "string",
94
+ description: "Space to get topics from",
95
+ },
96
+ },
97
+ required: ["space_id"],
98
+ },
99
+ },
70
100
  {
71
101
  name: "create_space",
72
102
  title: "Create Space",
package/index.ts CHANGED
@@ -41,9 +41,16 @@ console.log("Intangle MCP Server starting - connecting to", API_BASE_URL);
41
41
 
42
42
  // Version checking - automatically read from package.json
43
43
  const __dirname = dirname(fileURLToPath(import.meta.url));
44
- const packageJson = JSON.parse(
45
- readFileSync(join(__dirname, "../package.json"), "utf-8"),
46
- );
44
+ let packageJson;
45
+ try {
46
+ packageJson = JSON.parse(
47
+ readFileSync(join(__dirname, "package.json"), "utf-8"),
48
+ );
49
+ } catch {
50
+ packageJson = JSON.parse(
51
+ readFileSync(join(__dirname, "../package.json"), "utf-8"),
52
+ );
53
+ }
47
54
  const CURRENT_VERSION = packageJson.version;
48
55
  let latestVersion: string | null = null;
49
56
  let versionCheckDone = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intangle/mcp-server",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "Model Context Protocol server for Intangle - AI memory that persists across conversations",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -48,6 +48,23 @@ export const TOOLS = [
48
48
  },
49
49
  },
50
50
  },
51
+ {
52
+ name: "view_topic",
53
+ title: "View Topic",
54
+ description:
55
+ "View all memories and tasks tagged with a specific topic. Perfect for exploring a topic area or following up on topics from the start briefing.",
56
+ inputSchema: {
57
+ type: "object",
58
+ properties: {
59
+ topic_id: {
60
+ type: "string",
61
+ description:
62
+ "Topic ID to view (e.g., 'architecture', 'bug-fix', 'feature-request'). Get topic IDs from view_topics.",
63
+ },
64
+ },
65
+ required: ["topic_id"],
66
+ },
67
+ },
51
68
  {
52
69
  name: "start",
53
70
  title: "Start Space Session",
@@ -74,6 +91,22 @@ export const TOOLS = [
74
91
  properties: {},
75
92
  },
76
93
  },
94
+ {
95
+ name: "view_topics",
96
+ title: "View Topics",
97
+ description:
98
+ "View all available topics in a space with their IDs and titles. Use this to get the topic_id needed for view_topic.",
99
+ inputSchema: {
100
+ type: "object",
101
+ properties: {
102
+ space_id: {
103
+ type: "string",
104
+ description: "Space to get topics from",
105
+ },
106
+ },
107
+ required: ["space_id"],
108
+ },
109
+ },
77
110
  {
78
111
  name: "create_space",
79
112
  title: "Create Space",