Skip to content

Commit 48de4e5

Browse files
Use correct path to Node.js executable
1 parent 4ed1c7e commit 48de4e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build": "tsc",
2020
"start": "node dist/index.js",
2121
"dev": "tsc && node dist/index.js",
22-
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
22+
"test": "tsc && NODE_OPTIONS=--experimental-vm-modules jest",
2323
"approve-task": "node dist/src/cli.js approve-task",
2424
"list-tasks": "node dist/src/cli.js list"
2525
},

tests/integration/mcp-client.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, it, expect, beforeAll, afterAll } from '@jest/globals';
44
import * as path from 'node:path';
55
import * as os from 'node:os';
66
import * as fs from 'node:fs/promises';
7-
import { Tool } from "@modelcontextprotocol/sdk/types.js";
7+
import process from 'node:process';
88

99
interface ToolResponse {
1010
isError: boolean;
@@ -29,7 +29,7 @@ describe('MCP Client Integration', () => {
2929

3030
// Set up the transport with environment variable for test file
3131
transport = new StdioClientTransport({
32-
command: "node",
32+
command: process.execPath, // Use full path to current Node.js executable
3333
args: ["dist/index.js"],
3434
env: {
3535
TASK_MANAGER_FILE_PATH: testFilePath,
@@ -38,7 +38,7 @@ describe('MCP Client Integration', () => {
3838
}
3939
});
4040

41-
console.log('Created transport with command:', 'node', 'dist/index.js');
41+
console.log('Created transport with command:', process.execPath, 'dist/index.js');
4242

4343
// Set up the client
4444
client = new Client(

0 commit comments

Comments
 (0)