Skip to content

Commit 059b416

Browse files
committed
Updated readme with how setup for Cursor
1 parent 115de27 commit 059b416

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

mcp-openapi/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,20 +542,33 @@ Create JSON files in the `prompts` directory:
542542
### Cursor IDE
543543
Create `.cursor/mcp.json`:
544544

545+
> **⚠️ Important**: Cursor's MCP implementation doesn't support the `cwd` property and requires absolute paths.
546+
545547
```json
546548
{
547549
"mcpServers": {
548-
"banking-apis": {
549-
"command": "mcp-openapi-server",
550-
"args": ["--specs", "./specs", "--config", "./mcp-config.json", "--verbose"],
550+
"mcp-openapi": {
551+
"command": "node",
552+
"args": [
553+
"/absolute/path/to/your/project/mcp-openapi/dist/cli.js",
554+
"--specs", "/absolute/path/to/your/project/mcp-openapi/examples/specs",
555+
"--config", "/absolute/path/to/your/project/mcp-openapi/examples/mcp-config.json",
556+
"--prompts", "/absolute/path/to/your/project/mcp-openapi/examples/prompts"
557+
],
551558
"env": {
552-
"API_TOKEN": "your-api-token"
559+
"BANKING_API_TOKEN": "mcp-service-token-demo-123"
553560
}
554561
}
555562
}
556563
}
557564
```
558565

566+
**Configuration Notes:**
567+
- Replace `/absolute/path/to/your/project` with the actual absolute path where you've cloned this repository
568+
- The `env.BANKING_API_TOKEN` is configured to work with the included sample banking API
569+
- Ensure the project is built (`npm run build`) before running
570+
- All paths must be absolute - relative paths and `cwd` properties don't work reliably in Cursor
571+
559572
### Claude Desktop
560573
Add to `claude_desktop_config.json`:
561574

0 commit comments

Comments
 (0)