@sap-ux/fiori-mcp-server 0.0.1 → 0.0.2

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 CHANGED
@@ -26,6 +26,8 @@ Configure your MCP client to start the server with command `fiori-mcp`. Here is
26
26
  {
27
27
  "mcpServers": {
28
28
  "fiori-mcp": {
29
+ "type": "stdio",
30
+ "timeout": 600,
29
31
  "command": "npx",
30
32
  "args": ["--yes","@sap-ux/fiori-mcp-server@latest", "fiori-mcp"]
31
33
  }
@@ -44,6 +46,7 @@ Then, configure your MCP client to start the server with command `fiori-mcp`. He
44
46
  "mcpServers": {
45
47
  "fiori-mcp": {
46
48
  "type": "stdio",
49
+ "timeout": 600,
47
50
  "command": "fiori-mcp"
48
51
  }
49
52
  }
@@ -105,6 +105,11 @@ async function command(params) {
105
105
  if (!projectPath || typeof projectPath !== 'string') {
106
106
  throw new Error('Please provide a valid path to the CAP project folder.');
107
107
  }
108
+ if (generatorConfig?.service.servicePath) {
109
+ generatorConfig.service.servicePath = generatorConfig?.service.servicePath?.startsWith('/')
110
+ ? generatorConfig?.service.servicePath
111
+ : `/${generatorConfig?.service.servicePath}`;
112
+ }
108
113
  const appName = generatorConfig?.project.name ?? 'default';
109
114
  const appPath = (0, path_1.join)(projectPath, 'app', appName);
110
115
  const targetDir = projectPath;
@@ -120,7 +125,7 @@ async function command(params) {
120
125
  const content = JSON.stringify(generatorConfig, null, 4);
121
126
  await fs_1.promises.mkdir((0, path_1.dirname)(outputPath), { recursive: true });
122
127
  await fs_1.promises.writeFile(outputPath, content, { encoding: 'utf8' });
123
- const command = `npx -y yo@4 @sap/fiori:headless ${configPath} --force --skipInstall`.trim();
128
+ const command = `npx -y yo@4 @sap/fiori:headless ${configPath} --force`.trim();
124
129
  const { stdout, stderr } = await exec(command, { cwd: targetDir });
125
130
  console.log(stdout);
126
131
  if (stderr) {
@@ -112,13 +112,13 @@ exports.GENERATE_FIORI_UI_APP = {
112
112
  id: 'servicePath',
113
113
  type: 'string',
114
114
  examples: [
115
- 'odata/v4/<servicename>/',
116
- 'odata/v4/MyRiskService/',
117
- 'odata/v2/MyOdataV2Service/',
118
- 'odata/v4/MyOdataV4Service/',
119
- "odata/v4/<relative '@path' annotation from service cds file>/",
115
+ '/odata/v4/<servicename>/',
116
+ '/odata/v4/MyRiskService/',
117
+ '/odata/v2/MyOdataV2Service/',
118
+ '/odata/v4/MyOdataV4Service/',
119
+ "/odata/v4/<relative '@path' annotation from service cds file>/",
120
120
  "<absolute '@path' annotation from service cds file>/",
121
- 'myAbsolutePathFromServiceCdsFile/'
121
+ '/myAbsolutePathFromServiceCdsFile/'
122
122
  ],
123
123
  description: 'The odata endpoint as provided by the cds mcp or as fallback in case that tool is not available from the service cds file.',
124
124
  required: true
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.1",
4
+ "version": "0.0.2",
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/text-document-utils": "0.3.1",
35
34
  "@sap-ux/odata-annotation-core-types": "0.4.5",
36
- "@sap-ux/odata-entity-model": "0.3.1"
35
+ "@sap-ux/odata-entity-model": "0.3.1",
36
+ "@sap-ux/text-document-utils": "0.3.1"
37
37
  },
38
38
  "dependencies": {
39
39
  "@modelcontextprotocol/sdk": "1.17.4",
@@ -41,9 +41,9 @@
41
41
  "@sap-ux/annotation-converter": "0.10.3",
42
42
  "i18next": "25.3.0",
43
43
  "zod": "4.1.5",
44
- "@sap-ux/project-access": "1.30.13",
44
+ "@sap-ux/fiori-annotation-api": "0.6.17",
45
45
  "@sap-ux/nodejs-utils": "0.2.3",
46
- "@sap-ux/fiori-annotation-api": "0.6.17"
46
+ "@sap-ux/project-access": "1.30.13"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=20.x"