docs(mcp): use the default app port in client setup

This commit is contained in:
Huanyi Xie committed 2026-10-05 12:43:58 +03:00
1 parent e1cc7afacf
commit b7b606b5b7
1 file changed
+7 -7
+7 -7
View File
@@ -9,7 +9,7 @@ one before going on.
```sh ```sh
npm install npm install
npm run build:panel # the in-conversation globe; rerun after app changes npm run build:panel # the in-conversation globe; rerun after app changes
npm run dev # http://localhost:5173, keep it running npm run dev # http://localhost:4173, keep it running
``` ```
The MCP server reads from this app. The MCP server reads from this app.
@@ -21,15 +21,15 @@ The server is `server/mcp/stdio.js` in this checkout. Use absolute paths
| Client | How | | Client | How |
| --- | --- | | --- | --- |
| Claude Code | `claude mcp add gods-eye-view -- node /abs/path/gods-eye-view/server/mcp/stdio.js --api-base http://localhost:5173` | | Claude Code | `claude mcp add gods-eye-view -- node /abs/path/gods-eye-view/server/mcp/stdio.js --api-base http://localhost:4173` |
| Codex CLI | `codex mcp add gods-eye-view -- node /abs/path/gods-eye-view/server/mcp/stdio.js --api-base http://localhost:5173` | | Codex CLI | `codex mcp add gods-eye-view -- node /abs/path/gods-eye-view/server/mcp/stdio.js --api-base http://localhost:4173` |
| Codex and ChatGPT desktop | Same `~/.codex/config.toml` as the CLI (block below), or Settings → MCP servers → Add server (STDIO). | | Codex and ChatGPT desktop | Same `~/.codex/config.toml` as the CLI (block below), or Settings → MCP servers → Add server (STDIO). |
| Claude Desktop | Settings → Developer → Edit Config, then add the JSON below. | | Claude Desktop | Settings → Developer → Edit Config, then add the JSON below. |
```toml ```toml
[mcp_servers.gods-eye-view] [mcp_servers.gods-eye-view]
command = "node" command = "node"
args = ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:5173"] args = ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:4173"]
``` ```
```json ```json
@@ -37,7 +37,7 @@ args = ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://loc
"mcpServers": { "mcpServers": {
"gods-eye-view": { "gods-eye-view": {
"command": "node", "command": "node",
"args": ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:5173"] "args": ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:4173"]
} }
} }
} }
@@ -45,7 +45,7 @@ args = ["/abs/path/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://loc
**Windows with the checkout in WSL:** use `"command": "wsl.exe"` and put **Windows with the checkout in WSL:** use `"command": "wsl.exe"` and put
`"-e"` and the absolute Linux path to `node` first in `args`, for example `"-e"` and the absolute Linux path to `node` first in `args`, for example
`["-e", "/home/you/.local/share/mise/installs/node/24/bin/node", "/home/you/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:5173"]`. `["-e", "/home/you/.local/share/mise/installs/node/24/bin/node", "/home/you/gods-eye-view/server/mcp/stdio.js", "--api-base", "http://localhost:4173"]`.
## 3. Restart and try it ## 3. Restart and try it
@@ -60,7 +60,7 @@ Diego in God's Eye View with military flights on."*
## Troubleshooting ## Troubleshooting
- **The server does not appear:** run the command from step 2 in a terminal; - **The server does not appear:** run the command from step 2 in a terminal;
it should print `God's Eye View MCP server reading http://localhost:5173` it should print `God's Eye View MCP server reading http://localhost:4173`
and wait. A path or `args` mistake fails here. and wait. A path or `args` mistake fails here.
- **The panel says it could not load:** `npm run build:panel` was not run, or - **The panel says it could not load:** `npm run build:panel` was not run, or
the dev server is down. the dev server is down.