@veilio-inc/mcp 0.5.2 → 0.6.1

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 CHANGED
@@ -42,13 +42,57 @@ are still real. Names written entirely in capitals are not masked either
42
42
 
43
43
  ## Tools
44
44
 
45
- | Tool | Purpose |
46
- |---|---|
47
- | `anonymize_file` | Read a file and return only its masked form. **Preferred.** |
48
- | `anonymize_text` | Mask text the agent already holds (a user paste). Not for file contents. |
49
- | `restore_text` | Swap placeholders back and strip AI-generated noise — the team's placeholders too, under the rule below. A placeholder it cannot restore is left in and named, including one whose shape the AI changed (`__fn__1`). With `strict: true`, it returns an error naming them instead of the text. |
50
- | `scan_secrets` | Detect credentials without modifying anything, and without putting the values in context. |
51
- | `symbol_map_summary` | Placeholder counts by kind. Returns keys only, never real names. |
45
+ | Tool | Purpose |
46
+ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | `anonymize_file` | Read a file and return only its masked form. **Preferred.** |
48
+ | `anonymize_text` | Mask text the agent already holds (a user paste). Not for file contents. |
49
+ | `restore_text` | Swap placeholders back and strip AI-generated noise — the team's placeholders too, under the rule below. A placeholder it cannot restore is left in and named, including one whose shape the AI changed (`__fn__1`). With `strict: true`, it returns an error naming them instead of the text. |
50
+ | `scan_secrets` | Detect credentials without modifying anything, and without putting the values in context. |
51
+ | `symbol_map_summary` | Placeholder counts by kind. Returns keys only, never real names. |
52
+
53
+ ### Map, team and project tools (signed in to Veilio Cloud)
54
+
55
+ Listed only once `veilio login` has signed this machine in; with no sign-in -
56
+ always, in the Community Edition - the server offers the five tools above and
57
+ nothing else. Each is the `veilio` CLI's own command, through the same code, so
58
+ it refuses in the same words for the same reasons.
59
+
60
+ | Tool | Purpose |
61
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------ |
62
+ | `maps_list` | The maps in Cloud - personal, and the team's in the project in use - with id, scope, count, name and whose each is. |
63
+ | `maps_pull` | Fetch a map into this project's local map. `force: true` to replace local entries it would drop. |
64
+ | `maps_create` | Save the local map as a new map: `scope` `personal` or `team`. A team map is checked against the team's other maps first. |
65
+ | `maps_update` | Replace a map's entries with the local map's, in place - same id, name and project. Its publisher only. |
66
+ | `maps_remove` | Remove a map. Needs the destructive setting and `confirmName` equal to the map's exact name. |
67
+ | `team_status` | Account, team, project in use, whether the team key and the personal-maps key are unlocked here, whether a key change is owed. |
68
+ | `projects_list` | The projects the team works in; `*` marks the one in use. |
69
+ | `projects_use` | Choose one, by name or id. Kept with the sign-in, so the CLI uses it too. |
70
+
71
+ **One project per repository: `VEILIO_PROJECT`.** Set it in a repository's
72
+ `.mcp.json` `env` (see [Install](#install)) and that repository's server works
73
+ in that project for every tool call: the map tools, `team_status`,
74
+ `projects_list`, and the team namespace `anonymize_*` and `restore_text` number
75
+ from. It wins over the choice stored with the sign-in, so an agent in
76
+ repository A never masks against repository B's names, even though both share
77
+ one sign-in. A value that names no project your team works in, or a name two
78
+ projects share, makes those tools return an error naming it. The masking tools
79
+ refuse rather than mask from the local map. Results that name the project say
80
+ "(from VEILIO_PROJECT)". `projects_use` still stores a choice, and warns that
81
+ the server's variable overrides it.
82
+
83
+ - **Destructive tools are off by default.** `maps_remove`, a `maps_update`
84
+ that would drop entries (`allowDrop: true`), and a `maps_pull` with `force`
85
+ that would overwrite local entries, are refused unless you start the
86
+ server with `VEILIO_MCP_DESTRUCTIVE=1` in its environment - a setting the agent
87
+ cannot reach. Even then, a removal must repeat the map's exact name. Creating,
88
+ pulling, listing and updates that drop nothing always work.
89
+ - **Personal maps need `veilio vault unlock`** in a terminal first. It keeps a
90
+ personal-maps key on this machine (7 days) that opens personal maps and
91
+ nothing else; the server never sees your passphrase. Team maps need
92
+ `veilio team unlock`, as before.
93
+ - **No result carries a secret**: never a passphrase, a key, a wrapped key or a
94
+ map's encrypted body, and a clash names placeholders, never the names behind
95
+ them. Results name the map, its count and the outcome.
52
96
 
53
97
  Setup for Claude Code, Claude Desktop, Xcode, Cursor and VS Code, plus troubleshooting: [docs/USING-THE-CLI-AND-MCP.md](../../docs/USING-THE-CLI-AND-MCP.md).
54
98
 
@@ -60,9 +104,25 @@ Setup for Claude Code, Claude Desktop, Xcode, Cursor and VS Code, plus troublesh
60
104
  "mcpServers": {
61
105
  "veilio": {
62
106
  "command": "npx",
63
- "args": ["-y", "@veilio-inc/mcp", "--root", "."]
64
- }
65
- }
107
+ "args": ["-y", "@veilio-inc/mcp", "--root", "."],
108
+ },
109
+ },
110
+ }
111
+ ```
112
+
113
+ Signed in to a team that works in several projects, pin this repository's
114
+ project with `env`. Use a name or an id; an empty value counts as unset:
115
+
116
+ ```jsonc
117
+ // Claude Code — .mcp.json in the billing repository
118
+ {
119
+ "mcpServers": {
120
+ "veilio": {
121
+ "command": "npx",
122
+ "args": ["-y", "@veilio-inc/mcp", "--root", "."],
123
+ "env": { "VEILIO_PROJECT": "billing" },
124
+ },
125
+ },
66
126
  }
