@ultimat3/mcp 31.30.0 → 31.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/mcp",
3
- "version": "31.30.0",
3
+ "version": "31.32.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.30.0",
48
- "@ultimat3/auth": "31.30.0",
49
- "@ultimat3/core": "31.30.0",
50
- "@ultimat3/db": "31.30.0",
51
- "@ultimat3/entity": "31.30.0",
52
- "@ultimat3/http": "31.30.0",
53
- "@ultimat3/jobs": "31.30.0",
54
- "@ultimat3/policy": "31.30.0",
55
- "@ultimat3/query": "31.30.0",
56
- "@ultimat3/schema": "31.30.0"
47
+ "@ultimat3/action": "31.32.0",
48
+ "@ultimat3/auth": "31.32.0",
49
+ "@ultimat3/core": "31.32.0",
50
+ "@ultimat3/db": "31.32.0",
51
+ "@ultimat3/entity": "31.32.0",
52
+ "@ultimat3/http": "31.32.0",
53
+ "@ultimat3/jobs": "31.32.0",
54
+ "@ultimat3/policy": "31.32.0",
55
+ "@ultimat3/query": "31.32.0",
56
+ "@ultimat3/schema": "31.32.0"
57
57
  }
58
58
  }
package/src/audit-hook.ts CHANGED
@@ -81,6 +81,7 @@ export function mcpAuditor(input: McpAuditorInput = {}): McpAuditor {
81
81
  path: facts.path,
82
82
  ...(facts.address === null ? {} : { address: addressNetwork(facts.address) }),
83
83
  };
84
+ // info: the auth audit trail records every refusal; no token is its least severe rung, never a warn.
84
85
  if (reason === 'missing-token') log.info(`mcp.auth.${reason}`, line);
85
86
  else log.warn(`mcp.auth.${reason}`, line);
86
87
  if (hook !== undefined) {
@@ -63,7 +63,7 @@ export function asFrameworkError(error: unknown): FrameworkError | undefined {
63
63
  // A substituted fix is still a fix an agent will act on, so it has to be runnable. `see docs`
64
64
  // named no docs and no command; `code` is already narrowed to an `X_` string by the guard
65
65
  // above, so the substitute is the one command that explains exactly this code.
66
- fix: stringField(error, 'fix') ?? `x errors explain ${code}`,
66
+ fix: stringField(error, 'fix') ?? `x errors explain ${renderFixShellArg(code, '<code>')}`,
67
67
  ...(callerFix === undefined ? {} : { callerFix }),
68
68
  // A recipe link nothing serves is dropped (and logged): an agent is never sent nowhere.
69
69
  ...(docs === undefined || docs === '' || docs === ERROR_DOCS_URL