verdo-mcp 1.0.0 → 1.2.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/LICENSE +21 -0
- package/README.md +19 -10
- package/dist/definitions.d.ts +424 -0
- package/dist/definitions.js +288 -0
- package/dist/index.js +13 -27
- package/dist/tools.d.ts +11 -206
- package/dist/tools.js +84 -212
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aethon Digital FZCO
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# Verdo MCP Server
|
|
2
2
|
|
|
3
3
|
MCP server for [Verdo](https://verdo.ink) team decisions. Lets Claude Desktop,
|
|
4
|
-
Claude Code, and other MCP clients
|
|
5
|
-
|
|
4
|
+
Claude Code, and other MCP clients propose team decisions and follow them.
|
|
5
|
+
|
|
6
|
+
**The agent proposes, a person decides.** No tool invites people, sends
|
|
7
|
+
notifications, or closes or settles a decision. A proposed decision opens in
|
|
8
|
+
the workspace's Verdo dashboard with nobody invited; its owner shares the voter
|
|
9
|
+
link with the team and makes the call there.
|
|
6
10
|
|
|
7
11
|
## Setup
|
|
8
12
|
|
|
@@ -29,22 +33,27 @@ decisions programmatically.
|
|
|
29
33
|
|
|
30
34
|
| Tool | Description |
|
|
31
35
|
|---|---|
|
|
32
|
-
| `create_decision` |
|
|
33
|
-
| `check_decision` | Check status,
|
|
36
|
+
| `create_decision` | Propose a decision with a title, options, method and deadline. Nobody is invited or notified; the deadline starts counting at creation |
|
|
37
|
+
| `check_decision` | Check the status, the vote count per option, the owner and the outcome |
|
|
34
38
|
| `list_decisions` | List or search decisions in the workspace |
|
|
35
|
-
| `
|
|
36
|
-
| `
|
|
39
|
+
| `get_close_summary` | Read-only: returns who makes the call, the dashboard link and the tally, so the agent can ask that person to decide |
|
|
40
|
+
| `search_decisions` | Read-only: past decided decisions whose title matches, newest first. Records, not consent |
|
|
41
|
+
| `get_precedent` | Read-only: one past decision's record (outcome, owner, votes per option, rationale if approved for sharing). A historical record, not consent or authorization to repeat it |
|
|
42
|
+
|
|
43
|
+
Removed in 1.1.0: `close_decision` and `add_participants`, and the
|
|
44
|
+
`participants` input on `create_decision`.
|
|
37
45
|
|
|
38
46
|
## Decision methods
|
|
39
47
|
|
|
40
48
|
- **single_choice** — each voter picks one option (default)
|
|
41
49
|
- **ranked_choice** — voters rank options by preference
|
|
42
50
|
- **approval** — voters approve any number of options
|
|
43
|
-
- **
|
|
51
|
+
- **dot** — voters distribute a fixed number of dots
|
|
44
52
|
|
|
45
53
|
## Authority modes
|
|
46
54
|
|
|
47
55
|
- **majority** — the option with the most votes wins (default)
|
|
48
|
-
- **
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
- **consensus** — everyone must agree
|
|
57
|
+
|
|
58
|
+
Owner and approver modes need a named person. Set them up when creating a
|
|
59
|
+
decision in the Verdo dashboard.
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
export declare const METHODS: readonly ["single_choice", "ranked_choice", "approval", "dot"];
|
|
2
|
+
export declare const AUTHORITY_MODES: readonly ["majority", "consensus"];
|
|
3
|
+
export declare const DEFAULT_DEADLINE_HOURS = 48;
|
|
4
|
+
export declare const MAX_DEADLINE_HOURS = 720;
|
|
5
|
+
export declare const MAX_TITLE_LENGTH = 140;
|
|
6
|
+
export declare const MIN_OPTIONS = 2;
|
|
7
|
+
export declare const MAX_OPTIONS = 10;
|
|
8
|
+
export declare const REMOVED_TOOLS: Record<string, string>;
|
|
9
|
+
export interface ProposedArgs {
|
|
10
|
+
title: string;
|
|
11
|
+
options: string[];
|
|
12
|
+
method?: string;
|
|
13
|
+
deadline_hours?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function proposedText(id: string, url: string, args: ProposedArgs): string;
|
|
16
|
+
export declare function formatDecision(d: Record<string, unknown>): string;
|
|
17
|
+
export declare function listText(decisions: Record<string, unknown>[], query?: string): string;
|
|
18
|
+
export declare const PRECEDENT_NOTE = "Past records for reference. Not consent or authorization.";
|
|
19
|
+
export declare const SEARCH_LIMIT_DEFAULT = 10;
|
|
20
|
+
export declare const SEARCH_LIMIT_MAX = 50;
|
|
21
|
+
/** One past decided decision, as lib/precedent.ts returns it. */
|
|
22
|
+
export interface PrecedentItem {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
status: string;
|
|
26
|
+
winner: string | null;
|
|
27
|
+
created_at?: string;
|
|
28
|
+
settled_at: string | null;
|
|
29
|
+
owner_name: string | null;
|
|
30
|
+
rationale?: string | null;
|
|
31
|
+
authority_mode?: string | null;
|
|
32
|
+
execution_authorized: false;
|
|
33
|
+
}
|
|
34
|
+
/** The section create_decision appends when there are past decisions with a similar title. */
|
|
35
|
+
export declare function precedentSection(items: readonly PrecedentItem[]): string;
|
|
36
|
+
export declare function searchText(items: readonly PrecedentItem[], query: string): string;
|
|
37
|
+
export interface PrecedentDetail extends PrecedentItem {
|
|
38
|
+
vote_counts: {
|
|
39
|
+
option: string;
|
|
40
|
+
votes: number;
|
|
41
|
+
}[];
|
|
42
|
+
related: {
|
|
43
|
+
id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
status: string;
|
|
46
|
+
settled_at: string | null;
|
|
47
|
+
}[];
|
|
48
|
+
}
|
|
49
|
+
export declare function precedentText(d: PrecedentDetail): string;
|
|
50
|
+
export declare function closeSummaryText(d: Record<string, unknown>): string;
|
|
51
|
+
export declare function unknownToolText(name: string): string;
|
|
52
|
+
export interface ToolDefinitionOptions {
|
|
53
|
+
/** Per-tool `_meta`, e.g. the remote server's OAuth securitySchemes for ChatGPT. */
|
|
54
|
+
meta?: Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
export declare function toolDefinitions(opts?: ToolDefinitionOptions): ({
|
|
57
|
+
_meta: Record<string, unknown>;
|
|
58
|
+
name: string;
|
|
59
|
+
description: string;
|
|
60
|
+
annotations: {
|
|
61
|
+
title: string;
|
|
62
|
+
readOnlyHint: boolean;
|
|
63
|
+
destructiveHint: boolean;
|
|
64
|
+
idempotentHint: boolean;
|
|
65
|
+
openWorldHint: boolean;
|
|
66
|
+
};
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: "object";
|
|
69
|
+
required: string[];
|
|
70
|
+
properties: {
|
|
71
|
+
title: {
|
|
72
|
+
type: string;
|
|
73
|
+
maxLength: number;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
options: {
|
|
77
|
+
type: string;
|
|
78
|
+
minItems: number;
|
|
79
|
+
maxItems: number;
|
|
80
|
+
items: {
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
method: {
|
|
86
|
+
type: string;
|
|
87
|
+
enum: ("single_choice" | "ranked_choice" | "approval" | "dot")[];
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
deadline_hours: {
|
|
91
|
+
type: string;
|
|
92
|
+
minimum: number;
|
|
93
|
+
maximum: number;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
authority_mode: {
|
|
97
|
+
type: string;
|
|
98
|
+
enum: ("majority" | "consensus")[];
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
anonymous: {
|
|
102
|
+
type: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
id?: undefined;
|
|
106
|
+
query?: undefined;
|
|
107
|
+
limit?: undefined;
|
|
108
|
+
decision_id?: undefined;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
_meta?: undefined;
|
|
113
|
+
name: string;
|
|
114
|
+
description: string;
|
|
115
|
+
annotations: {
|
|
116
|
+
title: string;
|
|
117
|
+
readOnlyHint: boolean;
|
|
118
|
+
destructiveHint: boolean;
|
|
119
|
+
idempotentHint: boolean;
|
|
120
|
+
openWorldHint: boolean;
|
|
121
|
+
};
|
|
122
|
+
inputSchema: {
|
|
123
|
+
type: "object";
|
|
124
|
+
required: string[];
|
|
125
|
+
properties: {
|
|
126
|
+
title: {
|
|
127
|
+
type: string;
|
|
128
|
+
maxLength: number;
|
|
129
|
+
description: string;
|
|
130
|
+
};
|
|
131
|
+
options: {
|
|
132
|
+
type: string;
|
|
133
|
+
minItems: number;
|
|
134
|
+
maxItems: number;
|
|
135
|
+
items: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
description: string;
|
|
139
|
+
};
|
|
140
|
+
method: {
|
|
141
|
+
type: string;
|
|
142
|
+
enum: ("single_choice" | "ranked_choice" | "approval" | "dot")[];
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
deadline_hours: {
|
|
146
|
+
type: string;
|
|
147
|
+
minimum: number;
|
|
148
|
+
maximum: number;
|
|
149
|
+
description: string;
|
|
150
|
+
};
|
|
151
|
+
authority_mode: {
|
|
152
|
+
type: string;
|
|
153
|
+
enum: ("majority" | "consensus")[];
|
|
154
|
+
description: string;
|
|
155
|
+
};
|
|
156
|
+
anonymous: {
|
|
157
|
+
type: string;
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
id?: undefined;
|
|
161
|
+
query?: undefined;
|
|
162
|
+
limit?: undefined;
|
|
163
|
+
decision_id?: undefined;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
} | {
|
|
167
|
+
_meta: Record<string, unknown>;
|
|
168
|
+
name: string;
|
|
169
|
+
description: string;
|
|
170
|
+
annotations: {
|
|
171
|
+
title: string;
|
|
172
|
+
readOnlyHint: boolean;
|
|
173
|
+
destructiveHint: boolean;
|
|
174
|
+
idempotentHint: boolean;
|
|
175
|
+
openWorldHint: boolean;
|
|
176
|
+
};
|
|
177
|
+
inputSchema: {
|
|
178
|
+
type: "object";
|
|
179
|
+
required: string[];
|
|
180
|
+
properties: {
|
|
181
|
+
id: {
|
|
182
|
+
type: string;
|
|
183
|
+
format: string;
|
|
184
|
+
description: string;
|
|
185
|
+
};
|
|
186
|
+
title?: undefined;
|
|
187
|
+
options?: undefined;
|
|
188
|
+
method?: undefined;
|
|
189
|
+
deadline_hours?: undefined;
|
|
190
|
+
authority_mode?: undefined;
|
|
191
|
+
anonymous?: undefined;
|
|
192
|
+
query?: undefined;
|
|
193
|
+
limit?: undefined;
|
|
194
|
+
decision_id?: undefined;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
_meta?: undefined;
|
|
199
|
+
name: string;
|
|
200
|
+
description: string;
|
|
201
|
+
annotations: {
|
|
202
|
+
title: string;
|
|
203
|
+
readOnlyHint: boolean;
|
|
204
|
+
destructiveHint: boolean;
|
|
205
|
+
idempotentHint: boolean;
|
|
206
|
+
openWorldHint: boolean;
|
|
207
|
+
};
|
|
208
|
+
inputSchema: {
|
|
209
|
+
type: "object";
|
|
210
|
+
required: string[];
|
|
211
|
+
properties: {
|
|
212
|
+
id: {
|
|
213
|
+
type: string;
|
|
214
|
+
format: string;
|
|
215
|
+
description: string;
|
|
216
|
+
};
|
|
217
|
+
title?: undefined;
|
|
218
|
+
options?: undefined;
|
|
219
|
+
method?: undefined;
|
|
220
|
+
deadline_hours?: undefined;
|
|
221
|
+
authority_mode?: undefined;
|
|
222
|
+
anonymous?: undefined;
|
|
223
|
+
query?: undefined;
|
|
224
|
+
limit?: undefined;
|
|
225
|
+
decision_id?: undefined;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
} | {
|
|
229
|
+
_meta: Record<string, unknown>;
|
|
230
|
+
name: string;
|
|
231
|
+
description: string;
|
|
232
|
+
annotations: {
|
|
233
|
+
title: string;
|
|
234
|
+
readOnlyHint: boolean;
|
|
235
|
+
destructiveHint: boolean;
|
|
236
|
+
idempotentHint: boolean;
|
|
237
|
+
openWorldHint: boolean;
|
|
238
|
+
};
|
|
239
|
+
inputSchema: {
|
|
240
|
+
type: "object";
|
|
241
|
+
properties: {
|
|
242
|
+
query: {
|
|
243
|
+
type: string;
|
|
244
|
+
description: string;
|
|
245
|
+
maxLength?: undefined;
|
|
246
|
+
};
|
|
247
|
+
title?: undefined;
|
|
248
|
+
options?: undefined;
|
|
249
|
+
method?: undefined;
|
|
250
|
+
deadline_hours?: undefined;
|
|
251
|
+
authority_mode?: undefined;
|
|
252
|
+
anonymous?: undefined;
|
|
253
|
+
id?: undefined;
|
|
254
|
+
limit?: undefined;
|
|
255
|
+
decision_id?: undefined;
|
|
256
|
+
};
|
|
257
|
+
required?: undefined;
|
|
258
|
+
};
|
|
259
|
+
} | {
|
|
260
|
+
_meta?: undefined;
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
annotations: {
|
|
264
|
+
title: string;
|
|
265
|
+
readOnlyHint: boolean;
|
|
266
|
+
destructiveHint: boolean;
|
|
267
|
+
idempotentHint: boolean;
|
|
268
|
+
openWorldHint: boolean;
|
|
269
|
+
};
|
|
270
|
+
inputSchema: {
|
|
271
|
+
type: "object";
|
|
272
|
+
properties: {
|
|
273
|
+
query: {
|
|
274
|
+
type: string;
|
|
275
|
+
description: string;
|
|
276
|
+
maxLength?: undefined;
|
|
277
|
+
};
|
|
278
|
+
title?: undefined;
|
|
279
|
+
options?: undefined;
|
|
280
|
+
method?: undefined;
|
|
281
|
+
deadline_hours?: undefined;
|
|
282
|
+
authority_mode?: undefined;
|
|
283
|
+
anonymous?: undefined;
|
|
284
|
+
id?: undefined;
|
|
285
|
+
limit?: undefined;
|
|
286
|
+
decision_id?: undefined;
|
|
287
|
+
};
|
|
288
|
+
required?: undefined;
|
|
289
|
+
};
|
|
290
|
+
} | {
|
|
291
|
+
_meta: Record<string, unknown>;
|
|
292
|
+
name: string;
|
|
293
|
+
description: string;
|
|
294
|
+
annotations: {
|
|
295
|
+
title: string;
|
|
296
|
+
readOnlyHint: boolean;
|
|
297
|
+
destructiveHint: boolean;
|
|
298
|
+
idempotentHint: boolean;
|
|
299
|
+
openWorldHint: boolean;
|
|
300
|
+
};
|
|
301
|
+
inputSchema: {
|
|
302
|
+
type: "object";
|
|
303
|
+
required: string[];
|
|
304
|
+
properties: {
|
|
305
|
+
query: {
|
|
306
|
+
type: string;
|
|
307
|
+
maxLength: number;
|
|
308
|
+
description: string;
|
|
309
|
+
};
|
|
310
|
+
limit: {
|
|
311
|
+
type: string;
|
|
312
|
+
minimum: number;
|
|
313
|
+
maximum: number;
|
|
314
|
+
description: string;
|
|
315
|
+
};
|
|
316
|
+
title?: undefined;
|
|
317
|
+
options?: undefined;
|
|
318
|
+
method?: undefined;
|
|
319
|
+
deadline_hours?: undefined;
|
|
320
|
+
authority_mode?: undefined;
|
|
321
|
+
anonymous?: undefined;
|
|
322
|
+
id?: undefined;
|
|
323
|
+
decision_id?: undefined;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
} | {
|
|
327
|
+
_meta?: undefined;
|
|
328
|
+
name: string;
|
|
329
|
+
description: string;
|
|
330
|
+
annotations: {
|
|
331
|
+
title: string;
|
|
332
|
+
readOnlyHint: boolean;
|
|
333
|
+
destructiveHint: boolean;
|
|
334
|
+
idempotentHint: boolean;
|
|
335
|
+
openWorldHint: boolean;
|
|
336
|
+
};
|
|
337
|
+
inputSchema: {
|
|
338
|
+
type: "object";
|
|
339
|
+
required: string[];
|
|
340
|
+
properties: {
|
|
341
|
+
query: {
|
|
342
|
+
type: string;
|
|
343
|
+
maxLength: number;
|
|
344
|
+
description: string;
|
|
345
|
+
};
|
|
346
|
+
limit: {
|
|
347
|
+
type: string;
|
|
348
|
+
minimum: number;
|
|
349
|
+
maximum: number;
|
|
350
|
+
description: string;
|
|
351
|
+
};
|
|
352
|
+
title?: undefined;
|
|
353
|
+
options?: undefined;
|
|
354
|
+
method?: undefined;
|
|
355
|
+
deadline_hours?: undefined;
|
|
356
|
+
authority_mode?: undefined;
|
|
357
|
+
anonymous?: undefined;
|
|
358
|
+
id?: undefined;
|
|
359
|
+
decision_id?: undefined;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
} | {
|
|
363
|
+
_meta: Record<string, unknown>;
|
|
364
|
+
name: string;
|
|
365
|
+
description: string;
|
|
366
|
+
annotations: {
|
|
367
|
+
title: string;
|
|
368
|
+
readOnlyHint: boolean;
|
|
369
|
+
destructiveHint: boolean;
|
|
370
|
+
idempotentHint: boolean;
|
|
371
|
+
openWorldHint: boolean;
|
|
372
|
+
};
|
|
373
|
+
inputSchema: {
|
|
374
|
+
type: "object";
|
|
375
|
+
required: string[];
|
|
376
|
+
properties: {
|
|
377
|
+
decision_id: {
|
|
378
|
+
type: string;
|
|
379
|
+
format: string;
|
|
380
|
+
description: string;
|
|
381
|
+
};
|
|
382
|
+
title?: undefined;
|
|
383
|
+
options?: undefined;
|
|
384
|
+
method?: undefined;
|
|
385
|
+
deadline_hours?: undefined;
|
|
386
|
+
authority_mode?: undefined;
|
|
387
|
+
anonymous?: undefined;
|
|
388
|
+
id?: undefined;
|
|
389
|
+
query?: undefined;
|
|
390
|
+
limit?: undefined;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
} | {
|
|
394
|
+
_meta?: undefined;
|
|
395
|
+
name: string;
|
|
396
|
+
description: string;
|
|
397
|
+
annotations: {
|
|
398
|
+
title: string;
|
|
399
|
+
readOnlyHint: boolean;
|
|
400
|
+
destructiveHint: boolean;
|
|
401
|
+
idempotentHint: boolean;
|
|
402
|
+
openWorldHint: boolean;
|
|
403
|
+
};
|
|
404
|
+
inputSchema: {
|
|
405
|
+
type: "object";
|
|
406
|
+
required: string[];
|
|
407
|
+
properties: {
|
|
408
|
+
decision_id: {
|
|
409
|
+
type: string;
|
|
410
|
+
format: string;
|
|
411
|
+
description: string;
|
|
412
|
+
};
|
|
413
|
+
title?: undefined;
|
|
414
|
+
options?: undefined;
|
|
415
|
+
method?: undefined;
|
|
416
|
+
deadline_hours?: undefined;
|
|
417
|
+
authority_mode?: undefined;
|
|
418
|
+
anonymous?: undefined;
|
|
419
|
+
id?: undefined;
|
|
420
|
+
query?: undefined;
|
|
421
|
+
limit?: undefined;
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
})[];
|