@sap-ux/fiori-mcp-server 0.1.2 → 0.1.3
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/README.md +7 -7
- package/dist/index.js +20 -20
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -74,15 +74,15 @@ The following rules help guide the LLM to use the server correctly:
|
|
|
74
74
|
|
|
75
75
|
## [Available Tools](#available-tools)
|
|
76
76
|
|
|
77
|
-
#### `
|
|
78
|
-
Searches Fiori Elements, Annotations,
|
|
79
|
-
Note: the results are based on the
|
|
77
|
+
#### `search_docs`
|
|
78
|
+
Searches Fiori Elements, Annotations, UI5, Fiori tools documentation for the given query.
|
|
79
|
+
Note: the results are based on the most recent indexed version of UI5 documentation
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
#### `
|
|
82
|
+
#### `list_fiori_apps`
|
|
83
83
|
Scans a specified directory to find existing SAP Fiori applications that can be modified.
|
|
84
84
|
|
|
85
|
-
#### `
|
|
85
|
+
#### `list_functionalities` (Step 1 of 3)
|
|
86
86
|
Gets the list of supported functionalities to create a new or modify an existing SAP Fiori application.
|
|
87
87
|
|
|
88
88
|
The main functionalities are:
|
|
@@ -92,10 +92,10 @@ The main functionalities are:
|
|
|
92
92
|
- Adding and modifying controller extensions
|
|
93
93
|
- Modifying `manifest.json` properties depending on the app (e.g. adding Flexible Column Layout, enabling initial load)
|
|
94
94
|
|
|
95
|
-
#### `
|
|
95
|
+
#### `get_functionality_details` (Step 2 of 3)
|
|
96
96
|
Gets the required parameters and detailed information for a specific functionality to create a new or modify an existing SAP Fiori application.
|
|
97
97
|
|
|
98
|
-
#### `
|
|
98
|
+
#### `execute_functionality` (Step 3 of 3)
|
|
99
99
|
Executes a specific functionality to create a new or modify an existing SAP Fiori application with provided parameters.
|
|
100
100
|
|
|
101
101
|
## Code of Conduct
|
package/dist/index.js
CHANGED
|
@@ -203999,7 +203999,7 @@ var StdioServerTransport = class {
|
|
|
203999
203999
|
};
|
|
204000
204000
|
|
|
204001
204001
|
// package.json
|
|
204002
|
-
var version = "0.1.
|
|
204002
|
+
var version = "0.1.3";
|
|
204003
204003
|
var package_default = {
|
|
204004
204004
|
name: "@sap-ux/fiori-mcp-server",
|
|
204005
204005
|
description: "SAP Fiori - Model Context Protocol (MCP) server",
|
|
@@ -208779,7 +208779,7 @@ var FioriAppSchema = object({
|
|
|
208779
208779
|
var FunctionalityIdSchema = union([string2(), array(union([string2(), number2()]))]);
|
|
208780
208780
|
var FunctionalitySchema = object({
|
|
208781
208781
|
functionalityId: FunctionalityIdSchema.describe(
|
|
208782
|
-
"Identifier to pass as the `functionalityId` parameter when calling `
|
|
208782
|
+
"Identifier to pass as the `functionalityId` parameter when calling `get_functionality_details` or `execute_functionality`"
|
|
208783
208783
|
),
|
|
208784
208784
|
description: string2()
|
|
208785
208785
|
});
|
|
@@ -208861,7 +208861,7 @@ var ListFunctionalitiesOutputSchema = object({
|
|
|
208861
208861
|
var GetFunctionalityDetailsOutputSchema = object({
|
|
208862
208862
|
/** ID of the functionality */
|
|
208863
208863
|
functionalityId: FunctionalityIdSchema.describe(
|
|
208864
|
-
"Identifier to pass as the `functionalityId` parameter when calling `
|
|
208864
|
+
"Identifier to pass as the `functionalityId` parameter when calling `get_functionality_details` or `execute_functionality`"
|
|
208865
208865
|
),
|
|
208866
208866
|
/** Name of the functionality */
|
|
208867
208867
|
name: string2(),
|
|
@@ -218918,7 +218918,7 @@ function findParameterById(functionality, id) {
|
|
|
218918
218918
|
// src/tools/index.ts
|
|
218919
218919
|
var tools = [
|
|
218920
218920
|
{
|
|
218921
|
-
name: "
|
|
218921
|
+
name: "search_docs",
|
|
218922
218922
|
title: "Search in Fiori Documentation",
|
|
218923
218923
|
description: "Searches code snippets of Fiori Elements, Annotations, SAPUI5, Fiori tools documentation for the given query. You MUST use this tool if you're unsure about Fiori APIs. Optionally returns only code blocks.",
|
|
218924
218924
|
inputSchema: {
|
|
@@ -218938,7 +218938,7 @@ var tools = [
|
|
|
218938
218938
|
}
|
|
218939
218939
|
},
|
|
218940
218940
|
{
|
|
218941
|
-
name: "
|
|
218941
|
+
name: "list_fiori_apps",
|
|
218942
218942
|
description: `Scans a specified directory to find existing SAP Fiori applications that can be modified.
|
|
218943
218943
|
This is an optional, preliminary tool.
|
|
218944
218944
|
**Use this first ONLY if the target application's name or path is not already known.**
|
|
@@ -218947,33 +218947,33 @@ var tools = [
|
|
|
218947
218947
|
outputSchema: convertToSchema(ListFioriAppsOutputSchema)
|
|
218948
218948
|
},
|
|
218949
218949
|
{
|
|
218950
|
-
name: "
|
|
218950
|
+
name: "list_functionality",
|
|
218951
218951
|
description: `**(Step 1 of 3)**
|
|
218952
218952
|
Gets the complete and exclusive list of supported functionalities to create a new or modify an existing SAP Fiori application.
|
|
218953
218953
|
This is the **first mandatory step** to begin the workflow and requires a valid absolute path to a SAP Fiori application as input.
|
|
218954
|
-
You MUST use a functionalityId from this tool's output to request details to the functionality in '
|
|
218954
|
+
You MUST use a functionalityId from this tool's output to request details to the functionality in 'get_functionality_details' (Step 2).
|
|
218955
218955
|
You MUST not use a functionalityId as name of a tool.
|
|
218956
218956
|
Do not guess, assume, or use any functionality not present in this list, as it is invalid and will cause the operation to fail.
|
|
218957
|
-
**Note: If the target application is not known, use the
|
|
218958
|
-
if the functionality list does not include a functionality to support the current goal, then try using the
|
|
218957
|
+
**Note: If the target application is not known, use the list_fiori_apps tool first to identify it.**
|
|
218958
|
+
if the functionality list does not include a functionality to support the current goal, then try using the search_docs tool as a fallback.`,
|
|
218959
218959
|
inputSchema: convertToSchema(ListFunctionalitiesInputSchema),
|
|
218960
218960
|
outputSchema: convertToSchema(ListFunctionalitiesOutputSchema)
|
|
218961
218961
|
},
|
|
218962
218962
|
{
|
|
218963
|
-
name: "
|
|
218963
|
+
name: "get_functionality_details",
|
|
218964
218964
|
description: `**(Step 2 of 3)**
|
|
218965
218965
|
Gets the required parameters and detailed information for a specific functionality to create a new or modify an existing SAP Fiori application.
|
|
218966
|
-
You MUST provide a functionalityId obtained from '
|
|
218967
|
-
The output of this tool is required for the final step '
|
|
218966
|
+
You MUST provide a functionalityId obtained from 'list_functionality' (Step 1).
|
|
218967
|
+
The output of this tool is required for the final step 'execute_functionality' (Step 3).`,
|
|
218968
218968
|
inputSchema: convertToSchema(GetFunctionalityDetailsInputSchema),
|
|
218969
218969
|
outputSchema: convertToSchema(GetFunctionalityDetailsOutputSchema)
|
|
218970
218970
|
},
|
|
218971
218971
|
{
|
|
218972
|
-
name: "
|
|
218972
|
+
name: "execute_functionality",
|
|
218973
218973
|
description: `**(Step 3 of 3)**
|
|
218974
218974
|
Executes a specific functionality to create a new or modify an existing SAP Fiori application with provided parameters.
|
|
218975
218975
|
This is the **final step** of the workflow and performs the actual creation or modification.
|
|
218976
|
-
You MUST provide the exact parameter information obtained from
|
|
218976
|
+
You MUST provide the exact parameter information obtained from get_functionality_details (Step 2).`,
|
|
218977
218977
|
inputSchema: convertToSchema(ExecuteFunctionalityInputSchema),
|
|
218978
218978
|
outputSchema: convertToSchema(ExecuteFunctionalityOutputSchema)
|
|
218979
218979
|
}
|
|
@@ -219175,25 +219175,25 @@ var FioriFunctionalityServer = class {
|
|
|
219175
219175
|
functionalityId: args?.functionalityId
|
|
219176
219176
|
};
|
|
219177
219177
|
switch (name) {
|
|
219178
|
-
case "
|
|
219178
|
+
case "search_docs":
|
|
219179
219179
|
result = await docSearch(args);
|
|
219180
219180
|
return this.convertResultToCallToolResult(result.results);
|
|
219181
|
-
case "
|
|
219181
|
+
case "list_fiori_apps":
|
|
219182
219182
|
result = await listFioriApps(args);
|
|
219183
219183
|
break;
|
|
219184
|
-
case "
|
|
219184
|
+
case "list_functionality":
|
|
219185
219185
|
result = await listFunctionalities(args);
|
|
219186
219186
|
break;
|
|
219187
|
-
case "
|
|
219187
|
+
case "get_functionality_details":
|
|
219188
219188
|
result = await getFunctionalityDetails5(args);
|
|
219189
219189
|
break;
|
|
219190
|
-
case "
|
|
219190
|
+
case "execute_functionality":
|
|
219191
219191
|
result = await executeFunctionality5(args);
|
|
219192
219192
|
break;
|
|
219193
219193
|
default:
|
|
219194
219194
|
await TelemetryHelper.sendTelemetry(unknownTool, telemetryProperties, args?.appPath);
|
|
219195
219195
|
throw new Error(
|
|
219196
|
-
`Unknown tool: ${name}. Try one of:
|
|
219196
|
+
`Unknown tool: ${name}. Try one of: list_fiori_apps, list_functionality, get_functionality_details, execute_functionality.`
|
|
219197
219197
|
);
|
|
219198
219198
|
}
|
|
219199
219199
|
await TelemetryHelper.sendTelemetry(name, telemetryProperties, args?.appPath);
|
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.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SAP Fiori tools",
|
|
7
7
|
"SAP Fiori elements",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"i18next": "25.3.0",
|
|
39
39
|
"os-name": "4.0.1",
|
|
40
40
|
"zod": "4.1.5",
|
|
41
|
-
"@sap-ux/project-access": "1.32.1",
|
|
42
41
|
"@sap-ux/fiori-annotation-api": "0.6.23",
|
|
43
42
|
"@sap-ux/fiori-docs-embeddings": "0.0.2",
|
|
44
43
|
"@sap-ux/i18n": "0.3.3",
|
|
44
|
+
"@sap-ux/project-access": "1.32.1",
|
|
45
45
|
"@sap-ux/odata-annotation-core-types": "0.4.6",
|
|
46
46
|
"@sap-ux/odata-entity-model": "0.3.1",
|
|
47
|
-
"@sap-ux/text-document-utils": "0.3.1",
|
|
48
47
|
"@sap-ux/btp-utils": "1.1.2",
|
|
48
|
+
"@sap-ux/text-document-utils": "0.3.1",
|
|
49
49
|
"@sap-ux/feature-toggle": "0.3.1",
|
|
50
50
|
"@sap-ux/nodejs-utils": "0.2.4",
|
|
51
51
|
"@sap-ux/telemetry": "0.6.23"
|