exponential-mcp 0.11.0 → 0.12.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 +6 -1
- package/dist/domains/index.js +2 -0
- package/dist/domains/positions.d.ts +2 -0
- package/dist/domains/positions.js +81 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ Alongside the tools above, every part of the [Exponential SDK](https://www.npmjs
|
|
|
134
134
|
is exposed as one tool per domain, so the MCP server can do anything the SDK
|
|
135
135
|
and CLI can:
|
|
136
136
|
|
|
137
|
-
`actions` · `projects` · `workspaces` · `goals` · `key_results` · `meetings` ·
|
|
137
|
+
`actions` · `projects` · `workspaces` · `positions` · `goals` · `key_results` · `meetings` ·
|
|
138
138
|
`time` · `decisions` · `contacts` · `organizations` · `deals` · `products` ·
|
|
139
139
|
`features` · `scopes` · `requirements` · `areas` · `stories` · `epics` ·
|
|
140
140
|
`tickets` · `labels` · `pages` · `databases` · `comments`
|
|
@@ -152,6 +152,11 @@ Invalid params come back as an error that includes the expected schema.
|
|
|
152
152
|
`comments` covers comments on actions, features, pages, goals and tickets — pass
|
|
153
153
|
`target` to choose which.
|
|
154
154
|
|
|
155
|
+
`positions` is a workspace's roles & responsibilities — the Positions on the
|
|
156
|
+
settings page: list, create, update, set_holders, delete, and import_many
|
|
157
|
+
(upsert by title, with a dry run). Writes need your own API key, not an agent
|
|
158
|
+
key, and owner/admin, except that a holder may edit their own Position's remit.
|
|
159
|
+
|
|
155
160
|
`databases` is the typed write path for tables inside pages (ADR-0078): a
|
|
156
161
|
database is a block in a page body and each row is a page. **Values are typed
|
|
157
162
|
per property** — a select takes an option name, a date an ISO string, a person
|
package/dist/domains/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { labels } from './labels.js';
|
|
|
13
13
|
import { meetings } from './meetings.js';
|
|
14
14
|
import { organizations } from './organizations.js';
|
|
15
15
|
import { pages } from './pages.js';
|
|
16
|
+
import { positions } from './positions.js';
|
|
16
17
|
import { products } from './products.js';
|
|
17
18
|
import { projects } from './projects.js';
|
|
18
19
|
import { requirements } from './requirements.js';
|
|
@@ -27,6 +28,7 @@ export const DOMAINS = new Map([
|
|
|
27
28
|
actions,
|
|
28
29
|
projects,
|
|
29
30
|
workspaces,
|
|
31
|
+
positions,
|
|
30
32
|
goals,
|
|
31
33
|
keyResults,
|
|
32
34
|
meetings,
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { id, op, workspaceId } from './framework.js';
|
|
3
|
+
const title = z.string().trim().min(1).max(80).describe('Title, 1–80 characters, unique in the workspace');
|
|
4
|
+
const remit = z
|
|
5
|
+
.string()
|
|
6
|
+
.trim()
|
|
7
|
+
.min(1)
|
|
8
|
+
.max(2000)
|
|
9
|
+
.describe('Markdown, 1–2000 characters: the kinds of work its holders take on');
|
|
10
|
+
const notAccountableFor = z.string().trim().max(2000).describe('Markdown, up to 2000 characters');
|
|
11
|
+
const holderUserIds = z
|
|
12
|
+
.array(z.string())
|
|
13
|
+
.max(50)
|
|
14
|
+
.describe('User IDs of workspace members (see `workspaces` list_members)');
|
|
15
|
+
const positionId = id('Position');
|
|
16
|
+
export const positions = {
|
|
17
|
+
name: 'positions',
|
|
18
|
+
description: "A workspace's roles & responsibilities (Positions): what each role takes on (remit), what it is not accountable for, and who holds it — humans and agents alike. Shown on the workspace settings page. Routing data only; it never grants access. Every write needs the user's own API key (agent keys are refused) and owner/admin, except that a holder who is at least a member may edit their Position's remit. Resolve holders with `workspaces` list_members.",
|
|
19
|
+
operations: {
|
|
20
|
+
list: op({
|
|
21
|
+
summary: 'Every Position with its holders, plus one row per member: { positions, members: [{ userId, positionIds, remitGap }] }. remitGap = no stated remit.',
|
|
22
|
+
params: z.object({ workspaceId }),
|
|
23
|
+
run: (client, { workspaceId }) => client.positions.list(workspaceId),
|
|
24
|
+
}),
|
|
25
|
+
coverage: op({
|
|
26
|
+
summary: 'How many members have a stated remit, and whether to offer an import.',
|
|
27
|
+
params: z.object({ workspaceId }),
|
|
28
|
+
run: (client, { workspaceId }) => client.positions.coverage(workspaceId),
|
|
29
|
+
}),
|
|
30
|
+
create: op({
|
|
31
|
+
summary: 'Create a Position (owner/admin). A duplicate title is CONFLICT.',
|
|
32
|
+
params: z.object({
|
|
33
|
+
workspaceId,
|
|
34
|
+
title,
|
|
35
|
+
remit,
|
|
36
|
+
notAccountableFor: notAccountableFor.optional(),
|
|
37
|
+
holderUserIds: holderUserIds.optional(),
|
|
38
|
+
}),
|
|
39
|
+
run: (client, params) => client.positions.create(params),
|
|
40
|
+
}),
|
|
41
|
+
update: op({
|
|
42
|
+
summary: 'Edit a Position. Pass at least one field. holderUserIds REPLACES the holder set; notAccountableFor null or "" clears it.',
|
|
43
|
+
params: z.object({
|
|
44
|
+
workspaceId,
|
|
45
|
+
positionId,
|
|
46
|
+
title: title.optional(),
|
|
47
|
+
remit: remit.optional(),
|
|
48
|
+
notAccountableFor: notAccountableFor.nullable().optional(),
|
|
49
|
+
holderUserIds: holderUserIds.optional(),
|
|
50
|
+
}),
|
|
51
|
+
run: (client, params) => client.positions.update(params),
|
|
52
|
+
}),
|
|
53
|
+
set_holders: op({
|
|
54
|
+
summary: 'Replace who holds a Position (owner/admin). An empty list leaves it unheld.',
|
|
55
|
+
params: z.object({ workspaceId, positionId, userIds: holderUserIds }),
|
|
56
|
+
run: (client, { workspaceId, positionId, userIds }) => client.positions.setHolders(workspaceId, positionId, userIds),
|
|
57
|
+
}),
|
|
58
|
+
delete: op({
|
|
59
|
+
summary: 'Delete a Position (owner/admin). Its holdings go with it.',
|
|
60
|
+
params: z.object({ workspaceId, positionId }),
|
|
61
|
+
run: (client, { workspaceId, positionId }) => client.positions.delete(workspaceId, positionId),
|
|
62
|
+
}),
|
|
63
|
+
import_many: op({
|
|
64
|
+
summary: 'Upsert 1–50 Positions by title (case-insensitive; never renames), all or nothing (owner/admin). An update replaces the remit, keeps notAccountableFor when omitted ("" clears), and only ADDS holders. Run dryRun: true first and show the plan.',
|
|
65
|
+
params: z.object({
|
|
66
|
+
workspaceId,
|
|
67
|
+
dryRun: z.boolean().describe('true = validate and return the plan without writing'),
|
|
68
|
+
positions: z
|
|
69
|
+
.array(z.object({
|
|
70
|
+
title,
|
|
71
|
+
remit,
|
|
72
|
+
notAccountableFor: notAccountableFor.optional(),
|
|
73
|
+
holderUserIds,
|
|
74
|
+
}))
|
|
75
|
+
.min(1)
|
|
76
|
+
.max(50),
|
|
77
|
+
}),
|
|
78
|
+
run: (client, params) => client.positions.importMany(params),
|
|
79
|
+
}),
|
|
80
|
+
},
|
|
81
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exponential-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "MCP server for Exponential - connect Claude to your projects, actions, goals, CRM, tickets and more",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
28
28
|
"commander": "^12.0.0",
|
|
29
|
-
"exponential-sdk": "^1.
|
|
29
|
+
"exponential-sdk": "^1.29.0",
|
|
30
30
|
"zod": "^3.22.0",
|
|
31
31
|
"zod-to-json-schema": "^3.25.2"
|
|
32
32
|
},
|