@utaba/ucm-mcp-server 5.1.1 → 5.2.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.
|
@@ -50,8 +50,8 @@ export class AccessConnectionTool extends BaseToolController {
|
|
|
50
50
|
isAuthenticated: result.isAuthenticated,
|
|
51
51
|
toolCount: result.tools?.length || 0
|
|
52
52
|
});
|
|
53
|
-
// Return the
|
|
54
|
-
return result.
|
|
53
|
+
// Return the schema (JSON envelope with modelInstructions, policies, tools) for AI consumption
|
|
54
|
+
return result.schema;
|
|
55
55
|
}
|
|
56
56
|
catch (error) {
|
|
57
57
|
// Sanitize error for logging
|
|
@@ -33,7 +33,7 @@ export class CallRemoteToolTool extends BaseToolController {
|
|
|
33
33
|
},
|
|
34
34
|
args: {
|
|
35
35
|
type: 'object',
|
|
36
|
-
description: 'Tool arguments
|
|
36
|
+
description: 'Tool arguments object (see ucm_access_connection for parameter schemas)'
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
required: ['connectionId', 'toolName']
|
|
@@ -52,8 +52,8 @@ export class CallRemoteToolTool extends BaseToolController {
|
|
|
52
52
|
if (!params.toolName || typeof params.toolName !== 'string') {
|
|
53
53
|
throw new McpError(McpErrorCode.InvalidParams, 'toolName is required and must be a string');
|
|
54
54
|
}
|
|
55
|
-
// Validate args if provided
|
|
56
|
-
if (params.args !== undefined && typeof params.args !== 'object') {
|
|
55
|
+
// Validate args if provided — must be an object, not a string
|
|
56
|
+
if (params.args !== undefined && (typeof params.args !== 'object' || params.args === null)) {
|
|
57
57
|
throw new McpError(McpErrorCode.InvalidParams, 'args must be an object');
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
//import packageJson from '../../../../publish/package.json' assert { type: 'json' };
|
|
3
|
-
const version = '5.
|
|
3
|
+
const version = '5.2.0'; //TODO: tried to sync this with packageJson but it didn't work.
|
|
4
4
|
export class HealthCheckController extends BaseToolController {
|
|
5
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
6
6
|
super(ucmClient, logger, publishingAuthorId);
|
package/package.json
CHANGED