Skip to content

Commit a39d341

Browse files
committed
Rename server-remote.ts to server.ts
1 parent 798d78a commit a39d341

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ ENV PATH_TO_CONFIG_FOLDER=''
6565
ENV PATH_TO_TOOLS_FOLDER=''
6666

6767
# Run the application.
68-
ENTRYPOINT ["node", "build/server-remote.js"]
68+
ENTRYPOINT ["node", "build/server.js"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Apache OFBiz® is a trademark of the [Apache Software Foundation](https://www.ap
3434

3535
## Features
3636

37-
The project includes an MCP server (`src/server-remote.ts`) that communicates with the MCP client via MCP Streamable HTTP transport.
37+
The project includes an MCP server (`src/server.ts`) that communicates with the MCP client via MCP Streamable HTTP transport.
3838

3939
The server dynamically discovers MCP tools contained in the `tools` directory, whose path is specified as a command-line argument when the server is lauched.
4040

@@ -98,7 +98,7 @@ mcp-server-for-apache-ofbiz/
9898
├── config/
9999
│ └── config.json # Server configuration (backend API base, auth token, etc.)
100100
├── src/
101-
│ ├── server-remote.ts # MCP server (Streamable HTTP transport)
101+
│ ├── server.ts # MCP server (Streamable HTTP transport)
102102
│ ├── toolLoader.ts # Loader of tool definitions from "tools/"
103103
│ └── tools/
104104
│ └── findProductById.ts # Example tool calling an Apache OFBiz REST endpoint
@@ -121,7 +121,7 @@ npm run build
121121
Start the server:
122122

123123
```sh
124-
node ./build/server-remote.js ./config ./build/tools
124+
node ./build/server.js ./config ./build/tools
125125
```
126126

127127
You can test the MCP server with the free version of **Claude Desktop**.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
"test": "echo \"Error: no test specified\" && exit 1"
5050
},
5151
"bin": {
52-
"mcp_server_for_apache_ofbiz": "./build/server-remote.js"
52+
"mcp_server_for_apache_ofbiz": "./build/server.js"
5353
}
5454
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (!process.argv[2] || !process.argv[3]) {
2626
console.error(
2727
'Error: Paths to config folder and tools folder are mandatory command-line arguments'
2828
);
29-
console.error('Usage: node server-remote.js <path-to-config-folder> <path-to-tools-folder>');
29+
console.error('Usage: node server.js <path-to-config-folder> <path-to-tools-folder>');
3030
process.exit(1);
3131
}
3232

src/tools/findProductById.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from 'zod';
22
import express from 'express';
33

4-
import { BACKEND_API_BASE, USER_AGENT } from '../server-remote.js';
4+
import { BACKEND_API_BASE, USER_AGENT } from '../server.js';
55
import type { ToolDefinition } from '../toolLoader.js';
66

77
export default function (): ToolDefinition {

0 commit comments

Comments
 (0)