exponential-mcp 0.19.0 → 0.20.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/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/exponential-mcp.svg)](https://www.npmjs.com/package/exponential-mcp)
4
4
 
5
- Connect Claude to your [Exponential](https://exponential.im) workspace. Manage projects, actions, and OKRs directly from Claude.
5
+ Connect Claude to your [Exponential](https://www.exponential.im) workspace. Manage projects, actions, and OKRs directly from Claude.
6
+
7
+ Setup guides: **[Claude](https://www.exponential.im/features/integrations/claude)** · **[Cursor](https://www.exponential.im/features/integrations/cursor)** · **[Codex](https://www.exponential.im/features/integrations/codex)** · **[MCP & SDK docs](https://www.exponential.im/docs/developers/mcp-and-sdk)**
8
+
9
+ Built on the [Exponential SDK](https://github.com/exponential-im/exponential-sdk); the [Exponential CLI](https://github.com/exponential-im/exponential-cli) covers the same workspace from a terminal.
6
10
 
7
11
  ## Quick Start
8
12
 
@@ -224,7 +228,11 @@ Invalid params come back as an error that includes the expected schema.
224
228
  ```
225
229
 
226
230
  `comments` covers comments on actions, features, pages, goals and tickets — pass
227
- `target` to choose which.
231
+ `target` to choose which. On a page, `add` with `quotedText` anchors the comment
232
+ to that span of the body (the server mints the thread and highlights the span);
233
+ copy the text as it reads on the page, and add `quotePrefix`/`quoteSuffix` when
234
+ it appears more than once. A quote that doesn't resolve is refused, not posted
235
+ unanchored. `reply`, `resolve` and `unresolve` work on features and pages.
228
236
 
229
237
  `positions` is a workspace's roles & responsibilities — the Positions on the
230
238
  settings page: list, create, update, set_holders, delete, and import_many
@@ -20,15 +20,17 @@ function goalIdOf(value) {
20
20
  }
21
21
  return n;
22
22
  }
23
- /** Feature-only / goal-only add fields, rejected loudly on other targets rather than silently dropped. */
23
+ /** Target-specific add fields, rejected loudly on other targets rather than silently dropped. */
24
24
  function assertOnly(t, allowed, fields) {
25
- if (t === allowed)
25
+ const targets = Array.isArray(allowed) ? allowed : [allowed];
26
+ if (targets.includes(t))
26
27
  return;
27
28
  const present = Object.entries(fields)
28
29
  .filter(([, v]) => v !== undefined)
29
30
  .map(([k]) => k);
30
31
  if (present.length) {
31
- throw new Error(`${present.join(', ')} can only be used with target "${allowed}", not "${t}".`);
32
+ const names = targets.map((a) => `"${a}"`).join(' or ');
33
+ throw new Error(`${present.join(', ')} can only be used with target ${names}, not "${t}".`);
32
34
  }
33
35
  }
34
36
  async function listTicketComments(client, ticketId) {
@@ -38,7 +40,7 @@ async function listTicketComments(client, ticketId) {
38
40
  }
39
41
  export const comments = {
40
42
  name: 'comments',
41
- description: 'Comments on actions, features (PRDs), knowledge pages, goals (objectives) and tickets — pick the entity with `target`. Threaded replies and anchored-thread resolve/unresolve exist only on features. Editing and deleting are author-only.',
43
+ description: 'Comments on actions, features (PRDs), knowledge pages, goals (objectives) and tickets — pick the entity with `target`. Anchored threads (a comment on a span of the body), threaded replies and resolve/unresolve exist on features and pages. Editing and deleting are author-only.',
42
44
  operations: {
43
45
  list: op({
44
46
  effect: 'read',
@@ -61,26 +63,51 @@ export const comments = {
61
63
  }),
62
64
  add: op({
63
65
  effect: 'write',
64
- summary: 'Add a top-level comment. All targets; scopeId/threadId/quotedText are feature-only, parentUpdateId is goal-only.',
66
+ summary: 'Add a top-level comment. All targets. On a page, pass quotedText to anchor the comment to that span of the body: the server mints the threadId, highlights the span, and refuses the comment if the text matches no span or several (add quotePrefix/quoteSuffix to pick one). scopeId/threadId are feature-only, parentUpdateId is goal-only.',
65
67
  params: z.object({
66
68
  target,
67
69
  targetId,
68
70
  body,
69
71
  scopeId: z.string().optional().describe('Feature only: post to this scope’s activity feed instead of the feature’s'),
70
72
  threadId: z.string().optional().describe('Feature only: anchor to a span of the PRD body; omit for a doc-level comment'),
71
- quotedText: z.string().optional().describe('Feature only: the anchored text being quoted'),
73
+ quotedText: z
74
+ .string()
75
+ .optional()
76
+ .describe('Feature or page: the anchored text being quoted. On a page this alone anchors the comment; copy the text exactly as it reads on the page, without markdown syntax'),
77
+ quotePrefix: z
78
+ .string()
79
+ .max(200)
80
+ .optional()
81
+ .describe('Page only, with quotedText: the text just before the quote, to pick one of several matches'),
82
+ quoteSuffix: z
83
+ .string()
84
+ .max(200)
85
+ .optional()
86
+ .describe('Page only, with quotedText: the text just after the quote, to pick one of several matches'),
72
87
  parentUpdateId: z.string().optional().describe('Goal only: thread under this goal update instead of the goal itself'),
73
88
  }),
74
- run: (client, { target: t, targetId: tid, body, scopeId, threadId, quotedText, parentUpdateId }) => {
75
- assertOnly(t, 'feature', { scopeId, threadId, quotedText });
89
+ run: (client, { target: t, targetId: tid, body, scopeId, threadId, quotedText, quotePrefix, quoteSuffix, parentUpdateId }) => {
90
+ assertOnly(t, 'feature', { scopeId, threadId });
91
+ assertOnly(t, ['feature', 'page'], { quotedText });
92
+ assertOnly(t, 'page', { quotePrefix, quoteSuffix });
76
93
  assertOnly(t, 'goal', { parentUpdateId });
94
+ if ((quotePrefix !== undefined || quoteSuffix !== undefined) && quotedText === undefined) {
95
+ throw new Error('quotePrefix/quoteSuffix need quotedText.');
96
+ }
77
97
  switch (t) {
78
98
  case 'action':
79
99
  return client.actionComments.add({ actionId: String(tid), content: body });
80
100
  case 'feature':
81
101
  return client.featureComments.create({ featureId: String(tid), body, scopeId, threadId, quotedText });
82
102
  case 'page':
83
- return client.pageComments.create({ pageId: String(tid), body });
103
+ return client.pageComments.create({
104
+ pageId: String(tid),
105
+ body,
106
+ ...(quotedText !== undefined ? { quotedText } : {}),
107
+ ...(quotePrefix !== undefined || quoteSuffix !== undefined
108
+ ? { quoteContext: { prefix: quotePrefix, suffix: quoteSuffix } }
109
+ : {}),
110
+ });
84
111
  case 'goal':
85
112
  return client.goalComments.add({ goalId: goalIdOf(tid), content: body, parentUpdateId });
86
113
  case 'ticket':
@@ -128,43 +155,49 @@ export const comments = {
128
155
  }),
129
156
  reply: op({
130
157
  effect: 'write',
131
- summary: 'Reply to a comment. Feature target only. Replies to replies still hang off the root comment.',
158
+ summary: 'Reply to a comment. Feature and page targets. Replies to replies still hang off the root comment.',
132
159
  params: z.object({
133
160
  target,
134
161
  commentId: z.string().describe('ID of the comment being replied to'),
135
162
  body,
136
163
  }),
137
164
  run: (client, { target: t, commentId, body }) => {
165
+ if (t === 'page')
166
+ return client.pageComments.reply({ parentId: commentId, body });
138
167
  if (t !== 'feature')
139
- unsupported('reply', t, 'feature');
168
+ unsupported('reply', t, 'feature, page');
140
169
  return client.featureComments.reply({ parentId: commentId, body });
141
170
  },
142
171
  }),
143
172
  resolve: op({
144
173
  effect: 'write',
145
- summary: 'Mark an anchored comment thread resolved. Feature target only; only anchored threads have a threadId.',
174
+ summary: 'Mark an anchored comment thread resolved. Feature and page targets; only anchored threads have a threadId.',
146
175
  params: z.object({
147
176
  target,
148
177
  targetId,
149
178
  threadId: z.string().describe('The anchored thread’s threadId (from the comment), not a comment ID'),
150
179
  }),
151
180
  run: (client, { target: t, targetId: tid, threadId }) => {
181
+ if (t === 'page')
182
+ return client.pageComments.resolve({ pageId: String(tid), threadId });
152
183
  if (t !== 'feature')
153
- unsupported('resolve', t, 'feature');
184
+ unsupported('resolve', t, 'feature, page');
154
185
  return client.featureComments.resolve({ featureId: String(tid), threadId });
155
186
  },
156
187
  }),
157
188
  unresolve: op({
158
189
  effect: 'write',
159
- summary: 'Reopen a resolved anchored comment thread. Feature target only.',
190
+ summary: 'Reopen a resolved anchored comment thread. Feature and page targets.',
160
191
  params: z.object({
161
192
  target,
162
193
  targetId,
163
194
  threadId: z.string().describe('The anchored thread’s threadId (from the comment), not a comment ID'),
164
195
  }),
165
196
  run: (client, { target: t, targetId: tid, threadId }) => {
197
+ if (t === 'page')
198
+ return client.pageComments.unresolve({ pageId: String(tid), threadId });
166
199
  if (t !== 'feature')
167
- unsupported('unresolve', t, 'feature');
200
+ unsupported('unresolve', t, 'feature, page');
168
201
  return client.featureComments.unresolve({ featureId: String(tid), threadId });
169
202
  },
170
203
  }),
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "exponential-mcp",
3
- "version": "0.19.0",
4
- "description": "MCP server for Exponential - connect Claude to your projects, actions, goals, CRM, tickets and more",
3
+ "version": "0.20.0",
4
+ "mcpName": "io.github.exponential-im/exponential-mcp",
5
+ "description": "MCP server for Exponential: give Claude, Cursor, Codex or any MCP client tools over your projects, actions, OKRs, meetings, tickets and CRM",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
7
8
  "exports": {
@@ -32,7 +33,15 @@
32
33
  "claude",
33
34
  "exponential",
34
35
  "productivity",
35
- "anthropic"
36
+ "anthropic",
37
+ "mcp-server",
38
+ "model-context-protocol",
39
+ "cursor",
40
+ "codex",
41
+ "project-management",
42
+ "okr",
43
+ "tasks",
44
+ "ai-agents"
36
45
  ],
37
46
  "author": "Exponential",
38
47
  "license": "AGPL-3.0-or-later",
@@ -40,14 +49,14 @@
40
49
  "type": "git",
41
50
  "url": "git+https://github.com/exponential-im/exponential-mcp.git"
42
51
  },
43
- "homepage": "https://github.com/exponential-im/exponential-mcp#readme",
52
+ "homepage": "https://www.exponential.im/features/integrations",
44
53
  "bugs": {
45
54
  "url": "https://github.com/exponential-im/exponential-mcp/issues"
46
55
  },
47
56
  "dependencies": {
48
57
  "@modelcontextprotocol/sdk": "^1.30.0",
49
58
  "commander": "^12.0.0",
50
- "exponential-sdk": "^1.40.0",
59
+ "exponential-sdk": "^1.42.0",
51
60
  "zod": "^3.22.0",
52
61
  "zod-to-json-schema": "^3.25.2"
53
62
  },