File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,8 +239,8 @@ jobs:
239239 PATTERN_API_KEY : test-api-key-for-ci
240240 TEST_BASE_URL : http://localhost:3000
241241
242- - name : Run MCP protocol tests
243- run : bun --filter @effect-patterns/mcp-server run test:mcp:local
242+ - name : Run MCP protocol tests (tool surface + structured output)
243+ run : bun --filter @effect-patterns/mcp-server run test:mcp:ci
244244 env :
245245 PATTERN_API_KEY : test-api-key-for-ci
246246 MCP_ENV : local
@@ -295,4 +295,4 @@ jobs:
295295 echo "One or more CI jobs were cancelled"
296296 exit 1
297297 fi
298- echo "All CI jobs passed successfully!"
298+ echo "All CI jobs passed successfully!"
Original file line number Diff line number Diff line change 3434 "test:stress:all" : " bun run test:stress" ,
3535 "test:mcp" : " bunx vitest run --config vitest.mcp.config.ts" ,
3636 "test:mcp:watch" : " bunx vitest --config vitest.mcp.config.ts" ,
37- "test:mcp:local" : " MCP_ENV=local bunx vitest run --config vitest.mcp.config.ts tests/mcp-protocol/local.test.ts tests/mcp-protocol/stdio-discipline.test.ts" ,
37+ "test:mcp:local" : " MCP_ENV=local bunx vitest run --config vitest.mcp.config.ts tests/mcp-protocol/local.test.ts tests/mcp-protocol/structured-output.test.ts tests/mcp-protocol/stdio-discipline.test.ts" ,
38+ "test:mcp:ci" : " MCP_ENV=local bunx vitest run --config vitest.mcp.config.ts tests/mcp-protocol/local.test.ts tests/mcp-protocol/structured-output.test.ts tests/mcp-protocol/stdio-discipline.test.ts" ,
3839 "test:mcp:staging" : " bash scripts/test-mcp-staging.sh" ,
3940 "test:mcp:production" : " bash scripts/test-mcp-production.sh" ,
4041 "test:mcp:all" : " bash scripts/test-mcp-all.sh" ,
5455 "typecheck" : " tsc --noEmit" ,
5556 "lint" : " next lint" ,
5657 "check:narration-leakage" : " bash scripts/check-narration-leakage.sh" ,
57- "preflight" : " bun run mcp:build && bun run check:narration-leakage && bun run test:mcp:local "
58+ "preflight" : " bun run mcp:build && bun run check:narration-leakage && bun run test:mcp:ci "
5859 },
5960 "dependencies" : {
6061 "@effect-patterns/analysis-core" : " workspace:*" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ export EFFECT_PATTERNS_API_URL="${PRODUCTION_URL}"
5252echo -e " ${BLUE} Running MCP protocol tests against production server...${NC} \n"
5353
5454# Run MCP tests with production config
55- bunx vitest run --config vitest.mcp.config.ts tests/mcp-protocol/client-stdio.test.ts tests/mcp-protocol/tools.test.ts
55+ bunx vitest run --config vitest.mcp.config.ts \
56+ tests/mcp-protocol/client-stdio.test.ts \
57+ tests/mcp-protocol/structured-output.test.ts
5658
5759echo -e " \n${GREEN} ✓ Production MCP tests completed${NC} "
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ export EFFECT_PATTERNS_API_URL="${STAGING_URL}"
5252echo -e " ${BLUE} Running MCP protocol tests against staging server...${NC} \n"
5353
5454# Run MCP tests with staging config
55- bunx vitest run --config vitest.mcp.config.ts tests/mcp-protocol/client-stdio.test.ts tests/mcp-protocol/tools.test.ts
55+ bunx vitest run --config vitest.mcp.config.ts \
56+ tests/mcp-protocol/client-stdio.test.ts \
57+ tests/mcp-protocol/structured-output.test.ts
5658
5759echo -e " \n${GREEN} ✓ Staging MCP tests completed${NC} "
You can’t perform that action at this time.
0 commit comments