exponential-mcp 0.15.0 → 0.16.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.
|
@@ -14,11 +14,11 @@ const scopeFields = {
|
|
|
14
14
|
};
|
|
15
15
|
export const decisions = {
|
|
16
16
|
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 `features` as "implemented by".',
|
|
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 `features` as "implemented by". 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
18
|
operations: {
|
|
19
19
|
list: op({
|
|
20
20
|
effect: 'read',
|
|
21
|
-
summary: 'Confirmed decisions in a workspace, newest decided first. Never includes drafts (see list_for_meeting).',
|
|
21
|
+
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
22
|
params: z.object({
|
|
23
23
|
workspaceId,
|
|
24
24
|
statuses: z.array(z.enum(DECISION_STATUSES)).optional(),
|
|
@@ -31,13 +31,18 @@ export const decisions = {
|
|
|
31
31
|
projectId: id('Project').optional(),
|
|
32
32
|
search: z.string().max(200).optional().describe('Free text over statement and body'),
|
|
33
33
|
number: z.number().int().min(1).optional().describe('One decision by its workspace sequence number — D-0003 is 3'),
|
|
34
|
+
tagIds: z
|
|
35
|
+
.array(id('Tag'))
|
|
36
|
+
.max(50)
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Only decisions carrying ANY of these Pillar or label ids (max 50)'),
|
|
34
39
|
limit: z.number().int().min(1).max(500).optional().describe('Unset returns everything visible'),
|
|
35
40
|
}),
|
|
36
41
|
run: (client, params) => client.decisions.list(params),
|
|
37
42
|
}),
|
|
38
43
|
get: op({
|
|
39
44
|
effect: 'read',
|
|
40
|
-
summary: 'Get one decision with its deciders, evidence, links and supersession chain.',
|
|
45
|
+
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
46
|
params: z.object({ workspaceId, decisionId }),
|
|
42
47
|
run: (client, { workspaceId, decisionId }) => client.decisions.get(workspaceId, decisionId),
|
|
43
48
|
}),
|
|
@@ -61,7 +66,7 @@ export const decisions = {
|
|
|
61
66
|
}),
|
|
62
67
|
create: op({
|
|
63
68
|
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.',
|
|
69
|
+
summary: 'Log a decision (status defaults to PROPOSED). 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
70
|
params: z.object({
|
|
66
71
|
workspaceId,
|
|
67
72
|
statement: z.string().max(500).describe('The decision itself, or the open question'),
|
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.16.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.35.0",
|
|
51
51
|
"zod": "^3.22.0",
|
|
52
52
|
"zod-to-json-schema": "^3.25.2"
|
|
53
53
|
},
|