chore(mcp): add @rlwj-lab/opsxdb-mcp npm launcher package

Node wrapper that spawns the Go opsxdb-mcp binary (OPSXDB_MCP_BIN / PATH).
Ready for npm publish --access public (requires 2FA OTP).
This commit is contained in:
logan committed 2026-10-15 12:11:57 +08:00
1 parent cd319ce7bd
commit 8ae1e438a1
5 files changed
+154

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
# @rlwj-lab/opsxdb-mcp
MCP (Model Context Protocol) launcher for OpsxDB.
This package ships a small Node CLI that **spawns the Go `opsxdb-mcp` binary** over stdio. Build the binary from the OpsxDB repo, then point the launcher at it.
## Install
```bash
npm i -g @rlwj-lab/opsxdb-mcp
# or
npx -y @rlwj-lab/opsxdb-mcp
```
## Build the Go binary
From the OpsxDB repository:
```bash
cd server && go build -o ../bin/opsxdb-mcp ./cmd/opsxdb-mcp
```
Put `bin/opsxdb-mcp` on `PATH`, or set:
```bash
export OPSXDB_MCP_BIN=/absolute/path/to/opsxdb-mcp
```
## Cursor / Claude Desktop
```json
{
"mcpServers": {
"opsxdb": {
"command": "npx",
"args": ["-y", "@rlwj-lab/opsxdb-mcp"],
"env": {
"OPSXDB_MCP_BIN": "/absolute/path/to/opsxdb-mcp"
}
}
}
}
```
Config: `~/.opsxdb/mcp.json`, `~/.opsxdb/connections.json`.
## License
MIT