@ultimat3/mcp 31.4.2 → 31.6.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/README.md CHANGED
@@ -27,8 +27,8 @@ defineAppMcp({ include: 'exposed' });
27
27
  | `graph.query` | `dev:read` | `{ node }` → what a change to a file or primitive reaches (`x impact`'s answer); `{ from, to }` → the chain of edges linking two nodes (`x graph --from --to`). The CLI answers through `DevCapabilities.queryGraph`: the graph is `@ultimat3/manifest`'s |
28
28
  | `db.query` | `db:read` | **read-only, enforced four ways** — SELECT-only role, `BEGIN READ ONLY`, one-statement parse, 5s/1000-row/256 KiB caps |
29
29
  | `db.migrate` | `db:migrate` | **branch DB only** — refuses production and any non-branch target |
30
- | `tests.run` | `dev:test` | runs the suite (executes project code) |
31
- | `verify.run` | `dev:test` | `x verify` — the shippable contract |
30
+ | `tests.run` | `dev:test` | `x test [--filter]` — the shell's runner and environment (executes project code) |
31
+ | `verify.run` | `dev:test` | `x verify` — the shippable contract; `only` is `--only` |
32
32
  | `logs.tail` | `dev:logs` | last N lines, optionally per runtime role |
33
33
 
34
34
  `db.query` and `db.migrate` are gated *and* say so in their own description, so a model that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/mcp",
3
- "version": "31.4.2",
3
+ "version": "31.6.0",
4
4
  "description": "MCP server, dev tools, and the action-to-tool projection \u2014 one authz system, two surfaces",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -44,15 +44,15 @@
44
44
  "test": "bun test"
45
45
  },
46
46
  "dependencies": {
47
- "@ultimat3/action": "31.4.2",
48
- "@ultimat3/auth": "31.4.2",
49
- "@ultimat3/core": "31.4.2",
50
- "@ultimat3/db": "31.4.2",
51
- "@ultimat3/entity": "31.4.2",
52
- "@ultimat3/http": "31.4.2",
53
- "@ultimat3/jobs": "31.4.2",
54
- "@ultimat3/policy": "31.4.2",
55
- "@ultimat3/query": "31.4.2",
56
- "@ultimat3/schema": "31.4.2"
47
+ "@ultimat3/action": "31.6.0",
48
+ "@ultimat3/auth": "31.6.0",
49
+ "@ultimat3/core": "31.6.0",
50
+ "@ultimat3/db": "31.6.0",
51
+ "@ultimat3/entity": "31.6.0",
52
+ "@ultimat3/http": "31.6.0",
53
+ "@ultimat3/jobs": "31.6.0",
54
+ "@ultimat3/policy": "31.6.0",
55
+ "@ultimat3/query": "31.6.0",
56
+ "@ultimat3/schema": "31.6.0"
57
57
  }
58
58
  }
package/src/dev-server.ts CHANGED
@@ -150,7 +150,11 @@ export interface DevCapabilities extends DevGraphHost {
150
150
  tailLogs(lines: number, role: string | undefined): Promise<readonly string[]>;
151
151
  readManifest(): Promise<string>;
152
152
  explainError(code: string): ErrorExplanation | undefined;
153
- verify(fix: boolean): Promise<VerifyResult>;
153
+ /**
154
+ * `x verify`, the same command the shell runs. `only` is its `--only`: the named steps, every
155
+ * other one skipped and the run marked "not a gate run". Absent, the whole gate.
156
+ */
157
+ verify(fix: boolean, only?: readonly string[]): Promise<VerifyResult>;
154
158
  /**
155
159
  * Photograph one route against the running dev server (or a scratch one), the way `x shot
156
160
  * <route>` does, at a viewport and colour scheme the caller names. Refuses a route that declares
@@ -314,7 +318,9 @@ export function devTools(host: DevHost): readonly AnyMcpTool[] {
314
318
  },
315
319
  {
316
320
  name: 'tests.run',
317
- description: 'Run the test suite (executes project code). Optional substring filter.',
321
+ description:
322
+ 'Run x test (executes project code): the same files, runner and environment as the shell. ' +
323
+ 'Optional substring filter on the test path.',
318
324
  scope: DEV_SCOPES.test,
319
325
  destructive: true,
320
326
  inputSchema: {
@@ -332,16 +338,23 @@ export function devTools(host: DevHost): readonly AnyMcpTool[] {
332
338
  name: 'verify.run',
333
339
  description:
334
340
  'Run x verify: types, lint, boundaries, migrations, manifest drift, tests, budgets. ' +
335
- 'This is the shippable contract. `fix: true` applies safe autofixes.',
341
+ 'This is the shippable contract. `fix: true` applies safe autofixes; `only` runs the ' +
342
+ 'named steps (x verify --only), which is not a gate run.',
336
343
  scope: DEV_SCOPES.test,
337
344
  destructive: true,
338
345
  inputSchema: {
339
346
  type: 'object',
340
- properties: { fix: { type: 'boolean', default: false } },
347
+ properties: {
348
+ fix: { type: 'boolean', default: false },
349
+ only: { type: 'array', items: { type: 'string' }, minItems: 1 },
350
+ },
341
351
  additionalProperties: false,
342
352
  },
343
353
  async handle(args: ToolArgs) {
344
- const result = await host.verify(args['fix'] === true);
354
+ const only = Array.isArray(args['only'])
355
+ ? args['only'].filter((step): step is string => typeof step === 'string')
356
+ : undefined;
357
+ const result = await host.verify(args['fix'] === true, only);
345
358
  return { ...jsonResult(result), ...(result.ok ? {} : { isError: true }) };
346
359
  },
347
360
  },