@ultimat3/mcp 4.0.0 → 5.0.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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/src/server.ts +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/mcp",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "MCP server, dev tools, and the action-to-tool projection — one authz system, two surfaces",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,12 +31,12 @@
31
31
  "test": "bun test"
32
32
  },
33
33
  "dependencies": {
34
- "@ultimat3/action": "4.0.0",
35
- "@ultimat3/core": "4.0.0",
36
- "@ultimat3/entity": "4.0.0",
37
- "@ultimat3/jobs": "4.0.0",
38
- "@ultimat3/policy": "4.0.0",
39
- "@ultimat3/query": "4.0.0",
40
- "@ultimat3/schema": "4.0.0"
34
+ "@ultimat3/action": "5.0.0",
35
+ "@ultimat3/core": "5.0.0",
36
+ "@ultimat3/entity": "5.0.0",
37
+ "@ultimat3/jobs": "5.0.0",
38
+ "@ultimat3/policy": "5.0.0",
39
+ "@ultimat3/query": "5.0.0",
40
+ "@ultimat3/schema": "5.0.0"
41
41
  }
42
42
  }
package/src/server.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // and an already-resolved caller, and returns a response or `null` for a notification.
4
4
  // Both transports (http, stdio) and every test drive this one function.
5
5
 
6
- import { stringField } from '@ultimat3/core';
6
+ import { singleLine, stringField } from '@ultimat3/core';
7
7
  import { formatIssues } from '@ultimat3/schema';
8
8
  import { auditToolCall, outcomeForCode } from './audit';
9
9
  import { McpScopeDeniedError } from './errors';
@@ -319,6 +319,9 @@ function asFrameworkError(error: unknown): FrameworkError | undefined {
319
319
  * but no title; a real `UltimateError` always has one.
320
320
  */
321
321
  function renderFrameworkError(error: FrameworkError): string {
322
- const head = error.title === '' ? error.code : `${error.code}: ${error.title}`;
323
- return `${head}\n cause: ${error.cause}\n fix: ${error.fix}`;
322
+ const head =
323
+ error.title === ''
324
+ ? singleLine(error.code)
325
+ : `${singleLine(error.code)}: ${singleLine(error.title)}`;
326
+ return `${head}\n cause: ${singleLine(error.cause)}\n fix: ${singleLine(error.fix)}`;
324
327
  }