@appaflytech/zeyrek-ai-mcp 0.0.48 → 0.0.49
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/.env.example +5 -0
- package/dist/config.js +2 -0
- package/dist/knowledge/access.js +4 -3
- package/dist/knowledge/assistantRun.js +165 -0
- package/dist/knowledge/componentCatalog.js +31 -0
- package/dist/knowledge/componentEvents.js +3 -0
- package/dist/knowledge/mobileComponentCatalog.js +15 -0
- package/dist/knowledge/motionResolve.js +1 -1
- package/dist/knowledge/styleResolve.js +7 -0
- package/dist/platform/errors.js +9 -0
- package/dist/platform/http.js +7 -2
- package/dist/platform/tokenVault.js +15 -0
- package/dist/resources/guides/assistant.md +194 -0
- package/dist/resources/guides/deployment.md +19 -1
- package/dist/resources/schema-fingerprint.json +4 -4
- package/dist/resources/schemas/AccessMatrixDto.json +2 -1
- package/dist/resources/schemas/AccessPermissionDto.json +2 -1
- package/dist/resources/schemas/AccessResourceDto.json +2 -1
- package/dist/resources/schemas/AssistantCapabilitiesDto.json +256 -0
- package/dist/resources/schemas/AssistantPublishStateDto.json +57 -0
- package/dist/resources/schemas/AssistantScenarioDto.json +91 -0
- package/dist/resources/schemas/AssistantScenarioRunDto.json +62 -0
- package/dist/resources/schemas/AssistantSettingsDto.json +52 -0
- package/dist/resources/schemas/AssistantSkillDto.json +78 -0
- package/dist/resources/schemas/AssistantSummaryDto.json +100 -0
- package/dist/resources/schemas/CreateAssistantScenarioCommand.json +81 -0
- package/dist/resources/schemas/CreateAssistantSkillCommand.json +83 -0
- package/dist/resources/schemas/CreateMicroserviceCommand.json +16 -0
- package/dist/resources/schemas/DescribeAssistantCapabilityCommand.json +145 -0
- package/dist/resources/schemas/GlobalFunctionUpdateResultDto.json +5 -1
- package/dist/resources/schemas/MicroserviceDto.json +16 -0
- package/dist/resources/schemas/PublishAssistantCommand.json +15 -0
- package/dist/resources/schemas/RunAssistantScenariosCommand.json +39 -0
- package/dist/resources/schemas/SimulateAssistantCommand.json +106 -0
- package/dist/resources/schemas/UpdateAssistantScenarioCommand.json +79 -0
- package/dist/resources/schemas/UpdateAssistantSettingsCommand.json +52 -0
- package/dist/resources/schemas/UpdateAssistantSkillCommand.json +81 -0
- package/dist/resources/schemas/UpdateMicroserviceCommand.json +16 -0
- package/dist/server.js +2 -0
- package/dist/tools/applications.js +4 -4
- package/dist/tools/assistant.js +382 -0
- package/dist/tools/deployments.js +9 -3
- package/dist/tools/microservices.js +1 -1
- package/dist/tools/mobile.js +2 -2
- package/dist/tools/projects.js +2 -2
- package/dist/tools/templates.js +1 -1
- package/dist/tools/themes.js +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"required": [
|
|
4
|
+
"code",
|
|
5
|
+
"input",
|
|
6
|
+
"name"
|
|
7
|
+
],
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"format": "uuid"
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"maxLength": 256,
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"code": {
|
|
20
|
+
"maxLength": 32,
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"actorUserId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "uuid",
|
|
28
|
+
"nullable": true
|
|
29
|
+
},
|
|
30
|
+
"actorPositionId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "uuid",
|
|
33
|
+
"nullable": true
|
|
34
|
+
},
|
|
35
|
+
"input": {
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"expectedCapabilities": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"nullable": true
|
|
45
|
+
},
|
|
46
|
+
"expectedFields": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"nullable": true
|
|
52
|
+
},
|
|
53
|
+
"expectedSource": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"nullable": true
|
|
56
|
+
},
|
|
57
|
+
"expectedRefusal": {
|
|
58
|
+
"$ref": "#/components/schemas/NgApps.Domain.Contexts.Assistant.Scenarios.AssistantRefusalKind"
|
|
59
|
+
},
|
|
60
|
+
"isLeakProbe": {
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": false
|
|
65
|
+
},
|
|
66
|
+
"components": {
|
|
67
|
+
"schemas": {
|
|
68
|
+
"NgApps.Domain.Contexts.Assistant.Scenarios.AssistantRefusalKind": {
|
|
69
|
+
"enum": [
|
|
70
|
+
"person-judgement",
|
|
71
|
+
"prediction",
|
|
72
|
+
"no-evidence"
|
|
73
|
+
],
|
|
74
|
+
"type": "string",
|
|
75
|
+
"format": ""
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"applicationId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid"
|
|
8
|
+
},
|
|
9
|
+
"enabled": {
|
|
10
|
+
"type": "boolean"
|
|
11
|
+
},
|
|
12
|
+
"authorizationSource": {
|
|
13
|
+
"$ref": "#/components/schemas/NgApps.Domain.Contexts.Assistant.Authorization.AssistantAuthorizationSource"
|
|
14
|
+
},
|
|
15
|
+
"identityMicroserviceId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uuid",
|
|
18
|
+
"nullable": true
|
|
19
|
+
},
|
|
20
|
+
"permissionListMicroserviceId": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": "uuid",
|
|
23
|
+
"nullable": true
|
|
24
|
+
},
|
|
25
|
+
"permissionKeyField": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"nullable": true
|
|
28
|
+
},
|
|
29
|
+
"guide": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"nullable": true
|
|
34
|
+
},
|
|
35
|
+
"nullable": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"components": {
|
|
41
|
+
"schemas": {
|
|
42
|
+
"NgApps.Domain.Contexts.Assistant.Authorization.AssistantAuthorizationSource": {
|
|
43
|
+
"enum": [
|
|
44
|
+
"platform",
|
|
45
|
+
"application-middleware"
|
|
46
|
+
],
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"required": [
|
|
4
|
+
"capabilityIds",
|
|
5
|
+
"name",
|
|
6
|
+
"slug",
|
|
7
|
+
"trigger"
|
|
8
|
+
],
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"format": "uuid"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"maxLength": 256,
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"slug": {
|
|
21
|
+
"maxLength": 128,
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"trigger": {
|
|
27
|
+
"maxLength": 1024,
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"instructions": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"nullable": true
|
|
34
|
+
},
|
|
35
|
+
"outputFormat": {
|
|
36
|
+
"$ref": "#/components/schemas/NgApps.Domain.Contexts.Assistant.Skills.AssistantSkillOutputFormat"
|
|
37
|
+
},
|
|
38
|
+
"autonomy": {
|
|
39
|
+
"$ref": "#/components/schemas/NgApps.Domain.Contexts.Assistant.Skills.AssistantSkillAutonomy"
|
|
40
|
+
},
|
|
41
|
+
"languages": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"nullable": true
|
|
47
|
+
},
|
|
48
|
+
"capabilityIds": {
|
|
49
|
+
"minItems": 1,
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "uuid"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"additionalProperties": false
|
|
58
|
+
},
|
|
59
|
+
"components": {
|
|
60
|
+
"schemas": {
|
|
61
|
+
"NgApps.Domain.Contexts.Assistant.Skills.AssistantSkillOutputFormat": {
|
|
62
|
+
"enum": [
|
|
63
|
+
"suggestion-card",
|
|
64
|
+
"list",
|
|
65
|
+
"findings",
|
|
66
|
+
"text"
|
|
67
|
+
],
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": ""
|
|
70
|
+
},
|
|
71
|
+
"NgApps.Domain.Contexts.Assistant.Skills.AssistantSkillAutonomy": {
|
|
72
|
+
"enum": [
|
|
73
|
+
"suggest",
|
|
74
|
+
"execute"
|
|
75
|
+
],
|
|
76
|
+
"type": "string",
|
|
77
|
+
"format": ""
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -23,6 +23,22 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"nullable": true
|
|
25
25
|
},
|
|
26
|
+
"assistantDescription": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"nullable": true
|
|
31
|
+
},
|
|
32
|
+
"nullable": true
|
|
33
|
+
},
|
|
34
|
+
"assistantCaution": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"nullable": true
|
|
39
|
+
},
|
|
40
|
+
"nullable": true
|
|
41
|
+
},
|
|
26
42
|
"slug": {
|
|
27
43
|
"minLength": 1,
|
|
28
44
|
"type": "string"
|
package/dist/server.js
CHANGED
|
@@ -54,6 +54,7 @@ import { registerBpmReportingTools } from "./tools/bpmReporting.js";
|
|
|
54
54
|
import { registerModuleTools } from "./tools/modules.js";
|
|
55
55
|
import { registerMobileTools } from "./tools/mobile.js";
|
|
56
56
|
import { registerMobileStoreTools } from "./tools/mobileStore.js";
|
|
57
|
+
import { registerAssistantTools } from "./tools/assistant.js";
|
|
57
58
|
const moduleRegistrations = {
|
|
58
59
|
platform: registerPlatformTools,
|
|
59
60
|
project: registerProjectTools,
|
|
@@ -112,6 +113,7 @@ const moduleRegistrations = {
|
|
|
112
113
|
registerMobileStoreTools(server, platform);
|
|
113
114
|
registerMobilePublishPrompt(server);
|
|
114
115
|
},
|
|
116
|
+
assistant: registerAssistantTools,
|
|
115
117
|
};
|
|
116
118
|
export function createGatewayServer(platform) {
|
|
117
119
|
const server = rejectUnknownArguments(instrumentServer(new McpServer({ name: "ngapps", version: "0.1.0" }), platform.config), platform);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { guid, pagingParams, readOnly, writes, updates, destructive } from './common.js';
|
|
1
|
+
import { guid, pagingParams, readOnly, writes, updates, destructive, templateSubscriptionLock } from './common.js';
|
|
2
2
|
import { handle } from '../platform/responses.js';
|
|
3
3
|
import { forgetApplication, readApplicationPlatform, resolveApplication } from '../knowledge/platform/resolve.js';
|
|
4
4
|
import { mobileTabsProblems, readMobileTabs } from '../knowledge/platform/mobileTabs.js';
|
|
@@ -91,7 +91,7 @@ export function registerApplicationTools(server, platform) {
|
|
|
91
91
|
}, handle(config, args => platform.org('GET', `/applications/${args.id}`)));
|
|
92
92
|
server.registerTool('application_create', {
|
|
93
93
|
title: 'Application oluştur',
|
|
94
|
-
description:
|
|
94
|
+
description: `Projeye yeni application ekler. ${templateSubscriptionLock}`,
|
|
95
95
|
inputSchema: {
|
|
96
96
|
projectId: guid,
|
|
97
97
|
slug: z.string().min(1),
|
|
@@ -113,7 +113,7 @@ export function registerApplicationTools(server, platform) {
|
|
|
113
113
|
}));
|
|
114
114
|
server.registerTool('application_update', {
|
|
115
115
|
title: 'Application güncelle',
|
|
116
|
-
description:
|
|
116
|
+
description: `Application bilgilerini günceller; homepageId zorunludur (mevcut değeri application_get ile alın). ${templateSubscriptionLock}`,
|
|
117
117
|
inputSchema: {
|
|
118
118
|
id: guid,
|
|
119
119
|
slug: z.string().min(1),
|
|
@@ -136,7 +136,7 @@ export function registerApplicationTools(server, platform) {
|
|
|
136
136
|
}));
|
|
137
137
|
server.registerTool('application_delete', {
|
|
138
138
|
title: 'Application sil',
|
|
139
|
-
description:
|
|
139
|
+
description: `Application'ı kalıcı olarak siler. ${templateSubscriptionLock}`,
|
|
140
140
|
inputSchema: { id: guid },
|
|
141
141
|
annotations: destructive
|
|
142
142
|
}, handle(config, async (args) => {
|