ci(mcp-server): add lint, unit-test, and mcp-client integration jobs - #4
Merged
Conversation
Explicit check=False on the compose subprocess call, sorted imports, formatting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Three jobs: ruff lint/format, the pytest suite, and an end-to-end integration that drives the stdio server with the official MCP Inspector CLI - tools/list plus the full stack lifecycle (status down, odd_stack_up against the runner's Docker, status up, odd_stack_down). The image is pre-pulled so the tool call only pays startup, and the client request timeout is raised accordingly. Whole sequence validated locally before push. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Symmetric with the up path: a final odd_stack_status call verifies running=false independently of odd_stack_down's own return. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
No operation outside the MCP client: the pre-pull step is gone, so the tool call carries pull plus startup itself, proving the server's autonomy. Client request timeout raised accordingly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The inspector-driven sequence moves to integration-tests/mcp-server: lib.sh (MCP-client helpers), test-stack-lifecycle.sh, and a run.sh runner that picks up any test-*.sh - future integration tests are a dropped file away. The workflow calls the runner and path-filters on the folder. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/ci-mcp-server.yml(PR + push onmain, path-filtered to the server, its tests, and the workflow itself) with three jobs:ruff check+ruff format --check(ruff 0.16.4), plus a small style commit bringing the existing code in line with ruff defaults.uv sync+ the pytest suite.@modelcontextprotocol/inspector@2.3.0):tools/listasserts the three stack tools, then the full lifecycle against the runner's native Docker — status down →odd_stack_up(image pre-pulled, client request timeout raised to 300 s) → status up →odd_stack_down+ container-gone check → final status down. Every transition confirmed by an independentodd_stack_statuscall.All actions pinned to full commit SHAs with version comments (checkout v7.0.1, setup-uv v10.0.1, setup-node v7.0.0). The whole integration sequence was validated locally (same inspector commands and jq assertions) before pushing.
How to test
The workflow itself is the test — this PR triggers its first run.
🤖 Generated with Claude Code