@modelcontextprotocol/inspector-server
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
import mcpProxy from "./mcpProxy.js"; | ||
import { findActualExecutable } from "spawn-rx"; | ||
// Polyfill EventSource for an SSE client in Node.js | ||
@@ -29,7 +30,8 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const command = query.command; | ||
const args = query.args.split(/\s+/); | ||
const origArgs = query.args.split(/\s+/); | ||
const env = query.env ? JSON.parse(query.env) : undefined; | ||
console.log(`Stdio transport: command=${command}, args=${args}, env=${JSON.stringify(env)}`); | ||
const { cmd, args } = findActualExecutable(command, origArgs); | ||
console.log(`Stdio transport: command=${cmd}, args=${args}, env=${JSON.stringify(env)}`); | ||
const transport = new StdioClientTransport({ | ||
command, | ||
command: cmd, | ||
args, | ||
@@ -36,0 +38,0 @@ env, |
{ | ||
"name": "@modelcontextprotocol/inspector-server", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Server-side application for the Model Context Protocol inspector", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
6285
148