verdo-mcp 1.0.0 → 1.1.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 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 create, check, close, and manage team
5
- decisions programmatically.
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,25 @@ decisions programmatically.
29
33
 
30
34
  | Tool | Description |
31
35
  |---|---|
32
- | `create_decision` | Create a team decision with title, options, method, deadline, and participants |
33
- | `check_decision` | Check status, votes, and outcome of a decision |
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
- | `close_decision` | Close a decision now, with optional winner override |
36
- | `add_participants` | Add voters to an active decision by email |
39
+ | `request_close` | Read-only: returns who makes the call, the dashboard link and the tally, so the agent can ask that person to decide |
40
+
41
+ Removed in 1.1.0: `close_decision` and `add_participants`, and the
42
+ `participants` input on `create_decision`.
37
43
 
38
44
  ## Decision methods
39
45
 
40
46
  - **single_choice** — each voter picks one option (default)
41
47
  - **ranked_choice** — voters rank options by preference
42
48
  - **approval** — voters approve any number of options
43
- - **dot_voting** — voters distribute a fixed number of dots
49
+ - **dot** — voters distribute a fixed number of dots
44
50
 
45
51
  ## Authority modes
46
52
 
47
53
  - **majority** — the option with the most votes wins (default)
48
- - **unanimous** — all voters must agree
49
- - **owner_decides** — the workspace owner makes the final call
50
- - **approver** — designated approver(s) must sign off (Pro/Business)
54
+ - **consensus** — everyone must agree
55
+
56
+ Owner and approver modes need a named person. Set them up when creating a
57
+ decision in the Verdo dashboard.
package/dist/index.js CHANGED
@@ -1,55 +1,41 @@
1
1
  #!/usr/bin/env node
2
2
  // Verdo MCP server, stdio transport, for Claude Desktop and Claude Code.
3
- // Auth: workspace API key stored at ~/.verdo-mcp/api_key (one key, no quotes).
3
+ // Auth: workspace API key from user_config (plugin.json) or ~/.verdo-mcp/api_key fallback.
4
4
  // The server wraps the Zapier REST API (verdo.ink/api/zapier/*).
5
+ // The agent proposes, a person decides: see the guardrail note in tools.ts.
5
6
  import { readFile } from "node:fs/promises";
6
7
  import { homedir } from "node:os";
7
8
  import { join } from "node:path";
8
9
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
9
10
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
10
11
  import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
11
- import { addParticipantsTool, checkDecision, closeDecision, createDecision, listDecisions, toolDefinitions, } from "./tools.js";
12
+ import { callTool, toolDefinitions } from "./tools.js";
13
+ // The API key comes from user_config (set via the plugin's sensitive config prompt) or,
14
+ // as a fallback for standalone installs, from a file at ~/.verdo-mcp/api_key.
12
15
  const KEY_FILE = join(homedir(), ".verdo-mcp", "api_key");
13
16
  const keyStore = {
14
17
  async get() {
18
+ // Prefer the env var set by Claude's user_config mechanism
19
+ const fromEnv = process.env.VERDO_API_KEY ?? process.env.verdo_api_key;
20
+ if (fromEnv && fromEnv.trim().length > 0)
21
+ return fromEnv.trim();
22
+ // Fallback: file-based key for standalone / non-plugin installs
15
23
  try {
16
24
  const key = (await readFile(KEY_FILE, "utf8")).trim();
17
25
  return key.length > 0 ? key : null;
18
26
  }
19
27
  catch {
20
- return null; // no file yet
28
+ return null;
21
29
  }
22
30
  },
23
31
  };
24
- const server = new Server({ name: "verdo-team-decisions", version: "1.0.0" }, { capabilities: { tools: {} } });
32
+ const server = new Server({ name: "verdo-team-decisions", version: "1.1.0" }, { capabilities: { tools: {} } });
25
33
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
26
34
  tools: toolDefinitions(),
27
35
  }));
28
36
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
29
37
  const { name, arguments: args } = request.params;
