@utaba/ucm-mcp-server 6.6.0 → 6.7.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 +48 -1
- package/dist/clients/UcmLocalApiClient.js +8 -0
- package/dist/index.js +1 -1
- package/dist/interfaces/IMcpTool.d.ts +2 -2
- package/dist/server/ToolRegistry.js +2 -0
- package/dist/tools/base/BaseToolController.d.ts +7 -4
- package/dist/tools/base/BaseToolController.js +28 -11
- package/dist/tools/core/MoveArtifactTool.d.ts +1 -1
- package/dist/tools/core/MoveArtifactTool.js +1 -1
- package/dist/tools/memory-graph/GraphCreateEntitiesTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphCreateEntitiesTool.js +2 -0
- package/dist/tools/memory-graph/GraphCreateRelationshipsTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphCreateRelationshipsTool.js +2 -0
- package/dist/tools/memory-graph/GraphCreateTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphCreateTool.js +2 -0
- package/dist/tools/memory-graph/GraphDeleteEntitiesTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphDeleteEntitiesTool.js +2 -0
- package/dist/tools/memory-graph/GraphDeleteRelationshipsTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphDeleteRelationshipsTool.js +2 -0
- package/dist/tools/memory-graph/GraphExploreTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphExploreTool.js +2 -0
- package/dist/tools/memory-graph/GraphFindEntitiesTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphFindEntitiesTool.js +2 -0
- package/dist/tools/memory-graph/GraphFindPathsTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphFindPathsTool.js +2 -0
- package/dist/tools/memory-graph/GraphGetEntityTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphGetEntityTool.js +2 -0
- package/dist/tools/memory-graph/GraphGetRelationshipsTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphGetRelationshipsTool.js +2 -0
- package/dist/tools/memory-graph/GraphListTemplatesTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphListTemplatesTool.js +2 -0
- package/dist/tools/memory-graph/GraphListTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphListTool.js +2 -0
- package/dist/tools/memory-graph/GraphOpenTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphOpenTool.js +3 -1
- package/dist/tools/memory-graph/GraphProposeVocabularyTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphProposeVocabularyTool.js +51 -6
- package/dist/tools/memory-graph/GraphSearchTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphSearchTool.js +2 -0
- package/dist/tools/memory-graph/GraphTraverseTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphTraverseTool.js +2 -0
- package/dist/tools/memory-graph/GraphUpdateEntitiesTool.d.ts +5 -2
- package/dist/tools/memory-graph/GraphUpdateEntitiesTool.js +2 -0
- package/dist/{mcp-server/tools/memory-graph/GraphSearchTool.d.ts → tools/memory-graph/GraphUpdateTool.d.ts} +4 -4
- package/dist/tools/memory-graph/GraphUpdateTool.js +59 -0
- package/dist/tools/memory-graph/KnowledgeSetListTool.d.ts +5 -2
- package/dist/tools/memory-graph/KnowledgeSetListTool.js +2 -0
- package/dist/tools/memory-graph/KnowledgeSetOpenTool.d.ts +5 -2
- package/dist/tools/memory-graph/KnowledgeSetOpenTool.js +2 -0
- package/package.json +1 -1
- package/package.json.backup +1 -1
- package/dist/clients/UcmApiClient.d.ts +0 -157
- package/dist/clients/UcmApiClient.js +0 -443
- package/dist/mcp-server/clients/UcmLocalApiClient.d.ts +0 -399
- package/dist/mcp-server/clients/UcmLocalApiClient.js +0 -719
- package/dist/mcp-server/index.d.ts +0 -3
- package/dist/mcp-server/index.js +0 -68
- package/dist/mcp-server/interfaces/ILogger.d.ts +0 -8
- package/dist/mcp-server/interfaces/ILogger.js +0 -4
- package/dist/mcp-server/interfaces/IMcpTool.d.ts +0 -7
- package/dist/mcp-server/interfaces/IMcpTool.js +0 -3
- package/dist/mcp-server/logging/ConsoleLogger.d.ts +0 -16
- package/dist/mcp-server/logging/ConsoleLogger.js +0 -45
- package/dist/mcp-server/logging/LoggerFactory.d.ts +0 -9
- package/dist/mcp-server/logging/LoggerFactory.js +0 -12
- package/dist/mcp-server/server/McpConfig.d.ts +0 -26
- package/dist/mcp-server/server/McpConfig.js +0 -90
- package/dist/mcp-server/server/McpHandler.d.ts +0 -12
- package/dist/mcp-server/server/McpHandler.js +0 -84
- package/dist/mcp-server/server/McpServer.d.ts +0 -15
- package/dist/mcp-server/server/McpServer.js +0 -49
- package/dist/mcp-server/server/ToolRegistry.d.ts +0 -23
- package/dist/mcp-server/server/ToolRegistry.js +0 -169
- package/dist/mcp-server/tools/authorization/ListAuthorizationsTool.d.ts +0 -21
- package/dist/mcp-server/tools/authorization/ListAuthorizationsTool.js +0 -146
- package/dist/mcp-server/tools/authorization/SignOutTool.d.ts +0 -23
- package/dist/mcp-server/tools/authorization/SignOutTool.js +0 -128
- package/dist/mcp-server/tools/base/BaseToolController.d.ts +0 -19
- package/dist/mcp-server/tools/base/BaseToolController.js +0 -58
- package/dist/mcp-server/tools/connections/AccessConnectionTool.d.ts +0 -21
- package/dist/mcp-server/tools/connections/AccessConnectionTool.js +0 -107
- package/dist/mcp-server/tools/connections/CallRemoteToolTool.d.ts +0 -22
- package/dist/mcp-server/tools/connections/CallRemoteToolTool.js +0 -124
- package/dist/mcp-server/tools/core/DeleteArtifactTool.d.ts +0 -11
- package/dist/mcp-server/tools/core/DeleteArtifactTool.js +0 -83
- package/dist/mcp-server/tools/core/EditArtifactMetadataTool.d.ts +0 -12
- package/dist/mcp-server/tools/core/EditArtifactMetadataTool.js +0 -173
- package/dist/mcp-server/tools/core/GetArtifactTool.d.ts +0 -13
- package/dist/mcp-server/tools/core/GetArtifactTool.js +0 -124
- package/dist/mcp-server/tools/core/GetArtifactVersionsTool.d.ts +0 -11
- package/dist/mcp-server/tools/core/GetArtifactVersionsTool.js +0 -63
- package/dist/mcp-server/tools/core/GetChunkTool.d.ts +0 -11
- package/dist/mcp-server/tools/core/GetChunkTool.js +0 -56
- package/dist/mcp-server/tools/core/ListArtifactsTool.d.ts +0 -11
- package/dist/mcp-server/tools/core/ListArtifactsTool.js +0 -84
- package/dist/mcp-server/tools/core/MoveArtifactTool.d.ts +0 -12
- package/dist/mcp-server/tools/core/MoveArtifactTool.js +0 -104
- package/dist/mcp-server/tools/core/PublishArtifactFromFileTool.d.ts +0 -15
- package/dist/mcp-server/tools/core/PublishArtifactFromFileTool.js +0 -277
- package/dist/mcp-server/tools/core/PublishArtifactTool.d.ts +0 -13
- package/dist/mcp-server/tools/core/PublishArtifactTool.js +0 -218
- package/dist/mcp-server/tools/core/SearchArtifactsTool.d.ts +0 -11
- package/dist/mcp-server/tools/core/SearchArtifactsTool.js +0 -137
- package/dist/mcp-server/tools/list/ListNamespaceController.d.ts +0 -1
- package/dist/mcp-server/tools/list/ListNamespaceController.js +0 -8
- package/dist/mcp-server/tools/memory-graph/GraphCreateEntitiesTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphCreateEntitiesTool.js +0 -58
- package/dist/mcp-server/tools/memory-graph/GraphCreateRelationshipsTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphCreateRelationshipsTool.js +0 -57
- package/dist/mcp-server/tools/memory-graph/GraphCreateTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphCreateTool.js +0 -64
- package/dist/mcp-server/tools/memory-graph/GraphDeleteEntitiesTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphDeleteEntitiesTool.js +0 -45
- package/dist/mcp-server/tools/memory-graph/GraphDeleteRelationshipsTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphDeleteRelationshipsTool.js +0 -45
- package/dist/mcp-server/tools/memory-graph/GraphExploreTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphExploreTool.js +0 -73
- package/dist/mcp-server/tools/memory-graph/GraphFindEntitiesTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphFindEntitiesTool.js +0 -68
- package/dist/mcp-server/tools/memory-graph/GraphFindPathsTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphFindPathsTool.js +0 -62
- package/dist/mcp-server/tools/memory-graph/GraphGetEntityTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphGetEntityTool.js +0 -49
- package/dist/mcp-server/tools/memory-graph/GraphGetRelationshipsTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphGetRelationshipsTool.js +0 -62
- package/dist/mcp-server/tools/memory-graph/GraphListTemplatesTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphListTemplatesTool.js +0 -34
- package/dist/mcp-server/tools/memory-graph/GraphListTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphListTool.js +0 -45
- package/dist/mcp-server/tools/memory-graph/GraphOpenTool.d.ts +0 -15
- package/dist/mcp-server/tools/memory-graph/GraphOpenTool.js +0 -50
- package/dist/mcp-server/tools/memory-graph/GraphProposeVocabularyTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphProposeVocabularyTool.js +0 -108
- package/dist/mcp-server/tools/memory-graph/GraphSearchTool.js +0 -94
- package/dist/mcp-server/tools/memory-graph/GraphTraverseTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphTraverseTool.js +0 -114
- package/dist/mcp-server/tools/memory-graph/GraphUpdateEntitiesTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/GraphUpdateEntitiesTool.js +0 -58
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetListTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetListTool.js +0 -25
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetOpenTool.d.ts +0 -14
- package/dist/mcp-server/tools/memory-graph/KnowledgeSetOpenTool.js +0 -31
- package/dist/mcp-server/tools/repository/CreateRepositoryTool.d.ts +0 -12
- package/dist/mcp-server/tools/repository/CreateRepositoryTool.js +0 -116
- package/dist/mcp-server/tools/repository/GetRepositoryTool.d.ts +0 -12
- package/dist/mcp-server/tools/repository/GetRepositoryTool.js +0 -85
- package/dist/mcp-server/tools/repository/UpdateRepositoryTool.d.ts +0 -12
- package/dist/mcp-server/tools/repository/UpdateRepositoryTool.js +0 -115
- package/dist/mcp-server/tools/sharepoint/SharePointListConnectionsTool.d.ts +0 -19
- package/dist/mcp-server/tools/sharepoint/SharePointListConnectionsTool.js +0 -90
- package/dist/mcp-server/tools/sharepoint/SharePointListFoldersTool.d.ts +0 -21
- package/dist/mcp-server/tools/sharepoint/SharePointListFoldersTool.js +0 -133
- package/dist/mcp-server/tools/sharepoint/SharePointReadFileTool.d.ts +0 -22
- package/dist/mcp-server/tools/sharepoint/SharePointReadFileTool.js +0 -146
- package/dist/mcp-server/tools/sharepoint/SharePointReadRelatedFileTool.d.ts +0 -18
- package/dist/mcp-server/tools/sharepoint/SharePointReadRelatedFileTool.js +0 -108
- package/dist/mcp-server/tools/sharepoint/SharePointSearchTool.d.ts +0 -22
- package/dist/mcp-server/tools/sharepoint/SharePointSearchTool.js +0 -125
- package/dist/mcp-server/tools/utility/AuthorIndexTool.d.ts +0 -11
- package/dist/mcp-server/tools/utility/AuthorIndexTool.js +0 -49
- package/dist/mcp-server/tools/utility/AuthorRecentsTool.d.ts +0 -11
- package/dist/mcp-server/tools/utility/AuthorRecentsTool.js +0 -49
- package/dist/mcp-server/tools/utility/ListRepositoriesTool.d.ts +0 -11
- package/dist/mcp-server/tools/utility/ListRepositoriesTool.js +0 -68
- package/dist/mcp-server/tools/utility/QuickstartTool.d.ts +0 -11
- package/dist/mcp-server/tools/utility/QuickstartTool.js +0 -36
- package/dist/mcp-server/types/UcmApiTypes.d.ts +0 -40
- package/dist/mcp-server/types/UcmApiTypes.js +0 -4
- package/dist/mcp-server/utils/McpErrorHandler.d.ts +0 -25
- package/dist/mcp-server/utils/McpErrorHandler.js +0 -67
- package/dist/mcp-server/utils/PathUtils.d.ts +0 -61
- package/dist/mcp-server/utils/PathUtils.js +0 -178
- package/dist/mcp-server/utils/ResponseChunker.d.ts +0 -25
- package/dist/mcp-server/utils/ResponseChunker.js +0 -79
- package/dist/mcp-server/utils/SharePointErrorHandler.d.ts +0 -34
- package/dist/mcp-server/utils/SharePointErrorHandler.js +0 -55
- package/dist/publish/package.json +0 -37
- package/dist/schemas/memory-graph-tool-schemas.d.ts +0 -789
- package/dist/schemas/memory-graph-tool-schemas.js +0 -181
- package/dist/tools/artifacts/GetArtifactController.d.ts +0 -34
- package/dist/tools/artifacts/GetArtifactController.js +0 -397
- package/dist/tools/artifacts/GetLatestController.d.ts +0 -39
- package/dist/tools/artifacts/GetLatestController.js +0 -469
- package/dist/tools/artifacts/ListVersionsController.d.ts +0 -43
- package/dist/tools/artifacts/ListVersionsController.js +0 -530
- package/dist/tools/artifacts/PublishArtifactController.d.ts +0 -37
- package/dist/tools/artifacts/PublishArtifactController.js +0 -605
- package/dist/tools/discovery/BrowseCategoriesController.d.ts +0 -25
- package/dist/tools/discovery/BrowseCategoriesController.js +0 -400
- package/dist/tools/discovery/FindByPurposeController.d.ts +0 -12
- package/dist/tools/discovery/FindByPurposeController.js +0 -131
- package/dist/tools/discovery/ListAuthorsController.d.ts +0 -20
- package/dist/tools/discovery/ListAuthorsController.js +0 -274
- package/dist/tools/discovery/SearchArtifactsController.d.ts +0 -14
- package/dist/tools/discovery/SearchArtifactsController.js +0 -226
- package/dist/tools/memory-graph/GraphGetStatsTool.d.ts +0 -11
- package/dist/tools/memory-graph/GraphGetStatsTool.js +0 -42
- package/dist/tools/memory-graph/GraphRemoveRelationshipsTool.d.ts +0 -11
- package/dist/tools/memory-graph/GraphRemoveRelationshipsTool.js +0 -47
- package/dist/tools/navigation/ExploreNamespaceController.d.ts +0 -35
- package/dist/tools/navigation/ExploreNamespaceController.js +0 -548
- package/dist/tools/repository/DeleteRepositoryGuidanceTool.d.ts +0 -13
- package/dist/tools/repository/DeleteRepositoryGuidanceTool.js +0 -93
- package/dist/tools/sharepoint/SharePointSignOutTool.d.ts +0 -22
- package/dist/tools/sharepoint/SharePointSignOutTool.js +0 -114
- package/dist/tools/utility/HealthCheckController.d.ts +0 -11
- package/dist/tools/utility/HealthCheckController.js +0 -60
- package/dist/tools/utility/SubmitFeedbackTool.d.ts +0 -16
- package/dist/tools/utility/SubmitFeedbackTool.js +0 -68
- package/dist/tools/utility/ValidatePathController.d.ts +0 -30
- package/dist/tools/utility/ValidatePathController.js +0 -465
- package/dist/utils/HttpsAgentFactory.d.ts +0 -21
- package/dist/utils/HttpsAgentFactory.js +0 -50
- package/dist/utils/ValidationUtils.d.ts +0 -10
- package/dist/utils/ValidationUtils.js +0 -50
|
@@ -236,6 +236,14 @@ export declare class UcmLocalApiClient {
|
|
|
236
236
|
description?: string;
|
|
237
237
|
scope?: string;
|
|
238
238
|
}): Promise<any>;
|
|
239
|
+
/**
|
|
240
|
+
* Update an existing Memory Graph's metadata
|
|
241
|
+
*/
|
|
242
|
+
updateMemoryGraph(memoryGraphId: string, data: {
|
|
243
|
+
label?: string;
|
|
244
|
+
description?: string | null;
|
|
245
|
+
usageInstructions?: string | null;
|
|
246
|
+
}): Promise<any>;
|
|
239
247
|
/**
|
|
240
248
|
* List available vocabulary templates for Memory Graph creation
|
|
241
249
|
*/
|
|
@@ -394,6 +402,45 @@ export declare class UcmLocalApiClient {
|
|
|
394
402
|
description?: string;
|
|
395
403
|
}>;
|
|
396
404
|
}>;
|
|
397
|
-
|
|
405
|
+
editEntityTypes?: Array<{
|
|
406
|
+
type: string;
|
|
407
|
+
description?: string;
|
|
408
|
+
justification: string;
|
|
409
|
+
addProperties?: Array<{
|
|
410
|
+
name: string;
|
|
411
|
+
type: string;
|
|
412
|
+
required: boolean;
|
|
413
|
+
description?: string;
|
|
414
|
+
}>;
|
|
415
|
+
removeProperties?: string[];
|
|
416
|
+
updateProperties?: Array<{
|
|
417
|
+
name: string;
|
|
418
|
+
type: string;
|
|
419
|
+
required: boolean;
|
|
420
|
+
description?: string;
|
|
421
|
+
}>;
|
|
422
|
+
}>;
|
|
423
|
+
editRelationshipTypes?: Array<{
|
|
424
|
+
type: string;
|
|
425
|
+
description?: string;
|
|
426
|
+
justification: string;
|
|
427
|
+
allowedSourceTypes?: string[];
|
|
428
|
+
allowedTargetTypes?: string[];
|
|
429
|
+
bidirectional?: boolean;
|
|
430
|
+
addProperties?: Array<{
|
|
431
|
+
name: string;
|
|
432
|
+
type: string;
|
|
433
|
+
required: boolean;
|
|
434
|
+
description?: string;
|
|
435
|
+
}>;
|
|
436
|
+
removeProperties?: string[];
|
|
437
|
+
updateProperties?: Array<{
|
|
438
|
+
name: string;
|
|
439
|
+
type: string;
|
|
440
|
+
required: boolean;
|
|
441
|
+
description?: string;
|
|
442
|
+
}>;
|
|
443
|
+
}>;
|
|
444
|
+
}): Promise<unknown>;
|
|
398
445
|
}
|
|
399
446
|
//# sourceMappingURL=UcmLocalApiClient.d.ts.map
|
|
@@ -535,6 +535,14 @@ export class UcmLocalApiClient {
|
|
|
535
535
|
const response = await client.post(`/api/v1/memory-graphs`, data);
|
|
536
536
|
return response.data;
|
|
537
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Update an existing Memory Graph's metadata
|
|
540
|
+
*/
|
|
541
|
+
async updateMemoryGraph(memoryGraphId, data) {
|
|
542
|
+
const client = this.ensureClient();
|
|
543
|
+
const response = await client.put(`/api/v1/memory-graphs/${memoryGraphId}`, data);
|
|
544
|
+
return response.data;
|
|
545
|
+
}
|
|
538
546
|
/**
|
|
539
547
|
* List available vocabulary templates for Memory Graph creation
|
|
540
548
|
*/
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ async function main() {
|
|
|
12
12
|
program
|
|
13
13
|
.name('ucm-mcp-server')
|
|
14
14
|
.description('Universal Context Manager - Read the ucm_connect tool first to avoid mistakes')
|
|
15
|
-
.version('6.
|
|
15
|
+
.version('6.7.0')
|
|
16
16
|
.option('-u, --ucm-url <url>', 'UCM API base URL (defaults to https://ucm.utaba.ai)')
|
|
17
17
|
.option('-p, --port <port>', 'Server port', '3001')
|
|
18
18
|
.option('--log-level <level>', 'Log level', 'ERROR')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface IMcpTool {
|
|
2
2
|
readonly name: string;
|
|
3
3
|
readonly description: string;
|
|
4
|
-
readonly inputSchema:
|
|
5
|
-
execute(params:
|
|
4
|
+
readonly inputSchema: Record<string, unknown>;
|
|
5
|
+
execute(params: Record<string, unknown>): Promise<string>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=IMcpTool.d.ts.map
|
|
@@ -36,6 +36,7 @@ import { CallRemoteToolTool } from '../tools/connections/CallRemoteToolTool.js';
|
|
|
36
36
|
// Import memory graph tools
|
|
37
37
|
import { GraphListTool } from '../tools/memory-graph/GraphListTool.js';
|
|
38
38
|
import { GraphCreateTool } from '../tools/memory-graph/GraphCreateTool.js';
|
|
39
|
+
import { GraphUpdateTool } from '../tools/memory-graph/GraphUpdateTool.js';
|
|
39
40
|
import { GraphListTemplatesTool } from '../tools/memory-graph/GraphListTemplatesTool.js';
|
|
40
41
|
import { KnowledgeSetListTool } from '../tools/memory-graph/KnowledgeSetListTool.js';
|
|
41
42
|
import { KnowledgeSetOpenTool } from '../tools/memory-graph/KnowledgeSetOpenTool.js';
|
|
@@ -106,6 +107,7 @@ export class ToolRegistry {
|
|
|
106
107
|
// Register memory graph tools
|
|
107
108
|
this.registerTool(new GraphListTool(this.ucmClient, this.logger, this.authorId));
|
|
108
109
|
this.registerTool(new GraphCreateTool(this.ucmClient, this.logger, this.authorId));
|
|
110
|
+
this.registerTool(new GraphUpdateTool(this.ucmClient, this.logger, this.authorId));
|
|
109
111
|
this.registerTool(new GraphListTemplatesTool(this.ucmClient, this.logger, this.authorId));
|
|
110
112
|
this.registerTool(new KnowledgeSetListTool(this.ucmClient, this.logger, this.authorId));
|
|
111
113
|
this.registerTool(new KnowledgeSetOpenTool(this.ucmClient, this.logger, this.authorId));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IMcpTool } from '../../interfaces/IMcpTool.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { ZodSchema } from 'zod';
|
|
4
5
|
export declare abstract class BaseToolController implements IMcpTool {
|
|
5
6
|
protected ucmClient: UcmLocalApiClient;
|
|
6
7
|
protected logger: ILogger;
|
|
@@ -8,9 +9,11 @@ export declare abstract class BaseToolController implements IMcpTool {
|
|
|
8
9
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string | undefined);
|
|
9
10
|
abstract get name(): string;
|
|
10
11
|
abstract get description(): string;
|
|
11
|
-
abstract get inputSchema():
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
abstract get inputSchema(): Record<string, unknown>;
|
|
13
|
+
/** Override to provide a zod schema for runtime validation */
|
|
14
|
+
get schema(): ZodSchema | undefined;
|
|
15
|
+
execute(params: Record<string, unknown>): Promise<string>;
|
|
16
|
+
protected abstract handleExecute(params: Record<string, unknown>): Promise<string>;
|
|
17
|
+
protected validateParams(params: Record<string, unknown>): void;
|
|
15
18
|
}
|
|
16
19
|
//# sourceMappingURL=BaseToolController.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
2
|
+
import { ZodError } from 'zod';
|
|
2
3
|
export class BaseToolController {
|
|
3
4
|
ucmClient;
|
|
4
5
|
logger;
|
|
@@ -8,29 +9,45 @@ export class BaseToolController {
|
|
|
8
9
|
this.logger = logger;
|
|
9
10
|
this.publishingAuthorId = publishingAuthorId;
|
|
10
11
|
}
|
|
12
|
+
/** Override to provide a zod schema for runtime validation */
|
|
13
|
+
get schema() { return undefined; }
|
|
11
14
|
async execute(params) {
|
|
12
15
|
try {
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
let validated;
|
|
17
|
+
if (this.schema) {
|
|
18
|
+
validated = this.schema.parse(params);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
this.validateParams(params);
|
|
22
|
+
validated = params;
|
|
23
|
+
}
|
|
24
|
+
return await this.handleExecute(validated);
|
|
15
25
|
}
|
|
16
26
|
catch (error) {
|
|
27
|
+
if (error instanceof ZodError) {
|
|
28
|
+
throw new McpError(McpErrorCode.InvalidParams, `Invalid parameters: ${error.errors.map(e => `${e.path.join('.')}: ${e.message}`).join(', ')}`);
|
|
29
|
+
}
|
|
17
30
|
// Sanitize error for logging to avoid circular reference issues with axios errors
|
|
31
|
+
const err = error;
|
|
32
|
+
const response = err?.response;
|
|
33
|
+
const config = err?.config;
|
|
18
34
|
const sanitizedError = {
|
|
19
|
-
message:
|
|
20
|
-
name:
|
|
21
|
-
status:
|
|
22
|
-
statusText:
|
|
23
|
-
data:
|
|
24
|
-
url:
|
|
35
|
+
message: err?.message,
|
|
36
|
+
name: err?.name,
|
|
37
|
+
status: response?.status,
|
|
38
|
+
statusText: response?.statusText,
|
|
39
|
+
data: response?.data,
|
|
40
|
+
url: config?.url
|
|
25
41
|
};
|
|
26
42
|
this.logger.error('BaseToolController', `Tool ${this.name} execution failed`, '', sanitizedError);
|
|
27
43
|
throw error;
|
|
28
44
|
}
|
|
29
45
|
}
|
|
30
46
|
validateParams(params) {
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
47
|
+
// Legacy validation for tools that haven't adopted zod schemas yet
|
|
48
|
+
const schema = this.inputSchema;
|
|
49
|
+
if (schema.required) {
|
|
50
|
+
for (const field of schema.required) {
|
|
34
51
|
if (params[field] === undefined || params[field] === null) {
|
|
35
52
|
throw new McpError(McpErrorCode.InvalidParams, `Required parameter '${field}' is missing`);
|
|
36
53
|
}
|
|
@@ -6,7 +6,7 @@ export declare class MoveArtifactTool extends BaseToolController {
|
|
|
6
6
|
get name(): string;
|
|
7
7
|
get description(): string;
|
|
8
8
|
get inputSchema(): Record<string, unknown>;
|
|
9
|
-
protected handleExecute(params: Record<string, unknown>): Promise<
|
|
9
|
+
protected handleExecute(params: Record<string, unknown>): Promise<string>;
|
|
10
10
|
protected validateParams(params: Record<string, unknown>): void;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=MoveArtifactTool.d.ts.map
|
|
@@ -57,7 +57,7 @@ export class MoveArtifactTool extends BaseToolController {
|
|
|
57
57
|
_links: responseData._links || {}
|
|
58
58
|
};
|
|
59
59
|
this.logger.info('MoveArtifactTool', `Artifact moved successfully: ${sourcePath} → ${destinationPath}`);
|
|
60
|
-
return response;
|
|
60
|
+
return JSON.stringify(response);
|
|
61
61
|
}
|
|
62
62
|
catch (error) {
|
|
63
63
|
this.logger.error('MoveArtifactTool', `Failed to move artifact: ${sourcePath} → ${destinationPath}`, '', error);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphCreateEntitiesParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphCreateEntitiesTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphCreateEntitiesParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphCreateEntitiesTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphCreateEntitiesSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphCreateEntitiesTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphCreateEntitiesTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Create one or more entities in a Memory Graph. Each entity requires a type (from vocabulary) and label. Properties are validated against the vocabulary schema. Pass a single item in the array for single operations.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphCreateEntitiesSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphCreateRelationshipsParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphCreateRelationshipsTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphCreateRelationshipsParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphCreateRelationshipsTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphCreateRelationshipsSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphCreateRelationshipsTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphCreateRelationshipsTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Create one or more relationships between entities in a Memory Graph. Each relationship requires a type (from vocabulary), source entity ID, and target entity ID. Pass a single item in the array for single operations.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphCreateRelationshipsSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphCreateParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphCreateTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphCreateParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphCreateTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphCreateSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphCreateTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphCreateTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Create a new Memory Graph with a vocabulary template. Defaults to a personal graph. Set scope to \'organization\' to create an org-wide graph (requires Owner role). Call ucm_graph_list_templates first to see available templates.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphCreateSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphDeleteEntitiesParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphDeleteEntitiesTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphDeleteEntitiesParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphDeleteEntitiesTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphDeleteEntitiesSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphDeleteEntitiesTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphDeleteEntitiesTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Delete one or more entities from a Memory Graph. Each deleted entity also has its relationships removed. Pass entity IDs as an array.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphDeleteEntitiesSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphDeleteRelationshipsParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphDeleteRelationshipsTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphDeleteRelationshipsParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphDeleteRelationshipsTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphDeleteRelationshipsSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphDeleteRelationshipsTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphDeleteRelationshipsTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Delete one or more relationships from a Memory Graph by their IDs. Pass relationship IDs as an array.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphDeleteRelationshipsSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphExploreParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphExploreTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphExploreParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphExploreTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphExploreSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphExploreTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphExploreTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Explore the neighbourhood around an entity using BFS traversal (1-3 hops). Returns connected entities grouped by distance, with optional relationship/entity type filters.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphExploreSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphFindEntitiesParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphFindEntitiesTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphFindEntitiesParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphFindEntitiesTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphFindEntitiesSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphFindEntitiesTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphFindEntitiesTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Find entities in a Memory Graph by label, type, or property filters. Supports pagination and detail levels (brief/summary/full).';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphFindEntitiesSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphFindPathsParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphFindPathsTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphFindPathsParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphFindPathsTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphFindPathsSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphFindPathsTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphFindPathsTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Find paths between two entities in a Memory Graph. Returns all paths up to the specified max depth with optional relationship/entity type filtering.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphFindPathsSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphGetEntityParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphGetEntityTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphGetEntityParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphGetEntityTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphGetEntitySchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphGetEntityTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphGetEntityTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Get full details of an entity including all properties, data, and provenance. Use the entityId from find_entities or explore results.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphGetEntitySchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphGetRelationshipsParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphGetRelationshipsTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphGetRelationshipsParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphGetRelationshipsTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphGetRelationshipsSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphGetRelationshipsTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphGetRelationshipsTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'Get relationships for an entity with optional type filtering and direction control (outbound, inbound, or both).';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphGetRelationshipsSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphListTemplatesParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphListTemplatesTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(_params: GraphListTemplatesParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphListTemplatesTool.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { McpError, McpErrorCode } from '../../utils/McpErrorHandler.js';
|
|
3
|
+
import { GraphListTemplatesSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
3
4
|
export class GraphListTemplatesTool extends BaseToolController {
|
|
4
5
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
5
6
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -8,6 +9,7 @@ export class GraphListTemplatesTool extends BaseToolController {
|
|
|
8
9
|
get description() {
|
|
9
10
|
return 'List available vocabulary templates for creating Memory Graphs. Each template defines entity types, relationship types, and property definitions for a specific domain. Use the templateId when calling ucm_graph_create.';
|
|
10
11
|
}
|
|
12
|
+
get schema() { return GraphListTemplatesSchema; }
|
|
11
13
|
get inputSchema() {
|
|
12
14
|
return {
|
|
13
15
|
type: 'object',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
2
|
import { UcmLocalApiClient } from '../../clients/UcmLocalApiClient.js';
|
|
3
3
|
import { ILogger } from '../../interfaces/ILogger.js';
|
|
4
|
+
import { type GraphListParams } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
5
|
+
import { ZodSchema } from 'zod';
|
|
4
6
|
export declare class GraphListTool extends BaseToolController {
|
|
5
7
|
constructor(ucmClient: UcmLocalApiClient, logger: ILogger, publishingAuthorId?: string);
|
|
6
8
|
get name(): string;
|
|
7
9
|
get description(): string;
|
|
8
|
-
get
|
|
9
|
-
|
|
10
|
+
get schema(): ZodSchema;
|
|
11
|
+
get inputSchema(): Record<string, unknown>;
|
|
12
|
+
protected handleExecute(params: GraphListParams): Promise<string>;
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=GraphListTool.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BaseToolController } from '../base/BaseToolController.js';
|
|
2
|
+
import { GraphListSchema } from '../../../schemas/memory-graph-tool-schemas.js';
|
|
2
3
|
export class GraphListTool extends BaseToolController {
|
|
3
4
|
constructor(ucmClient, logger, publishingAuthorId) {
|
|
4
5
|
super(ucmClient, logger, publishingAuthorId);
|
|
@@ -7,6 +8,7 @@ export class GraphListTool extends BaseToolController {
|
|
|
7
8
|
get description() {
|
|
8
9
|
return 'List all Memory Graphs you have access to (including those not in a Knowledge Set). Returns graph metadata, embedding status, descriptions, and ownership scope (personal or organization).';
|
|
9
10
|
}
|
|
11
|
+
get schema() { return GraphListSchema; }
|
|
10
12
|
get inputSchema() {
|
|
11
13
|
return {
|
|
12
14
|
type: 'object',
|