@utaba/ucm-mcp-server 6.5.0 → 6.6.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.
- package/dist/clients/UcmLocalApiClient.d.ts +175 -2
- package/dist/clients/UcmLocalApiClient.js +203 -3
- package/dist/index.js +1 -1
- package/dist/mcp-server/clients/UcmLocalApiClient.d.ts +399 -0
- package/dist/mcp-server/clients/UcmLocalApiClient.js +719 -0
- package/dist/mcp-server/index.d.ts +3 -0
- package/dist/mcp-server/index.js +68 -0
- package/dist/mcp-server/interfaces/ILogger.d.ts +8 -0
- package/dist/mcp-server/interfaces/ILogger.js +4 -0
- package/dist/mcp-server/interfaces/IMcpTool.d.ts +7 -0
- package/dist/mcp-server/interfaces/IMcpTool.js +3 -0
- package/dist/mcp-server/logging/ConsoleLogger.d.ts +16 -0
- package/dist/mcp-server/logging/ConsoleLogger.js +45 -0
- package/dist/mcp-server/logging/LoggerFactory.d.ts +9 -0
- package/dist/mcp-server/logging/LoggerFactory.js +12 -0
- package/dist/mcp-server/server/McpConfig.d.ts +26 -0
- package/dist/mcp-server/server/McpConfig.js +90 -0
- package/dist/mcp-server/server/McpHandler.d.ts +12 -0
- package/dist/mcp-server/server/McpHandler.js +84 -0
- package/dist/mcp-server/server/McpServer.d.ts +15 -0
- package/dist/mcp-server/server/McpServer.js +49 -0
- package/dist/mcp-server/server/ToolRegistry.d.ts +23 -0
- package/dist/mcp-server/server/ToolRegistry.js +169 -0
- package/dist/mcp-server/tools/authorization/ListAuthorizationsTool.d.ts +21 -0
- package/dist/mcp-server/tools/authorization/ListAuthorizationsTool.js +146 -0
- package/dist/mcp-server/tools/authorization/SignOutTool.d.ts +23 -0
- package/dist/mcp-server/tools/authorization/SignOutTool.js +128 -0
- package/dist/mcp-server/tools/base/BaseToolController.d.ts +19 -0
- package/dist/mcp-server/tools/base/BaseToolController.js +58 -0
- package/dist/mcp-server/tools/connections/AccessConnectionTool.d.ts +21 -0
- package/dist/mcp-server/tools/connections/AccessConnectionTool.js +107 -0
- package/dist/mcp-server/tools/connections/CallRemoteToolTool.d.ts +22 -0
- package/dist/mcp-server/tools/connections/CallRemoteToolTool.js +124 -0
- package/dist/mcp-server/tools/core/DeleteArtifactTool.d.ts +11 -0
- package/dist/mcp-server/tools/core/DeleteArtifactTool.js +83 -0
- package/dist/mcp-server/tools/core/EditArtifactMetadataTool.d.ts +12 -0
- package/dist/mcp-server/tools/core/EditArtifactMetadataTool.js +173 -0
- package/dist/mcp-server/tools/core/GetArtifactTool.d.ts +13 -0
- package/dist/mcp-server/tools/core/GetArtifactTool.js +124 -0
- package/dist/mcp-server/tools/core/GetArtifactVersionsTool.d.ts +11 -0
- package/dist/mcp-server/tools/core/GetArtifactVersionsTool.js +63 -0
- package/dist/mcp-server/tools/core/GetChunkTool.d.ts +11 -0
- package/dist/mcp-server/tools/core/GetChunkTool.js +56 -0
- package/dist/mcp-server/tools/core/ListArtifactsTool.d.ts +11 -0
- package/dist/mcp-server/tools/core/ListArtifactsTool.js +84 -0
- package/dist/mcp-server/tools/core/MoveArtifactTool.d.ts +12 -0
- package/dist/mcp-server/tools/core/MoveArtifactTool.js +104 -0
- package/dist/mcp-server/tools/core/PublishArtifactFromFileTool.d.ts +15 -0
- package/dist/mcp-server/tools/core/PublishArtifactFromFileTool.js +277 -0
- package/dist/mcp-server/tools/core/PublishArtifactTool.d.ts +13 -0
- package/dist/mcp-server/tools/core/PublishArtifactTool.js +218 -0
- package/dist/mcp-server/tools/core/SearchArtifactsTool.d.ts +11 -0
- package/dist/mcp-server/tools/core/SearchArtifactsTool.js +137 -0
- package/dist/mcp-server/tools/list/ListNamespaceController.d.ts +1 -0
- package/dist/mcp-server/tools/list/ListNamespaceController.js +8 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateEntitiesTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateEntitiesTool.js +58 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateRelationshipsTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateRelationshipsTool.js +57 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphCreateTool.js +64 -0
- package/dist/mcp-server/tools/memory-graph/GraphDeleteEntitiesTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphDeleteEntitiesTool.js +45 -0
- package/dist/mcp-server/tools/memory-graph/GraphDeleteRelationshipsTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphDeleteRelationshipsTool.js +45 -0
- package/dist/mcp-server/tools/memory-graph/GraphExploreTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphExploreTool.js +73 -0
- package/dist/mcp-server/tools/memory-graph/GraphFindEntitiesTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphFindEntitiesTool.js +68 -0
- package/dist/mcp-server/tools/memory-graph/GraphFindPathsTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphFindPathsTool.js +62 -0
- package/dist/mcp-server/tools/memory-graph/GraphGetEntityTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphGetEntityTool.js +49 -0
- package/dist/mcp-server/tools/memory-graph/GraphGetRelationshipsTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphGetRelationshipsTool.js +62 -0
- package/dist/mcp-server/tools/memory-graph/GraphListTemplatesTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphListTemplatesTool.js +34 -0
- package/dist/mcp-server/tools/memory-graph/GraphListTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphListTool.js +45 -0
- package/dist/mcp-server/tools/memory-graph/GraphOpenTool.d.ts +15 -0
- package/dist/mcp-server/tools/memory-graph/GraphOpenTool.js +50 -0
- package/dist/mcp-server/tools/memory-graph/GraphProposeVocabularyTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphProposeVocabularyTool.js +108 -0
- package/dist/mcp-server/tools/memory-graph/GraphSearchTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphSearchTool.js +94 -0
- package/dist/mcp-server/tools/memory-graph/GraphTraverseTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphTraverseTool.js +114 -0
- package/dist/mcp-server/tools/memory-graph/GraphUpdateEntitiesTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/GraphUpdateEntitiesTool.js +58 -0
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetListTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetListTool.js +25 -0
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetOpenTool.d.ts +14 -0
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetOpenTool.js +31 -0
- package/dist/mcp-server/tools/repository/CreateRepositoryTool.d.ts +12 -0
- package/dist/mcp-server/tools/repository/CreateRepositoryTool.js +116 -0
- package/dist/mcp-server/tools/repository/GetRepositoryTool.d.ts +12 -0
- package/dist/mcp-server/tools/repository/GetRepositoryTool.js +85 -0
- package/dist/mcp-server/tools/repository/UpdateRepositoryTool.d.ts +12 -0
- package/dist/mcp-server/tools/repository/UpdateRepositoryTool.js +115 -0
- package/dist/mcp-server/tools/sharepoint/SharePointListConnectionsTool.d.ts +19 -0
- package/dist/mcp-server/tools/sharepoint/SharePointListConnectionsTool.js +90 -0
- package/dist/mcp-server/tools/sharepoint/SharePointListFoldersTool.d.ts +21 -0
- package/dist/mcp-server/tools/sharepoint/SharePointListFoldersTool.js +133 -0
- package/dist/mcp-server/tools/sharepoint/SharePointReadFileTool.d.ts +22 -0
- package/dist/mcp-server/tools/sharepoint/SharePointReadFileTool.js +146 -0
- package/dist/mcp-server/tools/sharepoint/SharePointReadRelatedFileTool.d.ts +18 -0
- package/dist/mcp-server/tools/sharepoint/SharePointReadRelatedFileTool.js +108 -0
- package/dist/mcp-server/tools/sharepoint/SharePointSearchTool.d.ts +22 -0
- package/dist/mcp-server/tools/sharepoint/SharePointSearchTool.js +125 -0
- package/dist/mcp-server/tools/utility/AuthorIndexTool.d.ts +11 -0
- package/dist/mcp-server/tools/utility/AuthorIndexTool.js +49 -0
- package/dist/mcp-server/tools/utility/AuthorRecentsTool.d.ts +11 -0
- package/dist/mcp-server/tools/utility/AuthorRecentsTool.js +49 -0
- package/dist/mcp-server/tools/utility/ListRepositoriesTool.d.ts +11 -0
- package/dist/mcp-server/tools/utility/ListRepositoriesTool.js +68 -0
- package/dist/mcp-server/tools/utility/QuickstartTool.d.ts +11 -0
- package/dist/mcp-server/tools/utility/QuickstartTool.js +36 -0
- package/dist/mcp-server/types/UcmApiTypes.d.ts +40 -0
- package/dist/mcp-server/types/UcmApiTypes.js +4 -0
- package/dist/mcp-server/utils/McpErrorHandler.d.ts +25 -0
- package/dist/mcp-server/utils/McpErrorHandler.js +67 -0
- package/dist/mcp-server/utils/PathUtils.d.ts +61 -0
- package/dist/mcp-server/utils/PathUtils.js +178 -0
- package/dist/mcp-server/utils/ResponseChunker.d.ts +25 -0
- package/dist/mcp-server/utils/ResponseChunker.js +79 -0
- package/dist/mcp-server/utils/SharePointErrorHandler.d.ts +34 -0
- package/dist/mcp-server/utils/SharePointErrorHandler.js +55 -0
- package/dist/schemas/memory-graph-tool-schemas.d.ts +789 -0
- package/dist/schemas/memory-graph-tool-schemas.js +181 -0
- package/dist/server/ToolRegistry.js +42 -8
- package/dist/tools/authorization/ListAuthorizationsTool.js +2 -2
- package/dist/tools/authorization/SignOutTool.js +2 -2
- package/dist/tools/connections/AccessConnectionTool.js +8 -6
- package/dist/tools/connections/CallRemoteToolTool.js +4 -4
- package/dist/tools/core/DeleteArtifactTool.js +5 -4
- package/dist/tools/core/EditArtifactMetadataTool.js +1 -1
- package/dist/tools/core/GetArtifactTool.js +1 -1
- package/dist/tools/core/GetArtifactVersionsTool.js +1 -1
- package/dist/tools/core/GetChunkTool.js +1 -1
- package/dist/tools/core/ListArtifactsTool.js +1 -1
- package/dist/tools/core/MoveArtifactTool.js +1 -1
- package/dist/tools/core/PublishArtifactFromFileTool.js +1 -1
- package/dist/tools/core/PublishArtifactTool.js +2 -2
- package/dist/tools/core/SearchArtifactsTool.js +7 -6
- package/dist/tools/memory-graph/GraphCreateEntitiesTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphCreateEntitiesTool.js +56 -0
- package/dist/tools/memory-graph/GraphCreateRelationshipsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphCreateRelationshipsTool.js +55 -0
- package/dist/tools/memory-graph/GraphCreateTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphCreateTool.js +62 -0
- package/dist/tools/memory-graph/GraphDeleteEntitiesTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphDeleteEntitiesTool.js +43 -0
- package/dist/tools/memory-graph/GraphDeleteRelationshipsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphDeleteRelationshipsTool.js +43 -0
- package/dist/tools/memory-graph/GraphExploreTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphExploreTool.js +71 -0
- package/dist/tools/memory-graph/GraphFindEntitiesTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphFindEntitiesTool.js +66 -0
- package/dist/tools/memory-graph/GraphFindPathsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphFindPathsTool.js +60 -0
- package/dist/tools/memory-graph/GraphGetEntityTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphGetEntityTool.js +47 -0
- package/dist/tools/memory-graph/GraphGetRelationshipsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphGetRelationshipsTool.js +60 -0
- package/dist/tools/memory-graph/GraphGetStatsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphGetStatsTool.js +42 -0
- package/dist/tools/memory-graph/GraphListTemplatesTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphListTemplatesTool.js +32 -0
- package/dist/tools/memory-graph/GraphListTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphListTool.js +43 -0
- package/dist/tools/memory-graph/GraphOpenTool.d.ts +12 -0
- package/dist/tools/memory-graph/GraphOpenTool.js +48 -0
- package/dist/tools/memory-graph/GraphProposeVocabularyTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphProposeVocabularyTool.js +104 -0
- package/dist/tools/memory-graph/GraphRemoveRelationshipsTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphRemoveRelationshipsTool.js +47 -0
- package/dist/tools/memory-graph/GraphSearchTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphSearchTool.js +92 -0
- package/dist/tools/memory-graph/GraphTraverseTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphTraverseTool.js +112 -0
- package/dist/tools/memory-graph/GraphUpdateEntitiesTool.d.ts +11 -0
- package/dist/tools/memory-graph/GraphUpdateEntitiesTool.js +56 -0
- package/dist/tools/memory-graph/KnowledgeSetListTool.d.ts +11 -0
- package/dist/tools/memory-graph/KnowledgeSetListTool.js +23 -0
- package/dist/tools/memory-graph/KnowledgeSetOpenTool.d.ts +11 -0
- package/dist/tools/memory-graph/KnowledgeSetOpenTool.js +29 -0
- package/dist/tools/repository/CreateRepositoryTool.js +10 -9
- package/dist/tools/repository/GetRepositoryTool.js +15 -15
- package/dist/tools/repository/UpdateRepositoryTool.js +10 -9
- package/dist/tools/sharepoint/SharePointListConnectionsTool.js +1 -1
- package/dist/tools/sharepoint/SharePointListFoldersTool.js +1 -1
- package/dist/tools/utility/AuthorIndexTool.js +6 -5
- package/dist/tools/utility/AuthorRecentsTool.js +6 -5
- package/dist/tools/utility/HealthCheckController.js +1 -1
- package/dist/tools/utility/ListRepositoriesTool.js +5 -4
- package/dist/utils/McpErrorHandler.js +1 -1
- package/package.json +1 -1
- package/package.json.backup +1 -1
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { ArtifactData, AuthorData } from '../types/UcmApiTypes.js';
|
|
2
|
+
export declare class UcmLocalApiClient {
|
|
3
|
+
private baseUrl;
|
|
4
|
+
private authToken?;
|
|
5
|
+
private authorId?;
|
|
6
|
+
private client;
|
|
7
|
+
constructor(baseUrl: string, authToken?: string | undefined, timeout?: number, authorId?: string | undefined);
|
|
8
|
+
private setupInterceptors;
|
|
9
|
+
private ensureClient;
|
|
10
|
+
getAuthors(): Promise<AuthorData[]>;
|
|
11
|
+
getAuthor(authorId: string): Promise<AuthorData | null>;
|
|
12
|
+
private buildApiPath;
|
|
13
|
+
getArtifact(author?: string, repository?: string, category?: string, subcategory?: string, filename?: string, version?: string): Promise<ArtifactData>;
|
|
14
|
+
getLatestArtifact(author?: string, repository?: string, category?: string, subcategory?: string, filename?: string): Promise<ArtifactData>;
|
|
15
|
+
listArtifacts(author?: string, repository?: string, category?: string, subcategory?: string, offset?: number, limit?: number): Promise<{
|
|
16
|
+
data: any[];
|
|
17
|
+
pagination: {
|
|
18
|
+
offset: number;
|
|
19
|
+
limit: number;
|
|
20
|
+
total: number;
|
|
21
|
+
};
|
|
22
|
+
_links?: any;
|
|
23
|
+
}>;
|
|
24
|
+
searchArtifacts(filters?: {
|
|
25
|
+
repository?: string;
|
|
26
|
+
category?: string;
|
|
27
|
+
technology?: string;
|
|
28
|
+
subcategory?: string;
|
|
29
|
+
offset?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
}): Promise<ArtifactData[]>;
|
|
32
|
+
searchArtifactsByText(searchParams: {
|
|
33
|
+
searchText?: string;
|
|
34
|
+
namespace?: string;
|
|
35
|
+
author?: string;
|
|
36
|
+
repository?: string;
|
|
37
|
+
category?: string;
|
|
38
|
+
subcategory?: string;
|
|
39
|
+
filename?: string;
|
|
40
|
+
tags?: string;
|
|
41
|
+
offset?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
}): Promise<{
|
|
44
|
+
data: any[];
|
|
45
|
+
pagination: {
|
|
46
|
+
offset: number;
|
|
47
|
+
limit: number;
|
|
48
|
+
total: number;
|
|
49
|
+
hasMore: boolean;
|
|
50
|
+
};
|
|
51
|
+
_links?: any;
|
|
52
|
+
}>;
|
|
53
|
+
publishArtifact(author: string, repository: string, category: string, subcategory: string, data: any): Promise<ArtifactData>;
|
|
54
|
+
updateArtifact(author: string, repository: string, category: string, subcategory: string, filename: string, version: string, data: any): Promise<ArtifactData>;
|
|
55
|
+
deleteArtifact(author: string, repository: string, category: string, subcategory: string, filename: string, version?: string): Promise<any>;
|
|
56
|
+
getArtifactVersions(author: string, repository: string, category: string, subcategory: string, filename: string): Promise<any>;
|
|
57
|
+
getCategories(): Promise<string[]>;
|
|
58
|
+
healthCheck(): Promise<{
|
|
59
|
+
status: string;
|
|
60
|
+
timestamp: string;
|
|
61
|
+
}>;
|
|
62
|
+
getQuickstart(): Promise<string>;
|
|
63
|
+
getAuthorIndex(author: string, repository?: string): Promise<string>;
|
|
64
|
+
getAuthorRecents(author: string): Promise<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Cleanup method to properly dispose of HTTP client resources
|
|
67
|
+
* This helps prevent memory leaks from accumulated AbortSignal listeners
|
|
68
|
+
*/
|
|
69
|
+
cleanup(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Check if the client is still available for use
|
|
72
|
+
*/
|
|
73
|
+
isAvailable(): boolean;
|
|
74
|
+
createRepository(author: string, data: {
|
|
75
|
+
repositoryName: string;
|
|
76
|
+
displayName?: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
}): Promise<any>;
|
|
79
|
+
getRepository(author: string, repository: string): Promise<any>;
|
|
80
|
+
updateRepository(author: string, repository: string, data: {
|
|
81
|
+
displayName?: string;
|
|
82
|
+
description?: string;
|
|
83
|
+
}): Promise<any>;
|
|
84
|
+
deleteRepository(author: string, repository: string): Promise<any>;
|
|
85
|
+
listRepositories(author: string, offset?: number, limit?: number): Promise<{
|
|
86
|
+
data: any[];
|
|
87
|
+
pagination: {
|
|
88
|
+
offset: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
total: number;
|
|
91
|
+
};
|
|
92
|
+
_links?: any;
|
|
93
|
+
}>;
|
|
94
|
+
submitFeedback(data: {
|
|
95
|
+
title: string;
|
|
96
|
+
body: string;
|
|
97
|
+
reportType: 'issue' | 'feedback';
|
|
98
|
+
tags?: string;
|
|
99
|
+
}): Promise<any>;
|
|
100
|
+
editArtifactMetadata(author: string, repository: string, category: string, subcategory: string, filename: string, data: {
|
|
101
|
+
updateDescription?: string;
|
|
102
|
+
updateNamespace?: string;
|
|
103
|
+
updateFilename?: string;
|
|
104
|
+
updateMimeType?: string;
|
|
105
|
+
updateTechnology?: string;
|
|
106
|
+
updateTags?: string;
|
|
107
|
+
}): Promise<any>;
|
|
108
|
+
/**
|
|
109
|
+
* List External Connections including SharePoint
|
|
110
|
+
* Returns markdown with a table of connections available
|
|
111
|
+
*/
|
|
112
|
+
listExternalConnections(params?: {
|
|
113
|
+
limit?: number;
|
|
114
|
+
offset?: number;
|
|
115
|
+
}): Promise<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Access a specific external connection
|
|
118
|
+
* Returns connection details, auth status, and available tool schemas
|
|
119
|
+
* Connection type is auto-detected by the server from the connectionId
|
|
120
|
+
*/
|
|
121
|
+
accessConnection(connectionId: string, toolNames?: string[]): Promise<{
|
|
122
|
+
success: boolean;
|
|
123
|
+
connectionId: string;
|
|
124
|
+
connectionType: 'sharepoint' | 'remote-mcp';
|
|
125
|
+
connectionName: string;
|
|
126
|
+
isAuthenticated: boolean;
|
|
127
|
+
authRequired?: boolean;
|
|
128
|
+
loginUrl?: string;
|
|
129
|
+
loginMessage?: string;
|
|
130
|
+
error?: string;
|
|
131
|
+
tools?: any[];
|
|
132
|
+
markdown?: string;
|
|
133
|
+
instructions?: string;
|
|
134
|
+
policies?: string[];
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* Call a tool on an external connection
|
|
138
|
+
* Executes a tool on a SharePoint connection or Remote MCP Server
|
|
139
|
+
* Connection type is auto-detected by the server from the connectionId
|
|
140
|
+
*/
|
|
141
|
+
callRemoteTool(connectionId: string, toolName: string, args?: any): Promise<{
|
|
142
|
+
success: boolean;
|
|
143
|
+
connectionId: string;
|
|
144
|
+
connectionType: 'sharepoint' | 'remote-mcp';
|
|
145
|
+
toolName: string;
|
|
146
|
+
content?: Array<{
|
|
147
|
+
type: string;
|
|
148
|
+
text?: string;
|
|
149
|
+
data?: string;
|
|
150
|
+
mimeType?: string;
|
|
151
|
+
uri?: string;
|
|
152
|
+
}>;
|
|
153
|
+
error?: string;
|
|
154
|
+
errorCode?: string;
|
|
155
|
+
authRequired?: boolean;
|
|
156
|
+
loginUrl?: string;
|
|
157
|
+
loginMessage?: string;
|
|
158
|
+
tools?: Array<{
|
|
159
|
+
name: string;
|
|
160
|
+
description: string;
|
|
161
|
+
parameters: any;
|
|
162
|
+
}>;
|
|
163
|
+
markdown: string;
|
|
164
|
+
}>;
|
|
165
|
+
/**
|
|
166
|
+
* Search SharePoint documents using Microsoft Search API
|
|
167
|
+
* Uses V1 API - organizationId is auto-detected from auth token
|
|
168
|
+
*/
|
|
169
|
+
sharePointSearch(connectionId: string, params: {
|
|
170
|
+
query: string;
|
|
171
|
+
limit?: number;
|
|
172
|
+
offset?: number;
|
|
173
|
+
fileType?: string;
|
|
174
|
+
}): Promise<any>;
|
|
175
|
+
/**
|
|
176
|
+
* List folders and files in SharePoint with pagination
|
|
177
|
+
* Uses V1 API - organizationId is auto-detected from auth token
|
|
178
|
+
*/
|
|
179
|
+
sharePointListFolders(connectionId: string, params: {
|
|
180
|
+
folderPath?: string;
|
|
181
|
+
limit?: number;
|
|
182
|
+
offset?: number;
|
|
183
|
+
}): Promise<any>;
|
|
184
|
+
/**
|
|
185
|
+
* Read SharePoint file content with support for both fileUrl and legacy fileId
|
|
186
|
+
* Uses V1 API - organizationId is auto-detected from auth token
|
|
187
|
+
*/
|
|
188
|
+
sharePointReadFile(connectionId: string, params: {
|
|
189
|
+
fileUrl: string;
|
|
190
|
+
extractMetadata?: boolean;
|
|
191
|
+
offset?: number;
|
|
192
|
+
limit?: number;
|
|
193
|
+
}): Promise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Read SharePoint related file (image/embedded file extracted from document)
|
|
196
|
+
* Uses V1 API - organizationId is auto-detected from auth token
|
|
197
|
+
* Accepts full URI from markdown (with or without protocol prefix)
|
|
198
|
+
* Returns complete file content (no pagination support)
|
|
199
|
+
*/
|
|
200
|
+
sharePointReadRelatedFile(uri: string): Promise<any>;
|
|
201
|
+
/**
|
|
202
|
+
* Extract fileName from SharePoint related file URI
|
|
203
|
+
* Helper method for metadata purposes
|
|
204
|
+
*/
|
|
205
|
+
private extractFileNameFromUri;
|
|
206
|
+
/**
|
|
207
|
+
* Revoke SharePoint OnBehalfOf authorization for a connection
|
|
208
|
+
* Deletes user's access tokens from Key Vault and database
|
|
209
|
+
* Uses V1 API - organizationId is auto-detected from auth token
|
|
210
|
+
* @deprecated Use signOut with connectionType='sharepoint' instead
|
|
211
|
+
*/
|
|
212
|
+
sharePointSignOut(connectionId: string): Promise<any>;
|
|
213
|
+
/**
|
|
214
|
+
* Unified OAuth sign out for any connection type
|
|
215
|
+
* Revokes user's OAuth authorization by deleting tokens from Key Vault and database
|
|
216
|
+
* @param connectionType - Type of connection: 'sharepoint' | 'remote-mcp'
|
|
217
|
+
* @param connectionId - Connection ID to revoke authorization for
|
|
218
|
+
*/
|
|
219
|
+
signOut(connectionType: string, connectionId: string): Promise<any>;
|
|
220
|
+
/**
|
|
221
|
+
* List all user's active OAuth authorizations
|
|
222
|
+
* @param connectionType - Optional filter: 'sharepoint' | 'remote-mcp' | 'all' (default: 'all')
|
|
223
|
+
*/
|
|
224
|
+
listAuthorizations(connectionType?: string): Promise<any>;
|
|
225
|
+
/**
|
|
226
|
+
* List memory graphs, optionally filtered by scope
|
|
227
|
+
* @param scope - 'organization' | 'personal' | 'all' (default: 'all')
|
|
228
|
+
*/
|
|
229
|
+
listMemoryGraphs(scope?: string): Promise<any>;
|
|
230
|
+
/**
|
|
231
|
+
* Create a new Memory Graph for the authenticated user
|
|
232
|
+
*/
|
|
233
|
+
createMemoryGraph(data: {
|
|
234
|
+
label: string;
|
|
235
|
+
templateId: string;
|
|
236
|
+
description?: string;
|
|
237
|
+
scope?: string;
|
|
238
|
+
}): Promise<any>;
|
|
239
|
+
/**
|
|
240
|
+
* List available vocabulary templates for Memory Graph creation
|
|
241
|
+
*/
|
|
242
|
+
listMemoryGraphTemplates(): Promise<any>;
|
|
243
|
+
/**
|
|
244
|
+
* Semantic vector search across multiple Memory Graphs
|
|
245
|
+
*/
|
|
246
|
+
graphSearchMultiple(query: string, options?: {
|
|
247
|
+
graphIds?: string[];
|
|
248
|
+
entityTypes?: string[];
|
|
249
|
+
limit?: number;
|
|
250
|
+
similarityThreshold?: number;
|
|
251
|
+
}): Promise<any>;
|
|
252
|
+
/**
|
|
253
|
+
* List knowledge sets for an organization
|
|
254
|
+
*/
|
|
255
|
+
listKnowledgeSets(): Promise<any>;
|
|
256
|
+
/**
|
|
257
|
+
* List knowledge set summary (markdown) for an organization
|
|
258
|
+
*/
|
|
259
|
+
listKnowledgeSetSummary(): Promise<string>;
|
|
260
|
+
/**
|
|
261
|
+
* Open a knowledge set — returns markdown summary with contents and tool guidance
|
|
262
|
+
*/
|
|
263
|
+
openKnowledgeSet(knowledgeSetId: string): Promise<string>;
|
|
264
|
+
/**
|
|
265
|
+
* Open a memory graph — returns vocabulary, stats, instructions, policies, and metadata
|
|
266
|
+
*/
|
|
267
|
+
graphOpen(graphId: string): Promise<any>;
|
|
268
|
+
/**
|
|
269
|
+
* Find entities with filters and pagination
|
|
270
|
+
*/
|
|
271
|
+
graphFindEntities(graphId: string, query: {
|
|
272
|
+
entityTypes?: string[];
|
|
273
|
+
searchTerm?: string;
|
|
274
|
+
detailLevel?: string;
|
|
275
|
+
offset?: number;
|
|
276
|
+
limit?: number;
|
|
277
|
+
}): Promise<any>;
|
|
278
|
+
/**
|
|
279
|
+
* Get a single entity by ID
|
|
280
|
+
*/
|
|
281
|
+
graphGetEntity(graphId: string, entityId: string, detailLevel?: string): Promise<any>;
|
|
282
|
+
/**
|
|
283
|
+
* Get relationships for an entity
|
|
284
|
+
*/
|
|
285
|
+
graphGetRelationships(graphId: string, entityId: string, options?: {
|
|
286
|
+
direction?: string;
|
|
287
|
+
relationshipTypes?: string[];
|
|
288
|
+
limit?: number;
|
|
289
|
+
}): Promise<any>;
|
|
290
|
+
/**
|
|
291
|
+
* Explore neighbourhood around an entity (BFS, 1-3 hops)
|
|
292
|
+
*/
|
|
293
|
+
graphExplore(graphId: string, options: {
|
|
294
|
+
entityId: string;
|
|
295
|
+
maxDepth?: number;
|
|
296
|
+
relationshipTypes?: string[];
|
|
297
|
+
entityTypes?: string[];
|
|
298
|
+
limit?: number;
|
|
299
|
+
}): Promise<any>;
|
|
300
|
+
/**
|
|
301
|
+
* Find paths between two entities
|
|
302
|
+
*/
|
|
303
|
+
graphFindPaths(graphId: string, options: {
|
|
304
|
+
sourceEntityId: string;
|
|
305
|
+
targetEntityId: string;
|
|
306
|
+
maxDepth?: number;
|
|
307
|
+
relationshipTypes?: string[];
|
|
308
|
+
}): Promise<any>;
|
|
309
|
+
/**
|
|
310
|
+
* Structured graph traversal with a JSON spec
|
|
311
|
+
*/
|
|
312
|
+
graphTraverse(graphId: string, spec: {
|
|
313
|
+
start: Record<string, any>;
|
|
314
|
+
steps: Array<Record<string, any>>;
|
|
315
|
+
returnMode?: string;
|
|
316
|
+
limit?: number;
|
|
317
|
+
detailLevel?: string;
|
|
318
|
+
}): Promise<any>;
|
|
319
|
+
/**
|
|
320
|
+
* Semantic vector search on entity embeddings
|
|
321
|
+
*/
|
|
322
|
+
graphSearch(graphId: string, query: string, options?: {
|
|
323
|
+
entityTypes?: string[];
|
|
324
|
+
limit?: number;
|
|
325
|
+
similarityThreshold?: number;
|
|
326
|
+
}): Promise<any>;
|
|
327
|
+
/**
|
|
328
|
+
* Create one or more entities
|
|
329
|
+
*/
|
|
330
|
+
graphCreateEntities(graphId: string, entities: Array<{
|
|
331
|
+
entityType: string;
|
|
332
|
+
label: string;
|
|
333
|
+
summary?: string;
|
|
334
|
+
properties?: Record<string, unknown>;
|
|
335
|
+
data?: unknown;
|
|
336
|
+
}>): Promise<any>;
|
|
337
|
+
/**
|
|
338
|
+
* Update one or more entities
|
|
339
|
+
*/
|
|
340
|
+
graphUpdateEntities(graphId: string, updates: Array<{
|
|
341
|
+
entityId: string;
|
|
342
|
+
label?: string;
|
|
343
|
+
summary?: string;
|
|
344
|
+
properties?: Record<string, unknown>;
|
|
345
|
+
data?: unknown;
|
|
346
|
+
}>): Promise<any>;
|
|
347
|
+
/**
|
|
348
|
+
* Delete one or more entities
|
|
349
|
+
*/
|
|
350
|
+
graphDeleteEntities(graphId: string, entityIds: string[]): Promise<any>;
|
|
351
|
+
/**
|
|
352
|
+
* Create one or more relationships
|
|
353
|
+
*/
|
|
354
|
+
graphCreateRelationships(graphId: string, relationships: Array<{
|
|
355
|
+
sourceEntityId: string;
|
|
356
|
+
targetEntityId: string;
|
|
357
|
+
relationshipType: string;
|
|
358
|
+
properties?: Record<string, unknown>;
|
|
359
|
+
}>): Promise<any>;
|
|
360
|
+
/**
|
|
361
|
+
* Delete one or more relationships
|
|
362
|
+
*/
|
|
363
|
+
graphDeleteRelationships(graphId: string, relationshipIds: string[]): Promise<any>;
|
|
364
|
+
/**
|
|
365
|
+
* Delete an entire memory graph (SQL record + CosmosDB repository)
|
|
366
|
+
*/
|
|
367
|
+
graphDelete(graphId: string): Promise<any>;
|
|
368
|
+
/**
|
|
369
|
+
* Propose vocabulary extensions (entity types / relationship types)
|
|
370
|
+
*/
|
|
371
|
+
graphProposeVocabulary(graphId: string, proposals: {
|
|
372
|
+
entityTypes?: Array<{
|
|
373
|
+
type: string;
|
|
374
|
+
description: string;
|
|
375
|
+
justification: string;
|
|
376
|
+
properties?: Array<{
|
|
377
|
+
name: string;
|
|
378
|
+
type: string;
|
|
379
|
+
required: boolean;
|
|
380
|
+
description?: string;
|
|
381
|
+
}>;
|
|
382
|
+
}>;
|
|
383
|
+
relationshipTypes?: Array<{
|
|
384
|
+
type: string;
|
|
385
|
+
description: string;
|
|
386
|
+
justification: string;
|
|
387
|
+
allowedSourceTypes: string[];
|
|
388
|
+
allowedTargetTypes: string[];
|
|
389
|
+
bidirectional?: boolean;
|
|
390
|
+
properties?: Array<{
|
|
391
|
+
name: string;
|
|
392
|
+
type: string;
|
|
393
|
+
required: boolean;
|
|
394
|
+
description?: string;
|
|
395
|
+
}>;
|
|
396
|
+
}>;
|
|
397
|
+
}): Promise<any>;
|
|
398
|
+
}
|
|
399
|
+
//# sourceMappingURL=UcmLocalApiClient.d.ts.map
|