hac-mcp 1.0.0 → 1.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/package.json +2 -2
- package/server.js +1 -1
- /package/bin/{hac-mcp.js → hac-mcp.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hac-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "MCP server for SAP Commerce Cloud HAC — FlexibleSearch, ImpEx, Groovy, CronJobs and more from any MCP client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"type": "module",
|
|
32
32
|
"main": "server.js",
|
|
33
33
|
"bin": {
|
|
34
|
-
"hac-mcp": "bin/hac-mcp.
|
|
34
|
+
"hac-mcp": "bin/hac-mcp.mjs"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"bin",
|
package/server.js
CHANGED
|
@@ -45,6 +45,7 @@ const app = express();
|
|
|
45
45
|
app.use(express.json());
|
|
46
46
|
app.use(express.urlencoded({ extended: true }));
|
|
47
47
|
app.use('/static', express.static(join(__dirname, 'static')));
|
|
48
|
+
app.use('/', express.static(join(__dirname, 'static')));
|
|
48
49
|
|
|
49
50
|
// Mock OAuth endpoints - auto-approve everything, no user interaction required
|
|
50
51
|
const BASE_URL = `http://localhost:${PORT}`;
|
|
@@ -90,7 +91,6 @@ app.post('/token', (_req, res) => {
|
|
|
90
91
|
expires_in: 86400,
|
|
91
92
|
});
|
|
92
93
|
});
|
|
93
|
-
app.get('/', (_req, res) => res.sendFile(join(__dirname, 'static', 'index.html')));
|
|
94
94
|
|
|
95
95
|
// Environments API
|
|
96
96
|
app.get('/api/environments', async (_req, res) => res.json(await listEnvironments()));
|
|
File without changes
|