@utaba/ucm-mcp-server 5.2.0 → 5.3.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.
@@ -112,12 +112,13 @@ export class PublishArtifactFromFileTool extends BaseToolController {
112
112
  const result = await this.ucmClient.publishArtifact(pathComponents.author, pathComponents.repository, pathComponents.category, pathComponents.subcategory, publishData);
113
113
  // Handle response structure - API might return wrapped in 'data' or direct
114
114
  const artifactData = result.data || result;
115
- // Build successful response
115
+ // Build successful response - url comes from API (set by PublishArtifactCommand)
116
+ const namespacePath = `${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}`;
116
117
  const response = {
117
118
  success: true,
118
119
  artifact: {
119
120
  id: artifactData.id,
120
- namespace: `${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}`,
121
+ namespace: namespacePath,
121
122
  filename,
122
123
  version: publishData.queryParams.version,
123
124
  name: filename, // Use filename as name, matching what the API does
@@ -130,10 +131,11 @@ export class PublishArtifactFromFileTool extends BaseToolController {
130
131
  publishedAt: artifactData.publishedAt,
131
132
  sourceFile: filePath
132
133
  },
134
+ url: artifactData.url,
133
135
  links: {
134
- self: `/api/v1/authors/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}`,
135
- download: `/api/v1/files/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}`,
136
- versions: `/api/v1/authors/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}/versions`
136
+ self: `/api/v1/authors/${namespacePath}/${filename}`,
137
+ download: `/api/v1/files/${namespacePath}/${filename}`,
138
+ versions: `/api/v1/authors/${namespacePath}/${filename}/versions`
137
139
  }
138
140
  };
139
141
  this.logger.info('PublishArtifactFromFileTool', `Artifact published successfully from file: ${filePath}`, '', {
@@ -103,12 +103,13 @@ export class PublishArtifactTool extends BaseToolController {
103
103
  const result = await this.ucmClient.publishArtifact(pathComponents.author, pathComponents.repository, pathComponents.category, pathComponents.subcategory, publishData);
104
104
  // Handle response structure - API might return wrapped in 'data' or direct
105
105
  const artifactData = result.data || result;
106
- // Build successful response
106
+ // Build successful response - url comes from API (set by PublishArtifactCommand)
107
+ const namespacePath = `${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}`;
107
108
  const response = {
108
109
  success: true,
109
110
  artifact: {
110
111
  id: artifactData.id,
111
- namespace: `${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}`,
112
+ namespace: namespacePath,
112
113
  filename,
113
114
  version: publishData.queryParams.version,
114
115
  name: filename, // Use filename as name, matching what the API does
@@ -120,10 +121,11 @@ export class PublishArtifactTool extends BaseToolController {
120
121
  createdAt: artifactData.createdAt,
121
122
  publishedAt: artifactData.publishedAt
122
123
  },
124
+ url: artifactData.url,
123
125
  links: {
124
- self: `/api/v1/authors/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}`,
125
- download: `/api/v1/files/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}`,
126
- versions: `/api/v1/authors/${pathComponents.author}/${pathComponents.repository}/${pathComponents.category}/${pathComponents.subcategory}/${filename}/versions`
126
+ self: `/api/v1/authors/${namespacePath}/${filename}`,
127
+ download: `/api/v1/files/${namespacePath}/${filename}`,
128
+ versions: `/api/v1/authors/${namespacePath}/${filename}/versions`
127
129
  }
128
130
  };
129
131
  this.logger.info('PublishArtifactTool', `Artifact published successfully: ${path}/${filename}`, '', {
@@ -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.2.0'; //TODO: tried to sync this with packageJson but it didn't work.
3
+ const version = '5.3.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.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Universal Context Manager MCP Server - AI Productivity Platform",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -34,4 +34,4 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  }
37
- }
37
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ucm-mcp-server",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Universal Context Manager MCP Server - AI Productivity Platform",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -34,4 +34,4 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  }
37
- }
37
+ }