@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.
@@ -128,7 +128,7 @@ export declare class UcmLocalApiClient {
128
128
  authRequired?: boolean;
129
129
  loginUrl?: string;
130
130
  tools?: any[];
131
- markdown: string;
131
+ schema: string;
132
132
  }>;
133
133
  /**
134
134
  * Call a tool on an external connection
@@ -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 markdown content for AI consumption
54
- return result.markdown;
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 as key-value pairs (see ucm_access_connection for parameter schemas)'
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.1.1'; //TODO: tried to sync this with packageJson but it didn't work.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utaba/ucm-mcp-server",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Universal Context Manager MCP Server - AI Productivity Platform",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ucm-mcp-server",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "description": "Universal Context Manager MCP Server - AI Productivity Platform",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",