Content
# JR East Delay Information MCP Server
## Setup
```sh
npm install
```
## Build
```sh
npm run build
```
## Test
```sh
npx vitest run
```
## Start the Server
```sh
node build/index.js
```
Alternatively, you can run it as a command using the bin setting in package.json:
```sh
npx jr-east-delay
```
## Usage from MCP Client
You can obtain JR East's delay information by calling the "getDelays" tool from MCP clients such as Claude Desktop or MCP Inspector.
### Example MCP Client Configuration
When using this server with clients like Claude Desktop or MCP Inspector, please specify the following in your configuration file (e.g., `claude_desktop_config.json`).
#### Example 1: When the `node` command is in your PATH
```json
"jr-east-delay": {
"command": "node",
"args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"]
}
```
#### Example 2: Specifying the absolute path to `node`
```json
"jr-east-delay": {
"command": "/Users/your-username/.nodebrew/current/bin/node",
"args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"]
}
```
- Please change `your-username` to match your environment.
- Please change `your-path` to match your environment.
- If the `node` command is not in your PATH, please specify the absolute path.
---
### Development Notes
- Tests are written in `src/index.test.ts`
- Communication tests for the MCP protocol can be conducted using clients like MCP Inspector.