-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When using gemini-mcp-tool
on Windows, the tool fails with Error: spawn gemini ENOENT
. The issue occurs because the spawnCommand
function in src/utils/commandExecutor.ts
doesn't account for Windows-specific execution requirements.
To Reproduce
Steps to reproduce:
- Install on Windows:
npm install -g gemini-mcp-tool
- Send a request:
- Observe error:
Error: spawn gemini ENOENT
Expected Behavior:
Successful execution of Gemini commands on Windows.
Actual Behavior:
Failure with ENOENT
error due to:
- Missing
.cmd
extension handling - Incorrect PATH resolution
- Lack of shell execution
Problem Location:
src/utils/commandExecutor.ts
:
const child = spawn(command, args, { stdio: 'pipe' }); // Windows-incompatible
Proposed Solution:
Modify to support Windows:
import * as os from 'os';
// ...
const child = spawn(command, args, {
stdio: 'pipe',
shell: os.platform() === 'win32', // Enable shell on Windows
windowsHide: true // Hide CMD window
});
Environment:
- Node version: v22.12.0
- OS: Windows 11
- MCP client: Claude Desktop
GBdeMiranda, macconnolly and rstraszewski
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working