@sap-ux/fiori-mcp-server 0.1.2 → 0.1.4

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.
Files changed (3) hide show
  1. package/README.md +9 -7
  2. package/dist/index.js +20 -20
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -72,17 +72,19 @@ The following rules help guide the LLM to use the server correctly:
72
72
  - When previewing the SAP Fiori elements application use the most specific script for the app in the `package.json`.
73
73
  ```
74
74
 
75
+ Add these rules to your existing global or project-specific [`AGENTS.md`](https://agents.md/) (specifics may vary based on respective MCP client).
76
+
75
77
  ## [Available Tools](#available-tools)
76
78
 
77
- #### `doc-search`
78
- Searches Fiori Elements, Annotations, SAPUI5, Fiori tools documentation for the given query.
79
- Note: the results are based on the the most recent indexed version of SAPUI5 documentation
79
+ #### `search_docs`
80
+ Searches Fiori Elements, Annotations, UI5, Fiori tools documentation for the given query.
81
+ Note: the results are based on the most recent indexed version of UI5 documentation
80
82
 
81
83
 
82
- #### `list-fiori-apps`
84
+ #### `list_fiori_apps`
83
85
  Scans a specified directory to find existing SAP Fiori applications that can be modified.
84
86
 
85
- #### `list-functionalities` (Step 1 of 3)
87
+ #### `list_functionalities` (Step 1 of 3)
86
88
  Gets the list of supported functionalities to create a new or modify an existing SAP Fiori application.
87
89
 
88
90
  The main functionalities are:
@@ -92,10 +94,10 @@ The main functionalities are:
92
94
  - Adding and modifying controller extensions
93
95
  - Modifying `manifest.json` properties depending on the app (e.g. adding Flexible Column Layout, enabling initial load)
94
96
 
95
- #### `get-functionality-details` (Step 2 of 3)
97
+ #### `get_functionality_details` (Step 2 of 3)
96
98
  Gets the required parameters and detailed information for a specific functionality to create a new or modify an existing SAP Fiori application.
97
99
 
98
- #### `execute-functionality` (Step 3 of 3)
100
+ #### `execute_functionality` (Step 3 of 3)
99
101
  Executes a specific functionality to create a new or modify an existing SAP Fiori application with provided parameters.
100
102
 
101
103
  ## 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.2";
204002
+ var version = "0.1.4";
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 `get-functionality-details` or `execute-functionality`"
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 `get-functionality-details` or `execute-functionality`"
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: "doc-search",
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: "list-fiori-apps",
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: "list-functionality",
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 'get-functionality-details' (Step 2).
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 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 doc-search tool as a fallback.`,
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: "get-functionality-details",
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 'list-functionality' (Step 1).
218967
- The output of this tool is required for the final step 'execute-functionality' (Step 3).`,
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: "execute-functionality",
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 get-functionality-details (Step 2).`,
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 "doc-search":
219178
+ case "search_docs":
219179
219179
  result = await docSearch(args);
219180
219180
  return this.convertResultToCallToolResult(result.results);
219181
- case "list-fiori-apps":
219181
+ case "list_fiori_apps":
219182
219182
  result = await listFioriApps(args);
219183
219183
  break;
219184
- case "list-functionality":
219184
+ case "list_functionality":
219185
219185
  result = await listFunctionalities(args);
219186
219186
  break;
219187
- case "get-functionality-details":
219187
+ case "get_functionality_details":
219188
219188
  result = await getFunctionalityDetails5(args);
219189
219189
  break;
219190
- case "execute-functionality":
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: list-fiori-apps, list-functionality, get-functionality-details, execute-functionality.`
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.2",
4
+ "version": "0.1.4",
5
5
  "keywords": [
6
6
  "SAP Fiori tools",
7
7
  "SAP Fiori elements",
@@ -38,17 +38,17 @@
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
- "@sap-ux/fiori-docs-embeddings": "0.0.2",
42
+ "@sap-ux/project-access": "1.32.1",
44
43
  "@sap-ux/i18n": "0.3.3",
45
- "@sap-ux/odata-annotation-core-types": "0.4.6",
44
+ "@sap-ux/fiori-docs-embeddings": "0.0.2",
46
45
  "@sap-ux/odata-entity-model": "0.3.1",
46
+ "@sap-ux/odata-annotation-core-types": "0.4.6",
47
47
  "@sap-ux/text-document-utils": "0.3.1",
48
48
  "@sap-ux/btp-utils": "1.1.2",
49
49
  "@sap-ux/feature-toggle": "0.3.1",
50
- "@sap-ux/nodejs-utils": "0.2.4",
51
- "@sap-ux/telemetry": "0.6.23"
50
+ "@sap-ux/telemetry": "0.6.23",
51
+ "@sap-ux/nodejs-utils": "0.2.4"
52
52
  },
53
53
  "dependencies": {
54
54
  "@lancedb/lancedb": "0.22.0"