@labwired/mcp
Advanced tools
+11
-1
@@ -9,2 +9,7 @@ import { execFile } from 'node:child_process'; | ||
| const EXEC_TIMEOUT_MS = 120_000; | ||
| const CLI_NOT_INSTALLED_MSG = `The 'labwired' CLI was not found on PATH. ` + | ||
| `@labwired/mcp shells out to the LabWired simulator binary; ` + | ||
| `install it with:\n` + | ||
| ` curl -fsSL https://labwired.com/install.sh | sh\n` + | ||
| `Or set the LABWIRED_CLI env var to the absolute path of an existing binary.`; | ||
| export async function runCli(args) { | ||
@@ -20,2 +25,5 @@ try { | ||
| const e = err; | ||
| if (e.code === 'ENOENT') { | ||
| return { stdout: '', stderr: CLI_NOT_INSTALLED_MSG, exitCode: 127 }; | ||
| } | ||
| return { | ||
@@ -91,3 +99,5 @@ stdout: e.stdout ?? '', | ||
| if (exitCode !== 0) { | ||
| throw new Error(`labwired asset list-chips failed (${exitCode}): ${stderr}`); | ||
| if (exitCode === 127) | ||
| throw new Error(stderr); | ||
| throw new Error(`labwired asset list-chips failed (exit ${exitCode}): ${stderr || '(no output)'}`); | ||
| } | ||
@@ -94,0 +104,0 @@ try { |
+1
-1
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
| const SERVER_NAME = '@labwired/mcp'; | ||
| const SERVER_VERSION = '0.1.0'; | ||
| const SERVER_VERSION = '0.1.1'; | ||
| const CatalogInput = z.object({ | ||
@@ -11,0 +11,0 @@ filter: z |
+1
-1
| { | ||
| "name": "@labwired/mcp", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Model Context Protocol server exposing the LabWired deterministic firmware simulator as agent tools.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
14264
3.86%267
3.89%