Skip to content

Commit 739a54a

Browse files
authored
Merge pull request #233 from PaulJPhilp/codex/pr-5-release-test-ci-repair
PR-5: Release test/CI repair (P1)
2 parents dc07dfa + 6f083cd commit 739a54a

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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!"

packages/mcp-server/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
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",
@@ -54,7 +55,7 @@
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:*",

packages/mcp-server/scripts/test-mcp-production.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export EFFECT_PATTERNS_API_URL="${PRODUCTION_URL}"
5252
echo -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

5759
echo -e "\n${GREEN}✓ Production MCP tests completed${NC}"

packages/mcp-server/scripts/test-mcp-staging.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export EFFECT_PATTERNS_API_URL="${STAGING_URL}"
5252
echo -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

5759
echo -e "\n${GREEN}✓ Staging MCP tests completed${NC}"

0 commit comments

Comments
 (0)