fix(mcp-npm): v0.1.1 skip npm shim when resolving Go binary
npx installs a bin also named opsxdb-mcp; the launcher now only execs native ELF/Mach-O/PE binaries so it no longer recurses into itself.
This commit is contained in:
1 parent
979efb606d
commit
0aeee2b692
3 files changed
+79
-9
No files matched your search
@@ -2,14 +2,16 @@
|
||||
|
||||
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.
|
||||
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 (or put the Go binary on `PATH`).
|
||||
|
||||
> The npm bin is also named `opsxdb-mcp`. The launcher only execs a **native** Go/ELF/Mach-O/PE binary, so it will not recurse into its own npm shim.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm i -g @rlwj-lab/opsxdb-mcp
|
||||
# or
|
||||
npx -y @rlwj-lab/opsxdb-mcp
|
||||
npx -y @rlwj-lab/opsxdb-mcp@0.1.1
|
||||
```
|
||||
|
||||
## Build the Go binary
|
||||
@@ -26,6 +28,8 @@ Put `bin/opsxdb-mcp` on `PATH`, or set:
|
||||
export OPSXDB_MCP_BIN=/absolute/path/to/opsxdb-mcp
|
||||
```
|
||||
|
||||
If the Go binary is missing, the CLI exits with a clear error (not `command not found`).
|
||||
|
||||
## Cursor / Claude Desktop
|
||||
|
||||
```json
|
||||
|
||||
Reference in new issue
Block a user