67
127
  ```
68
128
 
@@ -99,7 +159,7 @@ would restore their placeholders wrong. An older self-hosted Cloud that still
99
159
  merges server-side is honoured as it is, with no key needed here.
100
160
 
101
161
  The `local` line says which of those it was — `local (the team key is locked on
102
- this machine - run \`veilio team unlock\`)` or `local (could not read the team's
162
+ this machine - run \`veilio team unlock\`)`or`local (could not read the team's
103
163
  maps: …)` — so a fallback is never read as agreement.
104
164
 
105
165
  The account's custom rules are fetched at startup the same way and applied to
@@ -126,7 +186,7 @@ confident wrong identifier is worse than a token the reader can see is
126
186
  unresolved. They are also excluded from the "invented or altered" count, since
127
187
  they were left for a stated reason.
128
188
 
129
- When the team's maps *should* have been used and could not be — the key is
189
+ When the team's maps _should_ have been used and could not be — the key is
130
190
  locked, or Cloud could not be read — the call comes back as an **error result**
131
191
  saying which, even if some placeholders did restore. An older self-hosted Cloud
132
192
  that merges the namespace server-side is used for anonymizing but never for
@@ -0,0 +1,18 @@
1
+ import { type Refusal } from '@veilio-inc/cli/client';
2
+ import type { ToolContext, ToolResult } from './tools.js';
3
+ export interface CloudToolDefinition {
4
+ name: string;
5
+ title: string;
6
+ description: string;
7
+ inputSchema: Record<string, unknown>;
8
+ handler: (args: Record<string, unknown>, ctx: ToolContext) => Promise<ToolResult>;
9
+ }
10
+ /** A refusal as a tool error: the shared sentence, without the terminal's
11
+ * detail lines, which may hold real identifiers. */
12
+ export declare function refusalResult(r: Refusal): ToolResult;
13
+ declare class ArgumentError extends Error {
14
+ }
15
+ export declare const CLOUD_TOOLS: CloudToolDefinition[];
16
+ export declare const CLOUD_TOOLS_BY_NAME: Map<string, CloudToolDefinition>;
17
+ export { ArgumentError };
18
+ //# sourceMappingURL=cloud-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-tools.d.ts","sourceRoot":"","sources":["../src/cloud-tools.ts"],"names":[],"mappings":"AAuBA,OAAO,EAcL,KAAK,OAAO,EAEb,MAAM,wBAAwB,CAAA;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEzD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;CAClF;AAED;qDACqD;AACrD,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,UAAU,CAEpD;AAYD,cAAM,aAAc,SAAQ,KAAK;CAAG;AAqBpC,eAAO,MAAM,WAAW,EAAE,mBAAmB,EA0P5C,CAAA;AAED,eAAO,MAAM,mBAAmB,kCAA+C,CAAA;AAE/E,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,288 @@
1
+ // The map, team and project tools (spec 052 US2).
2
+ //
3
+ // Every one of these is a thin wrapper over `@veilio-inc/cli/client`: the CLI's
4
+ // own operations, with the CLI's own checks in the same order and the same
5
+ // words for every refusal (FR-007, FR-019). Nothing about a map's rules is
6
+ // decided here, with two exceptions that exist only because the caller is an
7
+ // agent rather than a person:
8
+ //
9
+ // - THE DESTRUCTIVE GATE (FR-010). Removing a map, or an update that drops
10
+ // entries, is refused unless the PERSON started this server with
11
+ // VEILIO_MCP_DESTRUCTIVE=1 - a setting no tool argument can reach - and a
12
+ // removal must also repeat the map's exact name. An agent that decides on
13
+ // its own to tidy up cannot.
14
+ // - WHAT A RESULT MAY SAY (FR-009). A result names the map, its entry count
15
+ // and the outcome. Never a key, a passphrase, a wrapped key or an
16
+ // envelope - none is ever in hand here to say - and never the real names
17
+ // in a map: a clash names its placeholders, and the terminal-only detail
18
+ // lines that show what they mean are not rendered.
19
+ //
20
+ // Personal maps open with the personal-maps key `veilio vault unlock` left,
21
+ // and only with it (FR-011): there is no passphrase prompt here because there
22
+ // is nobody to answer one.
23
+ import { createCloudMap, listCloudMaps, listTeamProjects, pullCloudMap, removeCloudMap, teamStatus, updateCloudMap, useProject, formatProjectsList, overriddenSentence, usedSentence, refusal, } from '@veilio-inc/cli/client';
24
+ import { resolveMapPath } from '@veilio-inc/cli/store';
25
+ import { PRODUCT_NAME } from '@veilio-inc/engine';
26
+ import { invalidateNamespace } from './namespace.js';
27
+ /** A refusal as a tool error: the shared sentence, without the terminal's
28
+ * detail lines, which may hold real identifiers. */
29
+ export function refusalResult(r) {
30
+ return { isError: true, text: `${PRODUCT_NAME}: ${r.message} ${r.resolve}` };
31
+ }
32
+ function client(ctx) {
33
+ // No `passphrase`: never asked for here. The server's own environment, so a
34
+ // repository's `.mcp.json` `env` pins VEILIO_PROJECT for it (FR-012a).
35
+ return { home: ctx.home, env: ctx.env };
36
+ }
37
+ function mapPathOf(ctx) {
38
+ return resolveMapPath(ctx.mapPath, ctx.cwd);
39
+ }
40
+ class ArgumentError extends Error {
41
+ }
42
+ function text(args, key) {
43
+ const v = args[key];
44
+ if (typeof v !== 'string')
45
+ throw new ArgumentError(`argument "${key}" must be a string`);
46
+ return v;
47
+ }
48
+ function flag(args, key) {
49
+ const v = args[key];
50
+ if (v === undefined || v === null)
51
+ return false;
52
+ if (typeof v !== 'boolean')
53
+ throw new ArgumentError(`argument "${key}" must be true or false`);
54
+ return v;
55
+ }
56
+ function answered(outcome, render) {
57
+ return outcome.ok ? { text: render(outcome.value) } : refusalResult(outcome.refusal);
58
+ }
59
+ const ID = { type: 'string', description: 'The map id, from maps_list.' };
60
+ export const CLOUD_TOOLS = [
61
+ {
62
+ name: 'maps_list',
63
+ title: 'List the maps in Veilio Cloud',
64
+ description: 'List the maps this account can use in Veilio Cloud: its personal maps and the team maps of the ' +
65
+ 'project in use, each with its id, scope, symbol count, name and whose it is. Names and counts ' +
66
+ 'only - never what a map holds.',
67
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
68
+ handler: async (_args, ctx) => answered(await listCloudMaps(client(ctx)), ({ maps, project }) => {
69
+ if (maps.length === 0)
70
+ return 'No maps in Cloud yet. maps_create uploads the local one.';
71
+ const lines = maps.map((m) => {
72
+ const count = m.count === null ? '?' : String(m.count);
73
+ const whose = m.scope === 'team' && !m.mine ? ' (a teammate’s)' : '';
74
+ return `${m.id} ${m.scope.padEnd(8)} ${count.padStart(5)} symbols ${m.name}${whose}`;
75
+ });
76
+ return [
77
+ ...lines,
78
+ '',
79
+ project
80
+ ? `Team maps of project ${project}.`
81
+ : 'No project chosen: team maps of every project.',
82
+ ].join('\n');
83
+ }),
84
+ },
85
+ {
86
+ name: 'maps_pull',
87
+ title: 'Pull a Cloud map into the project',
88
+ description: "Fetch one map by id and write it into this project's local symbol map, so restore_text and the " +
89
+ 'anonymize tools use it. Opened here: a personal map with the personal-maps key from ' +
90
+ '`veilio vault unlock`, a team map with the key from `veilio team unlock`. Refuses rather than ' +
91
+ 'drop local entries unless force is true.',
92
+ inputSchema: {
93
+ type: 'object',
94
+ properties: {
95
+ id: ID,
96
+ force: {
97
+ type: 'boolean',
98
+ description: 'Replace the local map even where it would drop local entries. Needs the destructive setting.',
99
+ },
100
+ },
101
+ required: ['id'],
102
+ additionalProperties: false,
103
+ },
104
+ handler: async (args, ctx) => {
105
+ const askedToForce = flag(args, 'force');
106
+ // force overwrites local entries - and the local map is the one thing
107
+ // that restores text already masked - so it is gated like a drop
108
+ // (FR-010, code review). A pull that overwrites nothing still works.
109
+ const pulled = await pullCloudMap(client(ctx), text(args, 'id'), {
110
+ mapPath: mapPathOf(ctx),
111
+ force: askedToForce && ctx.destructive === true,
112
+ });
113
+ if (!pulled.ok &&
114
+ askedToForce &&
115
+ !ctx.destructive &&
116
+ (pulled.refusal.code === 'pull_would_drop' || pulled.refusal.code === 'diverged'))
117
+ return refusalResult(refusal('destructive_off'));
118
+ return answered(pulled, ({ name, count, path }) => `Pulled "${name}" (${count} symbols) into ${path}`);
119
+ },
120
+ },
121
+ {
122
+ name: 'maps_create',
123
+ title: 'Save the local map to Cloud',
124
+ description: "Upload this project's local symbol map as a NEW map: scope personal (sealed with the " +
125
+ "personal-maps key) or team (sealed with the team key, after checking it against the team's " +
126
+ 'other maps so no placeholder takes a second meaning). Use maps_update to change one that exists.',
127
+ inputSchema: {
128
+ type: 'object',
129
+ properties: {
130
+ name: { type: 'string', description: 'The name to save it under.' },
131
+ scope: { type: 'string', enum: ['personal', 'team'] },
132
+ },
133
+ required: ['name', 'scope'],
134
+ additionalProperties: false,
135
+ },
136
+ handler: async (args, ctx) => {
137
+ const scope = text(args, 'scope');
138
+ if (scope !== 'personal' && scope !== 'team')
139
+ throw new ArgumentError('argument "scope" must be "personal" or "team"');
140
+ const created = await createCloudMap(client(ctx), {
141
+ name: text(args, 'name'),
142
+ scope,
143
+ mapPath: mapPathOf(ctx),
144
+ });
145
+ if (created.ok && scope === 'team')
146
+ invalidateNamespace();
147
+ return answered(created, (c) => {
148
+ const notes = c.notes.length ? `\n\n${c.notes.join('\n')}` : '';
149
+ if (c.scope === 'personal')
150
+ return `Pushed ${c.count} symbols to Cloud as ${c.id}${notes}`;
151
+ const disputed = c.disputed ?? 0;
152
+ return (`Published "${c.name}" (${c.count} symbols) to the team as ${c.id}\n` +
153
+ `The team's shared set now holds ${c.teamTotal} identifiers` +
154
+ (disputed > 0
155
+ ? `, ${disputed} of which ${disputed === 1 ? 'is' : 'are'} disputed and will not restore`
156
+ : ', none disputed') +
157
+ notes);
158
+ });
159
+ },
160
+ },
161
+ {
162
+ name: 'maps_update',
163
+ title: 'Update a Cloud map in place',
164
+ description: "Replace a Cloud map's entries with this project's local map, keeping its id, name and project. " +
165
+ 'Only the map’s publisher may. Refused, saying why, if it would drop entries (allowDrop: true, ' +
166
+ 'which also needs the person to have started this server with VEILIO_MCP_DESTRUCTIVE=1), if a ' +
167
+ "placeholder clashes with the team's other maps, if the team owes a key change, or if it changed " +
168
+ 'in Cloud since it was read.',
169
+ inputSchema: {
170
+ type: 'object',
171
+ properties: {
172
+ id: ID,
173
+ allowDrop: {
174
+ type: 'boolean',
175
+ description: 'Allow dropping entries the Cloud map has and the local map does not. Needs the destructive setting.',
176
+ },
177
+ },
178
+ required: ['id'],
179
+ additionalProperties: false,
180
+ },
181
+ handler: async (args, ctx) => {
182
+ const askedToDrop = flag(args, 'allowDrop');
183
+ const updated = await updateCloudMap(client(ctx), text(args, 'id'), {
184
+ mapPath: mapPathOf(ctx),
185
+ // The agent's word alone allows nothing: only with the person's
186
+ // setting does allowDrop reach the client (FR-010).
187
+ allowDrop: askedToDrop && ctx.destructive === true,
188
+ });
189
+ if (!updated.ok && updated.refusal.code === 'would_drop' && askedToDrop && !ctx.destructive)
190
+ return refusalResult(refusal('destructive_off'));
191
+ if (updated.ok && updated.value.scope === 'team')
192
+ invalidateNamespace();
193
+ return answered(updated, (u) => {
194
+ const notes = u.notes.length ? `\n\n${u.notes.join('\n')}` : '';
195
+ return (`Updated "${u.name}" (${u.id}) in place: ${u.count} symbols` +
196
+ (u.dropped > 0 ? `, ${u.dropped} dropped as asked` : '') +
197
+ `${u.scope === 'team' ? ', sealed with the team key' : ''}${notes}`);
198
+ });
199
+ },
200
+ },
201
+ {
202
+ name: 'maps_remove',
203
+ title: 'Remove a Cloud map',
204
+ description: 'Remove a map from Cloud. Off unless the person started this server with VEILIO_MCP_DESTRUCTIVE=1, ' +
205
+ "and even then confirmName must repeat the map's exact name - ask the person for it rather than " +
206
+ 'reading it from maps_list. A teammate’s map is theirs to remove.',
207
+ inputSchema: {
208
+ type: 'object',
209
+ properties: {
210
+ id: ID,
211
+ confirmName: {
212
+ type: 'string',
213
+ description: "The map's exact name, confirmed by the person.",
214
+ },
215
+ },
216
+ required: ['id', 'confirmName'],
217
+ additionalProperties: false,
218
+ },
219
+ handler: async (args, ctx) => {
220
+ // Before anything else, a request included: off means nothing is sent.
221
+ if (ctx.destructive !== true)
222
+ return refusalResult(refusal('destructive_off'));
223
+ if (typeof args.confirmName !== 'string')
224
+ throw new ArgumentError(`missing required argument "confirmName" - the map's exact name`);
225
+ const removed = await removeCloudMap(client(ctx), text(args, 'id'), {
226
+ confirmName: args.confirmName,
227
+ });
228
+ if (removed.ok)
229
+ invalidateNamespace();
230
+ return answered(removed, ({ id, name }) => name ? `Removed "${name}" (${id})` : `Removed ${id}`);
231
+ },
232
+ },
233
+ {
234
+ name: 'team_status',
235
+ title: 'Team, project and key status',
236
+ description: 'Report the signed-in account, its team, the project in use, whether the team key and the ' +
237
+ 'personal-maps key are unlocked on this machine, and whether the team owes a key change. Says ' +
238
+ 'which command to run where something is locked.',
239
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
240
+ handler: async (_args, ctx) => answered(await teamStatus(client(ctx)), (s) => [
241
+ `Account: ${s.account} on ${s.instance}`,
242
+ `Team: ${s.teamId ?? 'none - this account is not in a team'}`,
243
+ `Project: ${s.project ? `${s.project.name ?? 'name unknown'} (${s.project.id})${s.project.from ? ` (from ${s.project.from})` : ''}` : 'none chosen - team maps of every project are used; `veilio projects use <name>` chooses one'}`,
244
+ `Team key: ${s.teamKeyUntil ? `unlocked here until ${s.teamKeyUntil}` : 'locked here - run `veilio team unlock` in a terminal'}`,
245
+ `Personal-maps key: ${s.personalKeyUntil ? `unlocked here until ${s.personalKeyUntil}` : 'locked here - run `veilio vault unlock` in a terminal'}`,
246
+ `Key change owed: ${s.rotationOwedSince === undefined
247
+ ? 'unknown - Cloud did not say'
248
+ : s.rotationOwedSince === null
249
+ ? 'no'
250
+ : `yes, since ${s.rotationOwedSince} - no team map can be written until a member who holds the current key changes it in the web app`}`,
251
+ ].join('\n')),
252
+ },
253
+ {
254
+ name: 'projects_list',
255
+ title: 'List the team’s projects',
256
+ description: "List the projects this account's team works in, marking the one in use with *. A team map " +
257
+ 'belongs to exactly one project.',
258
+ inputSchema: { type: 'object', properties: {}, additionalProperties: false },
259
+ handler: async (_args, ctx) => answered(await listTeamProjects(client(ctx)), (listing) => {
260
+ const { lines, note } = formatProjectsList(listing, { surface: 'mcp' });
261
+ return (note ? [...lines, '', note] : lines).join('\n');
262
+ }),
263
+ },
264
+ {
265
+ name: 'projects_use',
266
+ title: 'Choose the project to work in',
267
+ description: 'Choose the project this sign-in works in, by name or id. Kept with the sign-in, so the CLI uses ' +
268
+ 'it too. Team maps, pushes, updates and the team namespace then use that project only.',
269
+ inputSchema: {
270
+ type: 'object',
271
+ properties: { project: { type: 'string', description: 'The project name or id.' } },
272
+ required: ['project'],
273
+ additionalProperties: false,
274
+ },
275
+ handler: async (args, ctx) => {
276
+ const used = await useProject(client(ctx), text(args, 'project'));
277
+ // The server's variable overrides the choice just stored: the namespace
278
+ // it holds is for the variable's project and is not touched.
279
+ if (used.ok && used.value.overriddenBy === null)
280
+ invalidateNamespace();
281
+ return answered(used, (u) => usedSentence(u, { surface: 'mcp' }) +
282
+ (u.overriddenBy !== null ? `\n\nWARNING: ${overriddenSentence(u, 'server')}` : ''));
283
+ },
284
+ },
285
+ ];
286
+ export const CLOUD_TOOLS_BY_NAME = new Map(CLOUD_TOOLS.map((t) => [t.name, t]));
287
+ export { ArgumentError };
288
+ //# sourceMappingURL=cloud-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-tools.js","sourceRoot":"","sources":["../src/cloud-tools.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,EAAE;AACF,gFAAgF;AAChF,2EAA2E;AAC3E,2EAA2E;AAC3E,6EAA6E;AAC7E,8BAA8B;AAC9B,EAAE;AACF,6EAA6E;AAC7E,qEAAqE;AACrE,8EAA8E;AAC9E,8EAA8E;AAC9E,iCAAiC;AACjC,8EAA8E;AAC9E,sEAAsE;AACtE,6EAA6E;AAC7E,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,2BAA2B;AAE3B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EAIZ,OAAO,GACR,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAWpD;qDACqD;AACrD,MAAM,UAAU,aAAa,CAAC,CAAU;IACtC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAA;AAC9E,CAAC;AAED,SAAS,MAAM,CAAC,GAAgB;IAC9B,4EAA4E;IAC5E,uEAAuE;IACvE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAA;AACzC,CAAC;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@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ // This process is the MCP server, and every request it makes says so
2
+ // (tracker d12): `X-Veilio-Client: mcp` and `User-Agent: veilio-mcp/<version>`.
3
+ // Its requests go through the CLI's client, which would otherwise label them
4
+ // `cli`, so a burst from an agent read as a burst from a terminal.
5
+ //
6
+ // Set when this module loads, which happens before any tool or namespace
7
+ // request: tools.ts imports it first. A self-report for the server's logs,
8
+ // never an access decision.
9
+ import { createRequire } from 'node:module';
10
+ import { setClientIdentity } from '@veilio-inc/cli/client';
11
+ const VERSION = createRequire(import.meta.url)('../package.json')
12
+ .version;
13
+ setClientIdentity({ client: 'mcp', userAgent: `veilio-mcp/${VERSION}` });
14
+ //# sourceMappingURL=identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.js","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,gFAAgF;AAChF,6EAA6E;AAC7E,mEAAmE;AACnE,EAAE;AACF,yEAAyE;AACzE,2EAA2E;AAC3E,4BAA4B;AAE5B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,MAAM,OAAO,GAAY,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAyB;KAC/F,OAAO,CAAA;AAEV,iBAAiB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,cAAc,OAAO,EAAE,EAAE,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,14 @@
1
1
  #!/usr/bin/env node
2
+ import type { ToolContext } from './tools.js';
2
3
  export { FrameReader, handleFrame, handleMessage, SERVER_VERSION } from './server.js';
3
- export { TOOLS, callTool } from './tools.js';
4
+ export { TOOLS, CLOUD_TOOLS, callTool, callToolAsync, listTools } from './tools.js';
5
+ /**
6
+ * The server's context from its arguments and environment.
7
+ *
8
+ * `destructive` is read from VEILIO_MCP_DESTRUCTIVE here, once, at start, and
9
+ * only an exact "1" turns it on: it is the person's decision, made where they
10
+ * configure the server, and nothing a tool call carries can change it
11
+ * (spec 052 FR-010).
12
+ */
13
+ export declare function contextFromArgv(argv: readonly string[], env?: Record<string, string | undefined>): ToolContext;
4
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAcA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACrF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAK7C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACrF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEnF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GACpD,WAAW,CAEb"}
package/dist/index.js CHANGED
@@ -9,8 +9,20 @@ import { pathToFileURL } from 'node:url';
9
9
  import { FrameReader } from './server.js';
10
10
  import { primeNamespace } from './namespace.js';
11
11
  import { primeRules } from './rules.js';
12
+ import { SIGN_IN_POLL_MS, SignInWatcher, TOOLS_LIST_CHANGED } from './sign-in-watch.js';
12
13
  export { FrameReader, handleFrame, handleMessage, SERVER_VERSION } from './server.js';
13
- export { TOOLS, callTool } from './tools.js';
14
+ export { TOOLS, CLOUD_TOOLS, callTool, callToolAsync, listTools } from './tools.js';
15
+ /**
16
+ * The server's context from its arguments and environment.
17
+ *
18
+ * `destructive` is read from VEILIO_MCP_DESTRUCTIVE here, once, at start, and
19
+ * only an exact "1" turns it on: it is the person's decision, made where they
20
+ * configure the server, and nothing a tool call carries can change it
21
+ * (spec 052 FR-010).
22
+ */
23
+ export function contextFromArgv(argv, env = process.env) {
24
+ return { ...parseCliContext(argv), destructive: env.VEILIO_MCP_DESTRUCTIVE === '1', env };
25
+ }
14
26
  function parseCliContext(argv) {
15
27
  let cwd = process.cwd();
16
28
  let mapPath = null;
@@ -25,7 +37,7 @@ function parseCliContext(argv) {
25
37
  return { cwd, mapPath };
26
38
  }
27
39
  async function start() {
28
- const ctx = parseCliContext(process.argv.slice(2));
40
+ const ctx = contextFromArgv(process.argv.slice(2));
29
41
  const send = (response) => {
30
42
  process.stdout.write(`${JSON.stringify(response)}\n`);
31
43
  };
@@ -34,10 +46,15 @@ async function start() {
34
46
  // for the rest of this process sees the answer already settled rather than
35
47
  // racing the first one in (contracts/shared-namespace.md R-007). Never
36
48
  // throws — see namespace.ts — so this can only delay startup, not fail it.
37
- await Promise.all([primeNamespace(), primeRules()]);
49
+ await Promise.all([primeNamespace(undefined, { env: ctx.env }), primeRules()]);
50
+ // Signing in or out while this runs changes the tool list; say so.
51
+ const watcher = new SignInWatcher(ctx.home, () => process.stdout.write(`${JSON.stringify(TOOLS_LIST_CHANGED)}\n`));
52
+ setInterval(() => watcher.check(), SIGN_IN_POLL_MS).unref();
38
53
  process.stdin.setEncoding('utf8');
39
54
  process.stdin.on('data', (chunk) => reader.push(chunk));
40
- process.stdin.on('end', () => process.exit(0));
55
+ process.stdin.on('end', () => {
56
+ void reader.drain().then(() => process.exit(0));
57
+ });
41
58
  process.stderr.write(`veilio-mcp: serving ${ctx.cwd}\n`);
42
59
  }
43
60
  /**
package/dist/index.js.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C"}
@@ -1,4 +1,10 @@
1
+ import './identity.js';
1
2
  import { type TeamNamespaceResult } from '@veilio-inc/cli/team-namespace';
3
+ import { type Env } from '@veilio-inc/cli/client';
4
+ type PrimeOptions = {
5
+ retryDelayMs?: number;
6
+ env?: Env;
7
+ };
2
8
  export type NamespaceSource = 'team' | 'local';
3
9
  export interface ResolvedNamespace {
4
10
  source: NamespaceSource;
@@ -28,9 +34,15 @@ export interface ResolvedNamespace {
28
34
  * their own request. `home` is injectable for tests; production leaves it
29
35
  * undefined and `readCredential` falls back to the real home directory.
30
36
  */
31
- export declare function primeNamespace(home?: string, opts?: {
32
- retryDelayMs?: number;
33
- }): Promise<ResolvedNamespace>;
37
+ export declare function primeNamespace(home?: string, opts?: PrimeOptions): Promise<ResolvedNamespace>;
38
+ /** How long a confirmation is trusted before the next masking call asks again. */
39
+ export declare const CONFIRM_TTL_MS = 30000;
40
+ /**
41
+ * The team's maps just changed through this server - a team map created,
42
+ * updated or removed, or another project chosen - so the cached namespace is
43
+ * out of date. The next tool call starts loading it again.
44
+ */
45
+ export declare function invalidateNamespace(): void;
34
46
  /**
35
47
  * The cache must not outlive the reason it was cached (review): `veilio team
36
48
  * unlock` run after this server started said "restore again" and every retry
@@ -39,7 +51,24 @@ export declare function primeNamespace(home?: string, opts?: {
39
51
  * something new to fetch it starts the fetch and says 'loading'; the next call
40
52
  * sees the result. A settled `team` or `local` is kept for the process.
41
53
  */
42
- export declare function refreshNamespaceIfStale(): 'unlocked' | 'retrying' | null;
54
+ export declare function refreshNamespaceIfStale(): 'unlocked' | 'retrying' | 'changed' | null;
55
+ /** A masking call never waits longer than this on the confirming listing. */
56
+ export declare const CONFIRM_DEADLINE_MS = 3000;
57
+ /**
58
+ * With VEILIO_PROJECT set, ask the server which project the value names NOW
59
+ * (one project listing) and compare its ID with the one the cache was read
60
+ * for. A different id - or a value that names nothing any more - drops the
61
+ * cache and waits for the reload, so the call that follows numbers from the
62
+ * right project. Without the variable, and before the first prime, it asks
63
+ * nothing: the stored choice is checked by `refreshNamespaceIfStale`.
64
+ *
65
+ * Run before a tool that numbers or restores from the team namespace
66
+ * (anonymize, restore), at most once per CONFIRM_TTL_MS, and once however many
67
+ * calls arrive together. The listing has a short deadline, and one that fails
68
+ * or times out backs off for the TTL like one that answered: Cloud being down
69
+ * is not a reason to stall masking, or to throw a good namespace away.
70
+ */
71
+ export declare function confirmProject(): Promise<void>;
43
72
  /** Test support and callers that can wait: the in-flight (or last) resolution. */
44
73
  export declare function namespaceSettled(): Promise<ResolvedNamespace>;
45
74
  /** The already-resolved namespace. `local` (with an empty namespace) until
@@ -53,4 +82,5 @@ export declare function resetNamespaceCache(): void;
53
82
  * team exists but was not used - so a fallback is never mistaken for agreement.
54
83
  */
55
84
  export declare function namespaceLine(resolved: ResolvedNamespace): string;
85
+ export {};
56
86
  //# sourceMappingURL=namespace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../src/namespace.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAI/F,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9C,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,eAAe,CAAA;IACvB;qDACiD;IACjD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC;qEACiE;IACjE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B;wDACoD;IACpD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACjC;qDACiD;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B;iFAC6E;IAC7E,KAAK,EAAE,mBAAmB,CAAA;IAC1B;+EAC2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AA2CD;;;;;;GAMG;AACH,wBAAgB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