feat(mcp): Cursor project config + scripts for wormhole-docs server

- .cursor/mcp.json: wormhole-docs via node ./mcp-wormhole-docs/index.js + cwd
- package.json: mcp:wormhole, verify:wormhole-mcp
- MCP_SETUP + mcp-wormhole-docs README: Cursor reload + health check

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-31 22:59:08 -07:00
parent 5fc90e1913
commit f411a89908
4 changed files with 24 additions and 1 deletions

9
.cursor/mcp.json Normal file
View File

@@ -0,0 +1,9 @@
{
"mcpServers": {
"wormhole-docs": {
"command": "node",
"args": ["./mcp-wormhole-docs/index.js"],
"cwd": "${workspaceFolder}"
}
}
}

View File

@@ -202,7 +202,15 @@ cd /home/intlc/projects/proxmox/mcp-wormhole-docs && pnpm install
**Tools:** `wormhole_doc_search` with `{ "query": "NTT", "limit": 10 }`.
**Manual smoke test** (from repo root, after `pnpm install` in `mcp-wormhole-docs`):
**Cursor (this repo):** Project MCP config is [`.cursor/mcp.json`](../../.cursor/mcp.json) — server id **`wormhole-docs`**. After pulling changes: **Cursor Settings → MCP** (or **Tools & MCP**) should list it; if not, **reload the window** or restart Cursor. One-shot from repo root: `pnpm run mcp:wormhole` (stdio server; Cursor spawns it automatically when MCP is enabled).
**Health check (no MCP client):**
```bash
pnpm run verify:wormhole-mcp
```
**Manual smoke test** (from repo root, after `pnpm install` at workspace root or in `mcp-wormhole-docs`):
```bash
cd /home/intlc/projects/proxmox/mcp-wormhole-docs && node index.js

View File

@@ -14,6 +14,10 @@ Read-only MCP server exposing Wormholes **AI documentation exports** as **res
| `WORMHOLE_DOCS_FETCH` | `0` | If `1`, fall back to HTTPS from `https://wormhole.com/docs/...` when a file is missing locally |
| `WORMHOLE_MAX_RESOURCE_BYTES` | `5242880` | Max bytes returned for `llms-full.jsonl` via MCP read (avoid OOM); increase or read file on disk for RAG |
## Cursor
Repo file [`.cursor/mcp.json`](../.cursor/mcp.json) registers this server as **`wormhole-docs`**. Enable MCP in Cursor; reload if the server does not appear. From repo root: `pnpm run verify:wormhole-mcp` then `pnpm run mcp:wormhole` (manual stdio test only).
## Run
```bash

View File

@@ -6,6 +6,8 @@
"scripts": {
"mcp:start": "pnpm --filter mcp-proxmox-server start",
"mcp:dev": "pnpm --filter mcp-proxmox-server dev",
"mcp:wormhole": "node mcp-wormhole-docs/index.js",
"verify:wormhole-mcp": "bash scripts/verify/verify-wormhole-ai-docs-setup.sh",
"omada:build": "pnpm --filter omada-api build && pnpm --filter mcp-omada-server build",
"omada:start": "pnpm --filter mcp-omada-server start",
"omada:dev": "pnpm --filter mcp-omada-server dev",