@sap-ux/fiori-mcp-server 0.0.3 → 0.0.5
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/tools/execute-functionality.d.ts +2 -2
- package/dist/tools/functionalities/functionalities.d.ts +58 -1
- package/dist/tools/functionalities/generate-fiori-ui-app/command.d.ts +2 -2
- package/dist/tools/functionalities/page/add-page.js +10 -1
- package/dist/tools/functionalities/page/application.d.ts +1 -2
- package/dist/tools/functionalities/page/application.js +12 -14
- package/dist/tools/functionalities/page/types.d.ts +1 -0
- package/dist/tools/functionalities/page/types.js +2 -1
- package/dist/tools/get-functionality-details.js +1 -1
- package/dist/tools/index.js +44 -10
- package/dist/tools/utils.d.ts +10 -0
- package/dist/tools/utils.js +49 -1
- package/dist/types/basic.d.ts +123 -0
- package/dist/types/basic.js +108 -0
- package/dist/types/index.d.ts +38 -0
- package/dist/{types.js → types/index.js} +1 -1
- package/dist/types/input.d.ts +29 -0
- package/dist/types/input.js +77 -0
- package/dist/types/output.d.ts +125 -0
- package/dist/types/output.js +97 -0
- package/package.json +3 -3
- package/dist/tools/input-schema/execute-functionality.json +0 -28
- package/dist/tools/input-schema/get-functionality-details.json +0 -24
- package/dist/tools/input-schema/index.d.ts +0 -5
- package/dist/tools/input-schema/index.js +0 -15
- package/dist/tools/input-schema/list-fiori-apps.json +0 -12
- package/dist/tools/input-schema/list-functionality.json +0 -10
- package/dist/tools/output-schema/execute-functionality.json +0 -39
- package/dist/tools/output-schema/get-functionality-details.json +0 -166
- package/dist/tools/output-schema/index.d.ts +0 -5
- package/dist/tools/output-schema/index.js +0 -15
- package/dist/tools/output-schema/list-fiori-apps.json +0 -41
- package/dist/tools/output-schema/list-functionality.json +0 -37
- package/dist/types.d.ts +0 -174
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Input interface for the 'list-fiori-apps' functionality
|
|
4
|
+
*/
|
|
5
|
+
export declare const ListFioriAppsInputSchema: zod.ZodObject<{
|
|
6
|
+
searchPath: zod.ZodArray<zod.ZodString>;
|
|
7
|
+
}, zod.z.core.$strip>;
|
|
8
|
+
/**
|
|
9
|
+
* Input interface for the 'list-functionality' functionality
|
|
10
|
+
*/
|
|
11
|
+
export declare const ListFunctionalitiesInputSchema: zod.ZodObject<{
|
|
12
|
+
appPath: zod.ZodString;
|
|
13
|
+
}, zod.z.core.$strip>;
|
|
14
|
+
/**
|
|
15
|
+
* Input interface for the 'get-functionality-details' functionality
|
|
16
|
+
*/
|
|
17
|
+
export declare const GetFunctionalityDetailsInputSchema: zod.ZodObject<{
|
|
18
|
+
appPath: zod.ZodString;
|
|
19
|
+
functionalityId: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>]>;
|
|
20
|
+
}, zod.z.core.$strip>;
|
|
21
|
+
/**
|
|
22
|
+
* Input interface for the 'execute-functionality' functionality
|
|
23
|
+
*/
|
|
24
|
+
export declare const ExecuteFunctionalityInputSchema: zod.ZodObject<{
|
|
25
|
+
functionalityId: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>]>;
|
|
26
|
+
parameters: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
27
|
+
appPath: zod.ZodString;
|
|
28
|
+
}, zod.z.core.$strip>;
|
|
29
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ExecuteFunctionalityInputSchema = exports.GetFunctionalityDetailsInputSchema = exports.ListFunctionalitiesInputSchema = exports.ListFioriAppsInputSchema = void 0;
|
|
37
|
+
const zod = __importStar(require("zod"));
|
|
38
|
+
const basic_1 = require("./basic");
|
|
39
|
+
/**
|
|
40
|
+
* Input interface for the 'list-fiori-apps' functionality
|
|
41
|
+
*/
|
|
42
|
+
exports.ListFioriAppsInputSchema = zod.object({
|
|
43
|
+
/** Array of paths to search for Fiori applications */
|
|
44
|
+
searchPath: zod
|
|
45
|
+
.array(zod.string())
|
|
46
|
+
.describe('Path to search for Fiori applications (defaults to current directory). If VSCode - list of VS Code workspace folder paths(`workspace.workspaceFolders`)')
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* Input interface for the 'list-functionality' functionality
|
|
50
|
+
*/
|
|
51
|
+
exports.ListFunctionalitiesInputSchema = zod.object({
|
|
52
|
+
/** Path to the Fiori application */
|
|
53
|
+
appPath: zod
|
|
54
|
+
.string()
|
|
55
|
+
.describe('Path to the root folder of the Fiori application (where package.json and ui5.yaml reside). Path should be an absolute path.')
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* Input interface for the 'get-functionality-details' functionality
|
|
59
|
+
*/
|
|
60
|
+
exports.GetFunctionalityDetailsInputSchema = zod.object({
|
|
61
|
+
/** Path to the Fiori application */
|
|
62
|
+
appPath: zod.string().describe('Path to the Fiori application. Path should be an absolute path.'),
|
|
63
|
+
/** ID or array of IDs of the functionality(ies) */
|
|
64
|
+
functionalityId: basic_1.FunctionalityIdSchema.describe('The ID of the functionality to get details for')
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* Input interface for the 'execute-functionality' functionality
|
|
68
|
+
*/
|
|
69
|
+
exports.ExecuteFunctionalityInputSchema = zod.object({
|
|
70
|
+
/** ID or array of IDs of the functionality(ies) to execute */
|
|
71
|
+
functionalityId: basic_1.FunctionalityIdSchema.describe('The ID of the functionality to execute'),
|
|
72
|
+
/** Parameters for the functionality execution */
|
|
73
|
+
parameters: zod.record(zod.string(), zod.unknown()).describe('Parameters for the functionality execution'),
|
|
74
|
+
/** Path to the Fiori application */
|
|
75
|
+
appPath: zod.string().describe('Path to the Fiori application. Path should be an absolute path.')
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as zod from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Output interface for the 'list-fiori-apps' functionality
|
|
4
|
+
*/
|
|
5
|
+
export declare const ListFioriAppsOutputSchema: zod.ZodObject<{
|
|
6
|
+
applications: zod.ZodArray<zod.ZodObject<{
|
|
7
|
+
name: zod.ZodString;
|
|
8
|
+
appPath: zod.ZodString;
|
|
9
|
+
projectPath: zod.ZodString;
|
|
10
|
+
projectType: zod.ZodEnum<{
|
|
11
|
+
EDMXBackend: "EDMXBackend";
|
|
12
|
+
CAPJava: "CAPJava";
|
|
13
|
+
CAPNodejs: "CAPNodejs";
|
|
14
|
+
}>;
|
|
15
|
+
odataVersion: zod.ZodString;
|
|
16
|
+
}, zod.z.core.$strip>>;
|
|
17
|
+
}, zod.z.core.$strip>;
|
|
18
|
+
/**
|
|
19
|
+
* Output interface for the 'list-functionality' functionality
|
|
20
|
+
*/
|
|
21
|
+
export declare const ListFunctionalitiesOutputSchema: zod.ZodObject<{
|
|
22
|
+
applicationPath: zod.ZodString;
|
|
23
|
+
functionalities: zod.ZodArray<zod.ZodObject<{
|
|
24
|
+
functionalityId: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>]>;
|
|
25
|
+
description: zod.ZodString;
|
|
26
|
+
}, zod.z.core.$strip>>;
|
|
27
|
+
}, zod.z.core.$strip>;
|
|
28
|
+
/**
|
|
29
|
+
* Output interface for the 'get-functionality-details' functionality
|
|
30
|
+
*/
|
|
31
|
+
export declare const GetFunctionalityDetailsOutputSchema: zod.ZodObject<{
|
|
32
|
+
functionalityId: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>]>;
|
|
33
|
+
name: zod.ZodString;
|
|
34
|
+
description: zod.ZodString;
|
|
35
|
+
technicalDescription: zod.ZodOptional<zod.ZodString>;
|
|
36
|
+
parameters: zod.ZodArray<zod.ZodObject<{
|
|
37
|
+
id: zod.ZodString;
|
|
38
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
39
|
+
type: zod.ZodEnum<{
|
|
40
|
+
string: "string";
|
|
41
|
+
number: "number";
|
|
42
|
+
boolean: "boolean";
|
|
43
|
+
object: "object";
|
|
44
|
+
array: "array";
|
|
45
|
+
}>;
|
|
46
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
47
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
48
|
+
defaultValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
49
|
+
options: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>>>;
|
|
50
|
+
currentValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
51
|
+
examples: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
52
|
+
pattern: zod.ZodOptional<zod.ZodString>;
|
|
53
|
+
parameters: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
54
|
+
id: zod.ZodString;
|
|
55
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
56
|
+
type: zod.ZodEnum<{
|
|
57
|
+
string: "string";
|
|
58
|
+
number: "number";
|
|
59
|
+
boolean: "boolean";
|
|
60
|
+
object: "object";
|
|
61
|
+
array: "array";
|
|
62
|
+
}>;
|
|
63
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
64
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
65
|
+
defaultValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
66
|
+
options: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>>>;
|
|
67
|
+
currentValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
68
|
+
examples: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
69
|
+
pattern: zod.ZodOptional<zod.ZodString>;
|
|
70
|
+
parameters: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
71
|
+
id: zod.ZodString;
|
|
72
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
73
|
+
type: zod.ZodEnum<{
|
|
74
|
+
string: "string";
|
|
75
|
+
number: "number";
|
|
76
|
+
boolean: "boolean";
|
|
77
|
+
object: "object";
|
|
78
|
+
array: "array";
|
|
79
|
+
}>;
|
|
80
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
81
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
82
|
+
defaultValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
83
|
+
options: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>>>;
|
|
84
|
+
currentValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
85
|
+
examples: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
86
|
+
pattern: zod.ZodOptional<zod.ZodString>;
|
|
87
|
+
parameters: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
88
|
+
id: zod.ZodString;
|
|
89
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
90
|
+
type: zod.ZodEnum<{
|
|
91
|
+
string: "string";
|
|
92
|
+
number: "number";
|
|
93
|
+
boolean: "boolean";
|
|
94
|
+
object: "object";
|
|
95
|
+
array: "array";
|
|
96
|
+
}>;
|
|
97
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
98
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
99
|
+
defaultValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
100
|
+
options: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodNull]>>>;
|
|
101
|
+
currentValue: zod.ZodOptional<zod.ZodUnknown>;
|
|
102
|
+
examples: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
103
|
+
pattern: zod.ZodOptional<zod.ZodString>;
|
|
104
|
+
}, zod.z.core.$strip>>>;
|
|
105
|
+
}, zod.z.core.$strip>>>;
|
|
106
|
+
}, zod.z.core.$strip>>>;
|
|
107
|
+
}, zod.z.core.$strip>>;
|
|
108
|
+
prerequisites: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
109
|
+
impact: zod.ZodOptional<zod.ZodString>;
|
|
110
|
+
examples: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
111
|
+
pageName: zod.ZodOptional<zod.ZodString>;
|
|
112
|
+
}, zod.z.core.$strip>;
|
|
113
|
+
/**
|
|
114
|
+
* Output interface for the 'execute-functionality' functionality
|
|
115
|
+
*/
|
|
116
|
+
export declare const ExecuteFunctionalityOutputSchema: zod.ZodObject<{
|
|
117
|
+
functionalityId: zod.ZodUnion<readonly [zod.ZodString, zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>]>;
|
|
118
|
+
status: zod.ZodString;
|
|
119
|
+
message: zod.ZodString;
|
|
120
|
+
parameters: zod.ZodUnknown;
|
|
121
|
+
appPath: zod.ZodString;
|
|
122
|
+
changes: zod.ZodArray<zod.ZodString>;
|
|
123
|
+
timestamp: zod.ZodString;
|
|
124
|
+
}, zod.z.core.$strip>;
|
|
125
|
+
//# sourceMappingURL=output.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ExecuteFunctionalityOutputSchema = exports.GetFunctionalityDetailsOutputSchema = exports.ListFunctionalitiesOutputSchema = exports.ListFioriAppsOutputSchema = void 0;
|
|
37
|
+
const zod = __importStar(require("zod"));
|
|
38
|
+
const basic_1 = require("./basic");
|
|
39
|
+
/**
|
|
40
|
+
* Output interface for the 'list-fiori-apps' functionality
|
|
41
|
+
*/
|
|
42
|
+
exports.ListFioriAppsOutputSchema = zod.object({
|
|
43
|
+
/** Array of found Fiori applications */
|
|
44
|
+
applications: zod.array(basic_1.FioriAppSchema)
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Output interface for the 'list-functionality' functionality
|
|
48
|
+
*/
|
|
49
|
+
exports.ListFunctionalitiesOutputSchema = zod.object({
|
|
50
|
+
/** Path to the Fiori application */
|
|
51
|
+
applicationPath: zod.string(),
|
|
52
|
+
/** Array of available functionalities */
|
|
53
|
+
functionalities: zod.array(basic_1.FunctionalitySchema)
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Output interface for the 'get-functionality-details' functionality
|
|
57
|
+
*/
|
|
58
|
+
exports.GetFunctionalityDetailsOutputSchema = zod.object({
|
|
59
|
+
/** ID of the functionality */
|
|
60
|
+
functionalityId: basic_1.FunctionalityIdSchema.describe('Identifier to pass as the `functionalityId` parameter when calling `get-functionality-details` or `execute-functionality`'),
|
|
61
|
+
/** Name of the functionality */
|
|
62
|
+
name: zod.string(),
|
|
63
|
+
/** Description of the functionality */
|
|
64
|
+
description: zod.string(),
|
|
65
|
+
/** Technical description of the functionality */
|
|
66
|
+
technicalDescription: zod.string().optional(),
|
|
67
|
+
/** Array of parameters for the functionality */
|
|
68
|
+
parameters: zod.array(basic_1.ParameterSchema),
|
|
69
|
+
/** Array of prerequisites for the functionality */
|
|
70
|
+
prerequisites: zod.array(zod.string()).optional(),
|
|
71
|
+
/** Impact of the functionality */
|
|
72
|
+
impact: zod.string().optional(),
|
|
73
|
+
/** Array of examples for the functionality */
|
|
74
|
+
examples: zod.array(zod.string()).optional(),
|
|
75
|
+
/** Name of the page associated with the functionality */
|
|
76
|
+
pageName: zod.string().optional()
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* Output interface for the 'execute-functionality' functionality
|
|
80
|
+
*/
|
|
81
|
+
exports.ExecuteFunctionalityOutputSchema = zod.object({
|
|
82
|
+
/** ID or array of IDs of the executed functionality(ies) */
|
|
83
|
+
functionalityId: basic_1.FunctionalityIdSchema,
|
|
84
|
+
/** Status of the execution */
|
|
85
|
+
status: zod.string(),
|
|
86
|
+
/** Message describing the execution result */
|
|
87
|
+
message: zod.string(),
|
|
88
|
+
/** Parameters used in the execution */
|
|
89
|
+
parameters: zod.unknown(),
|
|
90
|
+
/** Path to the Fiori application */
|
|
91
|
+
appPath: zod.string(),
|
|
92
|
+
/** Array of changes made during the execution */
|
|
93
|
+
changes: zod.array(zod.string()),
|
|
94
|
+
/** Timestamp of the execution */
|
|
95
|
+
timestamp: zod.string()
|
|
96
|
+
});
|
|
97
|
+
//# sourceMappingURL=output.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-mcp-server",
|
|
3
3
|
"description": "SAP Fiori - Model Context Protocol (MCP) server",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SAP Fiori tools",
|
|
7
7
|
"SAP Fiori elements",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@types/json-schema": "7.0.5",
|
|
32
32
|
"@types/mem-fs": "1.1.2",
|
|
33
33
|
"@sap-ux/i18n": "0.3.3",
|
|
34
|
-
"@sap-ux/
|
|
34
|
+
"@sap-ux/text-document-utils": "0.3.1",
|
|
35
35
|
"@sap-ux/odata-annotation-core-types": "0.4.5",
|
|
36
|
-
"@sap-ux/
|
|
36
|
+
"@sap-ux/odata-entity-model": "0.3.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@modelcontextprotocol/sdk": "1.17.4",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"appPath": {
|
|
5
|
-
"type": "string",
|
|
6
|
-
"description": "Path to the Fiori application. Path should be an absolute path."
|
|
7
|
-
},
|
|
8
|
-
"functionalityId": {
|
|
9
|
-
"anyOf": [
|
|
10
|
-
{
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": ["string", "number"]
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"type": "string"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"description": "The ID of the functionality to execute"
|
|
21
|
-
},
|
|
22
|
-
"parameters": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"description": "Parameters for the functionality execution"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": ["functionalityId", "appPath", "parameters"]
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"appPath": {
|
|
5
|
-
"type": "string",
|
|
6
|
-
"description": "Path to the Fiori application. Path should be an absolute path."
|
|
7
|
-
},
|
|
8
|
-
"functionalityId": {
|
|
9
|
-
"anyOf": [
|
|
10
|
-
{
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": ["string", "number"]
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"type": "string"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"description": "The ID of the functionality to get details for"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"required": ["appPath", "functionalityId"]
|
|
24
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default as executeFunctionalityInputSchema } from './execute-functionality.json';
|
|
2
|
-
export { default as getFunctionalityDetailsInputSchema } from './get-functionality-details.json';
|
|
3
|
-
export { default as listFioriAppsInputSchema } from './list-fiori-apps.json';
|
|
4
|
-
export { default as listFunctionalityInputSchema } from './list-functionality.json';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.listFunctionalityInputSchema = exports.listFioriAppsInputSchema = exports.getFunctionalityDetailsInputSchema = exports.executeFunctionalityInputSchema = void 0;
|
|
7
|
-
var execute_functionality_json_1 = require("./execute-functionality.json");
|
|
8
|
-
Object.defineProperty(exports, "executeFunctionalityInputSchema", { enumerable: true, get: function () { return __importDefault(execute_functionality_json_1).default; } });
|
|
9
|
-
var get_functionality_details_json_1 = require("./get-functionality-details.json");
|
|
10
|
-
Object.defineProperty(exports, "getFunctionalityDetailsInputSchema", { enumerable: true, get: function () { return __importDefault(get_functionality_details_json_1).default; } });
|
|
11
|
-
var list_fiori_apps_json_1 = require("./list-fiori-apps.json");
|
|
12
|
-
Object.defineProperty(exports, "listFioriAppsInputSchema", { enumerable: true, get: function () { return __importDefault(list_fiori_apps_json_1).default; } });
|
|
13
|
-
var list_functionality_json_1 = require("./list-functionality.json");
|
|
14
|
-
Object.defineProperty(exports, "listFunctionalityInputSchema", { enumerable: true, get: function () { return __importDefault(list_functionality_json_1).default; } });
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"searchPath": {
|
|
5
|
-
"type": "array",
|
|
6
|
-
"items": {
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
"description": "Path to search for Fiori applications (defaults to current directory). If VSCode - list of VS Code workspace folder paths(`workspace.workspaceFolders`)"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"functionalityId": {
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "array",
|
|
8
|
-
"items": {
|
|
9
|
-
"type": ["string", "number"]
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "string"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"status": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"message": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"parameters": {},
|
|
24
|
-
"appPath": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"changes": {
|
|
28
|
-
"type": "array",
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"timestamp": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"required": ["functionalityId", "status", "message", "parameters", "appPath", "changes", "timestamp"],
|
|
38
|
-
"additionalProperties": false
|
|
39
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"properties": {
|
|
4
|
-
"functionalityId": {
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"type": ["string", "number"]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"description": "Identifier to pass as the `functionalityId` parameter when calling `get-functionality-details` or `execute-functionality`"
|
|
17
|
-
},
|
|
18
|
-
"name": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"description": {
|
|
22
|
-
"type": "string"
|
|
23
|
-
},
|
|
24
|
-
"technicalDescription": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"parameters": {
|
|
28
|
-
"type": "array",
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"id": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
|
-
"name": {
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
"type": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"enum": ["string", "number", "boolean", "array", "object"]
|
|
41
|
-
},
|
|
42
|
-
"required": {
|
|
43
|
-
"type": "boolean"
|
|
44
|
-
},
|
|
45
|
-
"description": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"defaultValue": {},
|
|
49
|
-
"options": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"items": {
|
|
52
|
-
"anyOf": [
|
|
53
|
-
{
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"type": "number"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "boolean"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"not": {}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "null"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"currentValue": {},
|
|
72
|
-
"examples": {
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"type": "string"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"pattern": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
"parameters": {
|
|
82
|
-
"type": "array",
|
|
83
|
-
"items": {
|
|
84
|
-
"type": "object",
|
|
85
|
-
"properties": {
|
|
86
|
-
"id": {
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
"name": {
|
|
90
|
-
"type": "string"
|
|
91
|
-
},
|
|
92
|
-
"type": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"enum": ["string", "number", "boolean", "array", "object"]
|
|
95
|
-
},
|
|
96
|
-
"required": {
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
|
-
"description": {
|
|
100
|
-
"type": "string"
|
|
101
|
-
},
|
|
102
|
-
"defaultValue": {},
|
|
103
|
-
"options": {
|
|
104
|
-
"type": "array",
|
|
105
|
-
"items": {
|
|
106
|
-
"anyOf": [
|
|
107
|
-
{
|
|
108
|
-
"type": "string"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "number"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"type": "boolean"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"not": {}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "null"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"currentValue": {},
|
|
126
|
-
"examples": {
|
|
127
|
-
"type": "array",
|
|
128
|
-
"items": {
|
|
129
|
-
"type": "string"
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"pattern": {
|
|
133
|
-
"type": "string"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"required": ["id", "type"],
|
|
137
|
-
"additionalProperties": false
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"required": ["id", "type"],
|
|
142
|
-
"additionalProperties": false
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
"prerequisites": {
|
|
146
|
-
"type": "array",
|
|
147
|
-
"items": {
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"impact": {
|
|
152
|
-
"type": "string"
|
|
153
|
-
},
|
|
154
|
-
"examples": {
|
|
155
|
-
"type": "array",
|
|
156
|
-
"items": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"pageName": {
|
|
161
|
-
"type": "string"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"required": ["functionalityId", "name", "description", "parameters"],
|
|
165
|
-
"additionalProperties": false
|
|
166
|
-
}
|