@utaba/ucm-mcp-server 4.3.1 → 4.3.2
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/dist/server/McpConfig.js +1 -1
- package/dist/tools/sharepoint/SharePointListFoldersTool.js +1 -8
- package/dist/tools/sharepoint/SharePointSearchTool.js +1 -10
- package/dist/utils/SharePointErrorHandler.d.ts +6 -0
- package/dist/utils/SharePointErrorHandler.js +4 -4
- package/package.json +2 -2
- package/package.json.backup +2 -2
package/dist/server/McpConfig.js
CHANGED
|
@@ -11,7 +11,7 @@ export class McpConfig {
|
|
|
11
11
|
authToken: authToken,
|
|
12
12
|
authorId: options.authorId || authorId,
|
|
13
13
|
logLevel: options.logLevel || this.getEnvVar('MCP_LOG_LEVEL', 'ERROR'),
|
|
14
|
-
requestTimeout: options.requestTimeout || parseInt(this.getEnvVar('MCP_REQUEST_TIMEOUT', '
|
|
14
|
+
requestTimeout: options.requestTimeout || parseInt(this.getEnvVar('MCP_REQUEST_TIMEOUT', '300000')),
|
|
15
15
|
trustedAuthors: options.trustedAuthors || this.parseTrustedAuthors(this.getEnvVar('MCP_TRUSTED_AUTHORS', ''))
|
|
16
16
|
};
|
|
17
17
|
this.validateConfig();
|
|
@@ -114,14 +114,7 @@ export class SharePointListFoldersTool extends BaseToolController {
|
|
|
114
114
|
createdDateTime: folder.createdDateTime,
|
|
115
115
|
lastModifiedDateTime: folder.lastModifiedDateTime
|
|
116
116
|
})) || [],
|
|
117
|
-
files: result.files
|
|
118
|
-
name: file.name,
|
|
119
|
-
webUrl: file.webUrl,
|
|
120
|
-
size: file.size,
|
|
121
|
-
mimeType: file.mimeType,
|
|
122
|
-
createdDateTime: file.createdDateTime,
|
|
123
|
-
lastModifiedDateTime: file.lastModifiedDateTime
|
|
124
|
-
})) || []
|
|
117
|
+
files: result.files || []
|
|
125
118
|
};
|
|
126
119
|
return {
|
|
127
120
|
content: [
|
|
@@ -111,16 +111,7 @@ export class SharePointSearchTool extends BaseToolController {
|
|
|
111
111
|
limit: params.limit,
|
|
112
112
|
offset: params.offset,
|
|
113
113
|
fileType: params.fileType,
|
|
114
|
-
files: result.files
|
|
115
|
-
id: file.id,
|
|
116
|
-
name: file.name,
|
|
117
|
-
webUrl: file.webUrl,
|
|
118
|
-
size: file.size,
|
|
119
|
-
mimeType: file.mimeType,
|
|
120
|
-
createdDateTime: file.createdDateTime,
|
|
121
|
-
lastModifiedDateTime: file.lastModifiedDateTime,
|
|
122
|
-
folder: file.folder
|
|
123
|
-
})) || []
|
|
114
|
+
files: result.files || []
|
|
124
115
|
}, null, 2)
|
|
125
116
|
}
|
|
126
117
|
]
|
|
@@ -25,7 +25,8 @@ export class SharePointErrorHandler {
|
|
|
25
25
|
// Handle SharePoint authentication required (OnBehalfOf flow)
|
|
26
26
|
if (error?.response?.status === 401 && serverError?.error === 'SHAREPOINT_LOGIN_REQUIRED') {
|
|
27
27
|
const userMessage = serverError.message || 'To access SharePoint, please login then continue your conversation.';
|
|
28
|
-
|
|
28
|
+
// loginUrl can be in serverError directly or in details (check both)
|
|
29
|
+
const loginUrl = serverError.loginUrl || serverError.details?.loginUrl;
|
|
29
30
|
return {
|
|
30
31
|
content: [
|
|
31
32
|
{
|
|
@@ -33,9 +34,8 @@ export class SharePointErrorHandler {
|
|
|
33
34
|
text: userMessage
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
|
-
type: '
|
|
37
|
-
|
|
38
|
-
mimeType: 'text/html'
|
|
37
|
+
type: 'text',
|
|
38
|
+
text: loginUrl
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utaba/ucm-mcp-server",
|
|
3
|
-
"version": "4.3.
|
|
4
|
-
"description": "Universal Context Manager MCP Server - AI
|
|
3
|
+
"version": "4.3.2",
|
|
4
|
+
"description": "Universal Context Manager MCP Server - AI Productivity Platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
package/package.json.backup
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ucm-mcp-server",
|
|
3
|
-
"version": "4.3.
|
|
4
|
-
"description": "Universal Context Manager MCP Server - AI
|
|
3
|
+
"version": "4.3.2",
|
|
4
|
+
"description": "Universal Context Manager MCP Server - AI Productivity Platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|