exponential-mcp 0.15.0 → 0.17.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/dist/domains/decisions.js +21 -7
- package/dist/domains/labels.d.ts +4 -0
- package/dist/domains/labels.js +26 -9
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ const DECISION_SOURCES = ['MEETING', 'MANUAL', 'AGENT'];
|
|
|
5
5
|
const decisionId = id('Decision');
|
|
6
6
|
const meetingId = id('Meeting (transcription session)');
|
|
7
7
|
const clearable = (what) => z.string().nullable().optional().describe(`${what} (null to clear)`);
|
|
8
|
+
const TITLE_DESCRIPTION = 'The outcome in six words or fewer, e.g. "Text place beats Dataminr location" — state the outcome, not the topic. The row text in every decision list, with the statement under it. Optional; six words is advice, not enforced';
|
|
8
9
|
/** Scope links shared by create and update; all nullable to clear. */
|
|
9
10
|
const scopeFields = {
|
|
10
11
|
productId: clearable('Product ID'),
|
|
@@ -14,11 +15,11 @@ const scopeFields = {
|
|
|
14
15
|
};
|
|
15
16
|
export const decisions = {
|
|
16
17
|
name: 'decisions',
|
|
17
|
-
description: 'The Decision Log: decisions and open questions (an open question is a decision with status OPEN — there is no separate model), optionally sourced from a meeting with transcript evidence. Meetings are in `meetings`; decisions can be linked to `tickets` and `
|
|
18
|
+
description: 'The Decision Log: decisions and open questions (an open question is a decision with status OPEN — there is no separate model), optionally sourced from a meeting with transcript evidence. Meetings are in `meetings`; decisions can be linked to `tickets`, `features` and a feature’s scopes (`scopes`) as "implemented by". A decision has a short `title` (the outcome in six words or fewer) beside its full `statement`. Decisions are filed under Pillars and labels: set them through `labels` set_for_entity with entityType "decision" (create takes no tags, get returns none — read them with `labels` list_for_entity); list rows carry `tags` and list filters by tagIds.',
|
|
18
19
|
operations: {
|
|
19
20
|
list: op({
|
|
20
21
|
effect: 'read',
|
|
21
|
-
summary: 'Confirmed decisions in a workspace, newest decided first. Never includes drafts (see list_for_meeting).',
|
|
22
|
+
summary: 'Confirmed decisions in a workspace, newest decided first. Never includes drafts (see list_for_meeting). Every row has tags: [{ id, name, slug, color, category, archivedAt }] — category "pillar" is a Pillar, anything else a label. tagIds filters to decisions carrying ANY of the given Pillars or labels (find ids with `labels` list, category "pillar" for Pillars).',
|
|
22
23
|
params: z.object({
|
|
23
24
|
workspaceId,
|
|
24
25
|
statuses: z.array(z.enum(DECISION_STATUSES)).optional(),
|
|
@@ -29,15 +30,20 @@ export const decisions = {
|
|
|
29
30
|
.optional()
|
|
30
31
|
.describe('With a real productId: also include decisions that have no product'),
|
|
31
32
|
projectId: id('Project').optional(),
|
|
32
|
-
search: z.string().max(200).optional().describe('Free text over statement and body'),
|
|
33
|
+
search: z.string().max(200).optional().describe('Free text over title, statement and body'),
|
|
33
34
|
number: z.number().int().min(1).optional().describe('One decision by its workspace sequence number — D-0003 is 3'),
|
|
35
|
+
tagIds: z
|
|
36
|
+
.array(id('Tag'))
|
|
37
|
+
.max(50)
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Only decisions carrying ANY of these Pillar or label ids (max 50)'),
|
|
34
40
|
limit: z.number().int().min(1).max(500).optional().describe('Unset returns everything visible'),
|
|
35
41
|
}),
|
|
36
42
|
run: (client, params) => client.decisions.list(params),
|
|
37
43
|
}),
|
|
38
44
|
get: op({
|
|
39
45
|
effect: 'read',
|
|
40
|
-
summary: 'Get one decision with its deciders, evidence, links and supersession chain.',
|
|
46
|
+
summary: 'Get one decision with its deciders, evidence, links and supersession chain. Its Pillars and labels are not included: read them with `labels` list_for_entity (entityType "decision").',
|
|
41
47
|
params: z.object({ workspaceId, decisionId }),
|
|
42
48
|
run: (client, { workspaceId, decisionId }) => client.decisions.get(workspaceId, decisionId),
|
|
43
49
|
}),
|
|
@@ -61,9 +67,10 @@ export const decisions = {
|
|
|
61
67
|
}),
|
|
62
68
|
create: op({
|
|
63
69
|
effect: 'write',
|
|
64
|
-
summary: 'Log a decision (status defaults to PROPOSED). Pass status "OPEN" for an open question and transcriptionSessionId to attach it to a meeting.',
|
|
70
|
+
summary: 'Log a decision (status defaults to PROPOSED). Give it a title: the outcome in six words or fewer. Pass status "OPEN" for an open question and transcriptionSessionId to attach it to a meeting. Takes no Pillars or labels: file it afterwards with `labels` set_for_entity (entityType "decision", entityId = the returned id).',
|
|
65
71
|
params: z.object({
|
|
66
72
|
workspaceId,
|
|
73
|
+
title: z.string().max(120).nullable().optional().describe(TITLE_DESCRIPTION),
|
|
67
74
|
statement: z.string().max(500).describe('The decision itself, or the open question'),
|
|
68
75
|
body: z.string().max(20000).nullable().optional().describe('Markdown detail — context, alternatives, consequences'),
|
|
69
76
|
status: z
|
|
@@ -107,6 +114,7 @@ export const decisions = {
|
|
|
107
114
|
params: z.object({
|
|
108
115
|
workspaceId,
|
|
109
116
|
decisionId,
|
|
117
|
+
title: z.string().max(120).nullable().optional().describe(`${TITLE_DESCRIPTION}. null clears it. Like statement and body, an agent may set it on a draft but not change it on a confirmed decision (FORBIDDEN): propose the change as a new draft instead`),
|
|
110
118
|
statement: z.string().max(500).optional(),
|
|
111
119
|
body: clearable('Markdown body'),
|
|
112
120
|
decidedAt: date('When it was decided').nullable().optional(),
|
|
@@ -143,12 +151,18 @@ export const decisions = {
|
|
|
143
151
|
params: z.object({ workspaceId, decisionId, featureId: id('Feature') }),
|
|
144
152
|
run: (client, { workspaceId, decisionId, featureId }) => client.decisions.linkFeature(workspaceId, decisionId, featureId),
|
|
145
153
|
}),
|
|
154
|
+
link_scope: op({
|
|
155
|
+
effect: 'write',
|
|
156
|
+
summary: 'Mark a decision as "implemented by" one of a feature’s scopes (V1, V2, ...) — narrower than link_feature. The decision also shows on the feature’s Decisions block with the scope’s version, and groups under the scope on a Pillar page. Idempotent: an existing link is returned. Find scope IDs with `scopes`.',
|
|
157
|
+
params: z.object({ workspaceId, decisionId, scopeId: id('Feature scope') }),
|
|
158
|
+
run: (client, { workspaceId, decisionId, scopeId }) => client.decisions.linkScope(workspaceId, decisionId, scopeId),
|
|
159
|
+
}),
|
|
146
160
|
unlink: op({
|
|
147
161
|
effect: 'write',
|
|
148
|
-
summary: 'Remove one ticket
|
|
162
|
+
summary: 'Remove one ticket, feature or scope link.',
|
|
149
163
|
params: z.object({
|
|
150
164
|
workspaceId,
|
|
151
|
-
linkId: z.string().describe('DecisionLink ID from the decision’s links — not the ticket or
|
|
165
|
+
linkId: z.string().describe('DecisionLink ID from the decision’s links — not the ticket, feature or scope ID'),
|
|
152
166
|
}),
|
|
153
167
|
run: (client, { workspaceId, linkId }) => client.decisions.unlink(workspaceId, linkId),
|
|
154
168
|
}),
|
package/dist/domains/labels.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { type Domain } from './framework.js';
|
|
2
|
+
/** The server's tagEntityTypeSchema, in its order. */
|
|
3
|
+
export declare const ENTITY_TYPES: readonly ["action", "ticket", "feature", "epic", "project", "goal", "resource", "recurringTask", "decision"];
|
|
4
|
+
/** Entity types that take Pillars only; the server rejects a plain label on them. */
|
|
5
|
+
export declare const PILLAR_ONLY_ENTITY_TYPES: readonly ["project", "goal", "resource", "recurringTask"];
|
|
2
6
|
export declare const labels: Domain;
|
package/dist/domains/labels.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { id, op, workspaceId } from './framework.js';
|
|
3
|
-
|
|
3
|
+
/** The server's tagEntityTypeSchema, in its order. */
|
|
4
|
+
export const ENTITY_TYPES = [
|
|
5
|
+
'action',
|
|
6
|
+
'ticket',
|
|
7
|
+
'feature',
|
|
8
|
+
'epic',
|
|
9
|
+
'project',
|
|
10
|
+
'goal',
|
|
11
|
+
'resource',
|
|
12
|
+
'recurringTask',
|
|
13
|
+
'decision',
|
|
14
|
+
];
|
|
15
|
+
/** Entity types that take Pillars only; the server rejects a plain label on them. */
|
|
16
|
+
export const PILLAR_ONLY_ENTITY_TYPES = ['project', 'goal', 'resource', 'recurringTask'];
|
|
17
|
+
const ENTITY_TYPE_HELP = 'action, ticket, feature, epic and decision take Pillars and labels; project, goal, resource and recurringTask take Pillars only.';
|
|
18
|
+
const entityId = z
|
|
19
|
+
.string()
|
|
20
|
+
.describe('ID of the entity. A decision takes its CUID (not its D-0006 label); a goal its integer id as a string.');
|
|
4
21
|
const TAG_COLORS = [
|
|
5
22
|
'avatar-red',
|
|
6
23
|
'avatar-teal',
|
|
@@ -35,11 +52,11 @@ const category = z
|
|
|
35
52
|
.describe('Tag category; null means a plain label');
|
|
36
53
|
export const labels = {
|
|
37
54
|
name: 'labels',
|
|
38
|
-
description: 'Labels (tags)
|
|
55
|
+
description: 'Labels and Pillars (both are tags). A tag whose category is "pillar" is a Pillar (a standing area of the workspace); any other tag is a label. Actions, tickets, features, epics and decisions (`decisions`) take Pillars and labels; projects, goals, resources and recurring tasks take Pillars only. There are global system tags and per-workspace tags. Creating or promoting a Pillar needs a workspace admin, in the app.',
|
|
39
56
|
operations: {
|
|
40
57
|
list: op({
|
|
41
58
|
effect: 'read',
|
|
42
|
-
summary: 'List available tags as { globalTags, workspaceTags, allTags }. Without workspaceId, workspaceTags covers every workspace you belong to. Omit category for all categories; null for plain labels only.',
|
|
59
|
+
summary: 'List available tags as { globalTags, workspaceTags, allTags }. Without workspaceId, workspaceTags covers every workspace you belong to. Omit category for all categories; "pillar" for Pillars only; null for plain labels only.',
|
|
43
60
|
params: z.object({
|
|
44
61
|
workspaceId: workspaceId.optional(),
|
|
45
62
|
category,
|
|
@@ -60,20 +77,20 @@ export const labels = {
|
|
|
60
77
|
}),
|
|
61
78
|
set_for_entity: op({
|
|
62
79
|
effect: 'write',
|
|
63
|
-
summary:
|
|
80
|
+
summary: `REPLACE the full tag set (Pillars and labels together) on an entity; an empty list clears it. To add or remove one tag, call list_for_entity first and send the whole new set. Tags must be global or from the entity’s workspace. ${ENTITY_TYPE_HELP} To file a decision under a Pillar: entityType "decision" with the decision's id (decisions.create takes no tags).`,
|
|
64
81
|
params: z.object({
|
|
65
|
-
entityType: z.enum(ENTITY_TYPES),
|
|
66
|
-
entityId
|
|
82
|
+
entityType: z.enum(ENTITY_TYPES).describe(ENTITY_TYPE_HELP),
|
|
83
|
+
entityId,
|
|
67
84
|
tagIds: z.array(id('Tag')),
|
|
68
85
|
}),
|
|
69
86
|
run: (client, params) => client.labels.setEntityTags(params),
|
|
70
87
|
}),
|
|
71
88
|
list_for_entity: op({
|
|
72
89
|
effect: 'read',
|
|
73
|
-
summary:
|
|
90
|
+
summary: `List the tags (Pillars and labels) on an entity. A decision's tags are read here: decisions.get returns none. ${ENTITY_TYPE_HELP}`,
|
|
74
91
|
params: z.object({
|
|
75
|
-
entityType: z.enum(ENTITY_TYPES),
|
|
76
|
-
entityId
|
|
92
|
+
entityType: z.enum(ENTITY_TYPES).describe(ENTITY_TYPE_HELP),
|
|
93
|
+
entityId,
|
|
77
94
|
}),
|
|
78
95
|
run: (client, params) => client.labels.listForEntity(params),
|
|
79
96
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exponential-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
49
49
|
"commander": "^12.0.0",
|
|
50
|
-
"exponential-sdk": "^1.
|
|
50
|
+
"exponential-sdk": "^1.36.0",
|
|
51
51
|
"zod": "^3.22.0",
|
|
52
52
|
"zod-to-json-schema": "^3.25.2"
|
|
53
53
|
},
|