Skip to content

Commit d3daa7c

Browse files
committed
fix: use node --import tsx for E2E stub servers (Node 20 compat)
--experimental-strip-types requires Node 22.6+, but CI runs Node 20. The stub server process died immediately with "bad option", causing MCP handshake failures and TC-PL-002 to fail. Signed-off-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 9adce45 commit d3daa7c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/e2e/mocks/mock-bundle-api/fixtures.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const TEST_SERVERS: ServerDefinition[] = [
108108
transport: {
109109
type: 'stdio',
110110
command: 'node',
111-
args: ['--experimental-strip-types', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
111+
args: ['--import', 'tsx', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
112112
env: {},
113113
metadata: {
114114
inputs: [],
@@ -148,7 +148,7 @@ const TEST_SERVERS: ServerDefinition[] = [
148148
transport: {
149149
type: 'stdio',
150150
command: 'node',
151-
args: ['--experimental-strip-types', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts', '${input:DIRECTORY}'],
151+
args: ['--import', 'tsx', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts', '${input:DIRECTORY}'],
152152
env: {},
153153
metadata: {
154154
inputs: [
@@ -195,7 +195,7 @@ const TEST_SERVERS: ServerDefinition[] = [
195195
transport: {
196196
type: 'stdio',
197197
command: 'node',
198-
args: ['--experimental-strip-types', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
198+
args: ['--import', 'tsx', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
199199
env: {
200200
DATABASE_URL: '${input:DATABASE_URL}',
201201
},
@@ -316,7 +316,7 @@ const TEST_SERVERS: ServerDefinition[] = [
316316
transport: {
317317
type: 'stdio',
318318
command: 'node',
319-
args: ['--experimental-strip-types', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
319+
args: ['--import', 'tsx', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
320320
env: {},
321321
metadata: {
322322
inputs: [],
@@ -424,7 +424,7 @@ const TEST_SERVERS: ServerDefinition[] = [
424424
transport: {
425425
type: 'stdio',
426426
command: 'node',
427-
args: ['--experimental-strip-types', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
427+
args: ['--import', 'tsx', 'tests/e2e/mocks/stub-mcp-server/stdio-server.ts'],
428428
env: {},
429429
metadata: {
430430
inputs: [],

0 commit comments

Comments
 (0)