30
- const a = (args ?? {});
31
- switch (name) {
32
- case "create_decision":
33
- return createDecision({
34
- title: String(a.title ?? ""),
35
- options: a.options ?? [],
36
- method: a.method,
37
- deadline_hours: a.deadline_hours,
38
- authority_mode: a.authority_mode,
39
- participants: a.participants,
40
- anonymous: a.anonymous,
41
- }, keyStore);
42
- case "check_decision":
43
- return checkDecision({ id: String(a.id ?? "") }, keyStore);
44
- case "list_decisions":
45
- return listDecisions({ query: a.query }, keyStore);
46
- case "close_decision":
47
- return closeDecision({ id: String(a.id ?? ""), winner_option_id: a.winner_option_id }, keyStore);
48
- case "add_participants":
49
- return addParticipantsTool({ id: String(a.id ?? ""), emails: a.emails ?? [] }, keyStore);
50
- default:
51
- return { content: [{ type: "text", text: `Unknown tool: ${name}` }], isError: true };
52
- }
38
+ return callTool(name, (args ?? {}), keyStore);
53
39
  });
54
40
  async function main() {
55
41
  await server.connect(new StdioServerTransport());
package/dist/tools.d.ts CHANGED
@@ -8,13 +8,14 @@ type Text = {
8
8
  }[];
9
9
  isError?: boolean;
10
10
  };
11
+ export declare const METHODS: readonly ["single_choice", "ranked_choice", "approval", "dot"];
12
+ export declare const AUTHORITY_MODES: readonly ["majority", "consensus"];
11
13
  export declare function createDecision(args: {
12
14
  title: string;
13
15
  options: string[];
14
16
  method?: string;
15
17
  deadline_hours?: number;
16
18
  authority_mode?: string;
17
- participants?: string[];
18
19
  anonymous?: boolean;
19
20
  }, store: ApiKeyStore): Promise<Text>;
20
21
  export declare function checkDecision(args: {
@@ -23,14 +24,10 @@ export declare function checkDecision(args: {
23
24
  export declare function listDecisions(args: {
24
25
  query?: string;
25
26
  }, store: ApiKeyStore): Promise<Text>;
26
- export declare function closeDecision(args: {
27
+ export declare function requestClose(args: {
27
28
  id: string;
28
- winner_option_id?: string;
29
- }, store: ApiKeyStore): Promise<Text>;
30
- export declare function addParticipantsTool(args: {
31
- id: string;
32
- emails: string[];
33
29
  }, store: ApiKeyStore): Promise<Text>;
30
+ export declare function callTool(name: string, a: Record<string, unknown>, store: ApiKeyStore): Promise<Text>;
34
31
  export declare function toolDefinitions(): ({
35
32
  name: string;
36
33
  description: string;
@@ -61,7 +58,7 @@ export declare function toolDefinitions(): ({
61
58
  };
62
59
  method: {
63
60
  type: string;
64
- enum: string[];
61
+ enum: ("single_choice" | "ranked_choice" | "approval" | "dot")[];
65
62
  description: string;
66
63
  };
67
64
  deadline_hours: {
@@ -72,15 +69,7 @@ export declare function toolDefinitions(): ({
72
69
  };
73
70
  authority_mode: {
74
71
  type: string;
75
- enum: string[];
76
- description: string;
77
- };
78
- participants: {
79
- type: string;
80
- items: {
81
- type: string;
82
- format: string;
83
- };
72
+ enum: ("majority" | "consensus")[];
84
73
  description: string;
85
74
  };
86
75
  anonymous: {
@@ -89,8 +78,6 @@ export declare function toolDefinitions(): ({
89
78
  };
90
79
  id?: undefined;
91
80
  query?: undefined;
92
- winner_option_id?: undefined;
93
- emails?: undefined;
94
81
  };
95
82
  };
96
83
  } | {
@@ -117,11 +104,8 @@ export declare function toolDefinitions(): ({
117
104
  method?: undefined;
118
105
  deadline_hours?: undefined;
119
106
  authority_mode?: undefined;
120
- participants?: undefined;
121
107
  anonymous?: undefined;
122
108
  query?: undefined;
123
- winner_option_id?: undefined;
124
- emails?: undefined;
125
109
  };
126
110
  };
127
111
  } | {
@@ -146,87 +130,10 @@ export declare function toolDefinitions(): ({
146
130
  method?: undefined;
147
131
  deadline_hours?: undefined;
148
132
  authority_mode?: undefined;
149
- participants?: undefined;
150
133
  anonymous?: undefined;
151
134
  id?: undefined;
152
- winner_option_id?: undefined;
153
- emails?: undefined;
154
135
  };
155
136
  required?: undefined;
156
137
  };
157
- } | {
158
- name: string;
159
- description: string;
160
- annotations: {
161
- title: string;
162
- readOnlyHint: boolean;
163
- destructiveHint: boolean;
164
- idempotentHint: boolean;
165
- openWorldHint: boolean;
166
- };
167
- inputSchema: {
168
- type: "object";
169
- required: string[];
170
- properties: {
171
- id: {
172
- type: string;
173
- format: string;
174
- description: string;
175
- };
176
- winner_option_id: {
177
- type: string;
178
- format: string;
179
- description: string;
180
- };
181
- title?: undefined;
182
- options?: undefined;
183
- method?: undefined;
184
- deadline_hours?: undefined;
185
- authority_mode?: undefined;
186
- participants?: undefined;
187
- anonymous?: undefined;
188
- query?: undefined;
189
- emails?: undefined;
190
- };
191
- };
192
- } | {
193
- name: string;
194
- description: string;
195
- annotations: {
196
- title: string;
197
- readOnlyHint: boolean;
198
- destructiveHint: boolean;
199
- idempotentHint: boolean;
200
- openWorldHint: boolean;
201
- };
202
- inputSchema: {
203
- type: "object";
204
- required: string[];
205
- properties: {
206
- id: {
207
- type: string;
208
- format: string;
209
- description: string;
210
- };
211
- emails: {
212
- type: string;
213
- minItems: number;
214
- items: {
215
- type: string;
216
- format: string;
217
- };
218
- description: string;
219
- };
220
- title?: undefined;
221
- options?: undefined;
222
- method?: undefined;
223
- deadline_hours?: undefined;
224
- authority_mode?: undefined;
225
- participants?: undefined;
226
- anonymous?: undefined;
227
- query?: undefined;
228
- winner_option_id?: undefined;
229
- };
230
- };
231
138
  })[];
232
139
  export {};
package/dist/tools.js CHANGED
@@ -1,5 +1,9 @@
1
1
  // Verdo MCP tools — wraps the Zapier REST API (apps/verdo-web/app/api/zapier/*)
2
2
  // with agent-friendly descriptions and error messages that help agents self-remedy.
3
+ //
4
+ // Guardrail: the agent proposes, a person decides. No tool here invites, notifies,
5
+ // settles, closes or cancels. create_decision is the only write, and it sends no
6
+ // participants; request_close only reads and points the agent at a person.
3
7
  const VERDO_API = process.env.VERDO_API_URL ?? "https://verdo.ink/api";
4
8
  const text = (t, isError = false) => ({
5
9
  content: [{ type: "text", text: t }],
@@ -35,10 +39,15 @@ function agentError(action, status, data) {
35
39
  return text(`Could not ${action}: ${enriched}${retry}`, true);
36
40
  }
37
41
  // ---- Tool implementations ----
42
+ // Values the API accepts (DB checks in migrations 0041 and 0042). Owner and approver
43
+ // modes need a named person, which this API cannot set, so they are not offered.
44
+ export const METHODS = ["single_choice", "ranked_choice", "approval", "dot"];
45
+ export const AUTHORITY_MODES = ["majority", "consensus"];
38
46
  export async function createDecision(args, store) {
39
47
  const apiKey = await store.get();
40
48
  if (!apiKey)
41
49
  return noKeyError();
50
+ // Never send participants: inviting people is a person's call, made in the dashboard.
42
51
  const { ok, status, data } = await verdoFetch("/zapier/decisions", apiKey, {
43
52
  method: "POST",
44
53
  body: JSON.stringify({
@@ -47,14 +56,13 @@ export async function createDecision(args, store) {
47
56
  method: args.method ?? "single_choice",
48
57
  deadline_hours: args.deadline_hours ?? 48,
49
58
  authority_mode: args.authority_mode ?? "majority",
50
- participants: args.participants ?? [],
51
59
  anonymous: args.anonymous ?? false,
52
60
  }),
53
61
  });
54
62
  if (!ok)
55
63
  return agentError("create the decision", status, data);
56
64
  const lines = [
57
- `Decision created.`,
65
+ `Decision proposed.`,
58
66
  ``,
59
67
  `ID: ${data.id}`,
60
68
  `Dashboard: ${data.url}`,
@@ -62,11 +70,10 @@ export async function createDecision(args, store) {
62
70
  `Options: ${args.options.join(", ")}`,
63
71
  `Method: ${args.method ?? "single_choice"}`,
64
72
  `Deadline: ${args.deadline_hours ?? 48} hours from now`,
73
+ ``,
74
+ `Nobody has been invited or notified. Send the dashboard link to the person who owns this decision: they share the voter link with the team and make the call.`,
75
+ `Use check_decision with id "${data.id}" to see progress.`,
65
76
  ];
66
- if (args.participants?.length) {
67
- lines.push(`Participants: ${args.participants.join(", ")}`);
68
- }
69
- lines.push(``, `Use check_decision with id "${data.id}" to see vote progress.`);
70
77
  return text(lines.join("\n"));
71
78
  }
72
79
  export async function checkDecision(args, store) {
@@ -99,69 +106,96 @@ export async function listDecisions(args, store) {
99
106
  }
100
107
  return text(lines.join("\n"));
101
108
  }
102
- export async function closeDecision(args, store) {
109
+ // Read-only. An agent never closes a decision: this tells it who makes the call and
110
+ // where. It only GETs the decision; no mutating route is called.
111
+ export async function requestClose(args, store) {
103
112
  const apiKey = await store.get();
104
113
  if (!apiKey)
105
114
  return noKeyError();
106
- const { ok, status, data } = await verdoFetch(`/zapier/decisions/${encodeURIComponent(args.id)}/close`, apiKey, {
107
- method: "POST",
108
- body: JSON.stringify(args.winner_option_id ? { winner_option_id: args.winner_option_id } : {}),
109
- });
115
+ const { ok, status, data } = await verdoFetch(`/zapier/decisions/${encodeURIComponent(args.id)}`, apiKey);
110
116
  if (!ok)
111
- return agentError("close the decision", status, data);
117
+ return agentError("read the decision", status, data);
112
118
  const d = data.decision;
113
119
  if (!d)
114
- return text("Decision closed.", false);
115
- return text(`Decision closed.\n\n${formatDecision(d)}`);
120
+ return text("Decision data not available.", true);
121
+ if (d.status !== "active") {
122
+ return text(`This decision is no longer open (status: ${d.status}). Nothing to close.\n\n${formatDecision(d)}`);
123
+ }
124
+ const owner = d.owner;
125
+ const who = owner?.name || owner?.email
126
+ ? [owner.name, owner.email ? `<${owner.email}>` : null].filter(Boolean).join(" ")
127
+ : "the person who owns this decision in Verdo (no owner is named on it)";
128
+ return text([
129
+ `Agents cannot close Verdo decisions. A person makes the call.`,
130
+ ``,
131
+ `Ask ${who} to open ${d.url} and close it there.`,
132
+ `Share the current tally below so they can decide.`,
133
+ ``,
134
+ formatDecision(d),
135
+ ].join("\n"));
116
136
  }
117
- export async function addParticipantsTool(args, store) {
118
- const apiKey = await store.get();
119
- if (!apiKey)
120
- return noKeyError();
121
- const { ok, status, data } = await verdoFetch(`/zapier/decisions/${encodeURIComponent(args.id)}/participants`, apiKey, { method: "POST", body: JSON.stringify({ emails: args.emails }) });
122
- if (!ok)
123
- return agentError("add participants", status, data);
124
- return text(`Added ${data.added ?? args.emails.length} participant${data.added === 1 ? "" : "s"} to the decision.`);
137
+ // ---- Dispatch ----
138
+ const REMOVED_TOOLS = {
139
+ close_decision: "close_decision was removed in 1.1.0: agents cannot close decisions. Use request_close to find out who makes the call.",
140
+ add_participants: "add_participants was removed in 1.1.0: agents cannot invite people. Send the dashboard link to the decision's owner; they share the voter link.",
141
+ };
142
+ export async function callTool(name, a, store) {
143
+ switch (name) {
144
+ case "create_decision":
145
+ return createDecision({
146
+ title: String(a.title ?? ""),
147
+ options: a.options ?? [],
148
+ method: a.method,
149
+ deadline_hours: a.deadline_hours,
150
+ authority_mode: a.authority_mode,
151
+ anonymous: a.anonymous,
152
+ }, store);
153
+ case "check_decision":
154
+ return checkDecision({ id: String(a.id ?? "") }, store);
155
+ case "list_decisions":
156
+ return listDecisions({ query: a.query }, store);
157
+ case "request_close":
158
+ return requestClose({ id: String(a.id ?? "") }, store);
159
+ default: {
160
+ const tools = toolDefinitions().map((t) => t.name).join(", ");
161
+ return text(`${REMOVED_TOOLS[name] ?? `Unknown tool: ${name}.`} Available tools: ${tools}.`, true);
162
+ }
163
+ }
125
164
  }
126
165
  // ---- Helpers ----
166
+ // Fields follow the API's DecisionPayload (packages/integrations-zapier/src/events/types.ts).
127
167
  function formatDecision(d) {
128
168
  const lines = [
129
169
  `Decision: ${d.title}`,
130
- `Status: ${d.status ?? d.lifecycle_status}`,
170
+ `Status: ${d.status}`,
131
171
  `Method: ${d.method}`,
132
- `ID: ${d.id}`,
172
+ `ID: ${d.decision_id ?? d.id}`,
133
173
  ];
134
- if (d.deadline)
135
- lines.push(`Deadline: ${d.deadline}`);
136
- if (d.winner)
137
- lines.push(`Winner: ${d.winner.label ?? d.winner}`);
138
- if (d.outcome_status)
139
- lines.push(`Outcome: ${d.outcome_status}`);
140
- const options = d.options;
141
- if (options?.length) {
174
+ if (d.outcome)
175
+ lines.push(`Outcome: ${d.outcome}`);
176
+ if (d.decided_at)
177
+ lines.push(`Decided at: ${d.decided_at}`);
178
+ const owner = d.owner;
179
+ if (owner?.name || owner?.email)
180
+ lines.push(`Owner: ${owner.name ?? owner.email}`);
181
+ const breakdown = d.vote_breakdown;
182
+ if (breakdown?.length) {
142
183
  lines.push(``, `Options:`);
143
- for (const o of options) {
144
- const votes = typeof o.vote_count === "number" ? ` (${o.vote_count} vote${o.vote_count === 1 ? "" : "s"})` : "";
145
- lines.push(` - ${o.label}${votes}`);
184
+ for (const o of breakdown) {
185
+ lines.push(` - ${o.option} (${o.votes} vote${o.votes === 1 ? "" : "s"})`);
146
186
  }
147
187
  }
148
- const participants = d.participants;
149
- if (participants?.length) {
150
- lines.push(``, `Participants: ${participants.map((p) => p.email ?? p.name).join(", ")}`);
151
- }
152
188
  if (d.url)
153
189
  lines.push(``, `Dashboard: ${d.url}`);
154
190
  return lines.join("\n");
155
191
  }
156
192
  function noKeyError() {
157
193
  return text([
158
- "No Verdo API key found. Set one up:",
194
+ "No Verdo API key found.",
159
195
  "",
160
- "1. Go to verdo.ink/dashboard/settings > API Keys > Create",
161
- "2. Copy the key (shown once)",
162
- "3. Save it to ~/.verdo-mcp/api_key",
196
+ "Set your Verdo API key in the plugin settings (verdo_api_key), or set VERDO_API_KEY, or save it to ~/.verdo-mcp/api_key.",
163
197
  "",
164
- "The file should contain just the API key, nothing else.",
198
+ "To get a key: verdo.ink/dashboard/settings > API Keys > Create (the key is shown once).",
165
199
  ].join("\n"), true);
166
200
  }
167
201
  // ---- Tool definitions ----
@@ -169,13 +203,13 @@ export function toolDefinitions() {
169
203
  return [
170
204
  {
171
205
  name: "create_decision",
172
- description: "Create a Verdo team decision. Returns a dashboard link and decision ID. Participants receive email notifications to vote. Supports single-choice, ranked-choice, approval, and dot voting methods.",
206
+ description: "Propose a team decision in the user's Verdo workspace. The agent proposes; a person decides. Nobody is invited or notified: the decision opens in the workspace's dashboard, where its owner shares the voter link and makes the call. The deadline starts counting when it is created. Returns the decision ID and the dashboard link to send to that person.",
173
207
  annotations: {
174
- title: "Create Decision",
208
+ title: "Propose Decision",
175
209
  readOnlyHint: false,
176
210
  destructiveHint: false,
177
211
  idempotentHint: false,
178
- openWorldHint: true,
212
+ openWorldHint: false,
179
213
  },
180
214
  inputSchema: {
181
215
  type: "object",
@@ -191,7 +225,7 @@ export function toolDefinitions() {
191
225
  },
192
226
  method: {
193
227
  type: "string",
194
- enum: ["single_choice", "ranked_choice", "approval", "dot_voting"],
228
+ enum: [...METHODS],
195
229
  description: "Voting method. Default: single_choice",
196
230
  },
197
231
  deadline_hours: {
@@ -202,13 +236,8 @@ export function toolDefinitions() {
202
236
  },
203
237
  authority_mode: {
204
238
  type: "string",
205
- enum: ["majority", "unanimous", "owner_decides", "approver"],
206
- description: "How the winner is determined. Default: majority",
207
- },
208
- participants: {
209
- type: "array",
210
- items: { type: "string", format: "email" },
211
- description: "Email addresses of people who should vote. They receive an email notification.",
239
+ enum: [...AUTHORITY_MODES],
240
+ description: "How the result is reached: majority (most votes) or consensus (everyone agrees). Default: majority. Owner and approver modes need a named person and are set up in Verdo, not here.",
212
241
  },
213
242
  anonymous: {
214
243
  type: "boolean",
@@ -219,7 +248,7 @@ export function toolDefinitions() {
219
248
  },
220
249
  {
221
250
  name: "check_decision",
222
- description: "Check the status, votes, and outcome of a Verdo decision. Returns the full decision state including vote counts per option, participants, and winner (if decided).",
251
+ description: "Check the status, votes and outcome of a Verdo decision. Returns the status, the vote count per option, the owner if one is named, the outcome once a person has decided, and the dashboard link.",
223
252
  annotations: {
224
253
  title: "Check Decision",
225
254
  readOnlyHint: true,
@@ -253,49 +282,20 @@ export function toolDefinitions() {
253
282
  },
254
283
  },
255
284
  {
256
- name: "close_decision",
257
- description: "Close a Verdo decision now, before its deadline. Optionally override the winner with a specific option ID. The decision transitions to 'decided' and participants are notified.",
285
+ name: "request_close",
286
+ description: "Use when the user wants a Verdo decision closed or settled. Agents cannot close decisions; a person makes the call. Returns who owns the decision, its dashboard link and the current tally, so you can ask that person to decide. Changes nothing.",
258
287
  annotations: {
259
- title: "Close Decision",
260
- readOnlyHint: false,
261
- destructiveHint: true,
288
+ title: "Request Close",
289
+ readOnlyHint: true,
290
+ destructiveHint: false,
262
291
  idempotentHint: true,
263
292
  openWorldHint: false,
264
293
  },
265
294
  inputSchema: {
266
295
  type: "object",
267
296
  required: ["id"],
268
- properties: {
269
- id: { type: "string", format: "uuid", description: "The decision ID to close" },
270
- winner_option_id: {
271
- type: "string",
272
- format: "uuid",
273
- description: "Override the winner with this option ID (from check_decision). Omit to use the leading option.",
274
- },
275
- },
276
- },
277
- },
278
- {
279
- name: "add_participants",
280
- description: "Add voters to an active Verdo decision by email. New participants receive an email notification to vote. Cannot add to a closed decision.",
281
- annotations: {
282
- title: "Add Participants",
283
- readOnlyHint: false,
284
- destructiveHint: false,
285
- idempotentHint: true,
286
- openWorldHint: true,
287
- },
288
- inputSchema: {
289
- type: "object",
290
- required: ["id", "emails"],
291
297
  properties: {
292
298
  id: { type: "string", format: "uuid", description: "The decision ID" },
293
- emails: {
294
- type: "array",
295
- minItems: 1,
296
- items: { type: "string", format: "email" },
297
- description: "Email addresses of people to add as voters",
298
- },
299
299
  },
300
300
  },
301
301
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verdo-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Claude MCP server for Verdo team decisions",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",