-
Notifications
You must be signed in to change notification settings - Fork 2
Add live-stack MCP 2026-07-28 conformance testing #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+713
−13
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6ee121a
Add live MCP conformance CI
lucarlig 3dd0371
Refactor conformance workflow scripts
lucarlig 5f70be0
Condense conformance CI documentation
lucarlig 14ba89b
Organize conformance harness and refresh Pages CI
lucarlig a2925f3
Keep conformance results in Actions logs
lucarlig 290a2de
Bump rmcp to 3.1.2
lucarlig 6888738
ci: address conformance review feedback
lucarlig 4f99e71
Merge origin/main into user/luca/mcp-conformance-ci
lucarlig 2596e0b
ci: allowlist conformance test credentials
lucarlig b9a43af
ci: test conformance against PR image
lucarlig 7bfef72
ci: align local conformance with PR build
lucarlig 828d475
Print conformance warnings in CI diagnostics
lucarlig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,6 @@ target/ | |
| assets/ | ||
| resources/ | ||
| releases/ | ||
| .conformance-suite/ | ||
| conformance-logs/ | ||
| conformance-results/ | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| name: MCP Conformance | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: mcp-conformance-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| MCP_CONFORMANCE_VERSION: 0.2.0-alpha.11 | ||
| MCP_CONFORMANCE_SOURCE_SHA: c321dd32035556e6769d3724a8ee97d87c3faaac # pragma: allowlist secret | ||
| MCP_CONFORMANCE_SPEC_VERSION: 2026-07-28 | ||
| MCP_CONFORMANCE_SERVER_ID: 3f33286667d34b65a31c3bafd30e4c21 | ||
| CF_CONTROLPLANE_IMAGE: ghcr.io/ibm/mcp-context-forge:latest | ||
| CF_DATAPLANE_IMAGE: contextforge-data-plane:conformance | ||
|
|
||
| jobs: | ||
| conformance: | ||
| name: MCP 2026-07-28 through nginx and dataplane | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
|
|
||
| steps: | ||
| - name: Check out data plane | ||
| uses: actions/checkout@v6.0.2 | ||
|
|
||
| - name: Build data plane from the checked-out source | ||
| run: make conformance-image | ||
|
|
||
| - name: Check out the alpha.11 conformance fixture | ||
| uses: actions/checkout@v6.0.2 | ||
| with: | ||
| repository: modelcontextprotocol/conformance | ||
| ref: ${{ env.MCP_CONFORMANCE_SOURCE_SHA }} | ||
| path: .conformance-suite | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Node.js 22 | ||
| uses: actions/setup-node@v6.5.0 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
| cache-dependency-path: .conformance-suite/package-lock.json | ||
|
|
||
| - name: Install official conformance dependencies | ||
| working-directory: .conformance-suite | ||
| run: | | ||
| test "$(node -p "require('./package.json').version")" = "${MCP_CONFORMANCE_VERSION}" | ||
| npm ci --ignore-scripts | ||
|
|
||
| - name: Pull external stack images | ||
| env: | ||
| MCP_CONFORMANCE_TOKEN: pull-only | ||
| run: >- | ||
| docker compose -f tests/conformance/docker-compose.yml | ||
| pull redis control-plane nginx | ||
|
|
||
| - name: Start the fixture and control plane | ||
| env: | ||
| MCP_CONFORMANCE_TOKEN: bootstrap-only | ||
| run: tests/conformance/start-fixture-and-control-plane.sh | ||
|
|
||
| - name: Register the official fixture through the control plane | ||
| env: | ||
| MCP_CONFORMANCE_TOKEN: bootstrap-only | ||
| run: tests/conformance/register-fixture.sh | ||
|
|
||
| - name: Start dataplane and nginx | ||
| run: tests/conformance/start-dataplane-and-nginx.sh | ||
|
|
||
| - name: Run MCP 2026-07-28 requirements | ||
| id: runner | ||
| run: tests/conformance/run-conformance.sh | ||
|
|
||
| - name: Print conformance failures and warnings | ||
| if: always() | ||
| run: | | ||
| if [ ! -d conformance-results ]; then | ||
| echo "No conformance results were produced." | ||
| exit 0 | ||
| fi | ||
| find conformance-results -type f -name checks.json -print0 | | ||
| while IFS= read -r -d '' checks_file; do | ||
| jq --arg file "${checks_file}" \ | ||
| '[.[] | select(.status == "FAILURE" or .status == "WARNING")] | | ||
| if length > 0 then {file: $file, findings: .} else empty end' \ | ||
| "${checks_file}" | ||
| done | ||
|
|
||
| - name: Print live stack logs | ||
| if: always() | ||
| env: | ||
| MCP_CONFORMANCE_TOKEN: diagnostics-only | ||
| run: >- | ||
| docker compose -f tests/conformance/docker-compose.yml | ||
| logs --no-color || true | ||
|
|
||
| - name: Stop the live stack | ||
| if: always() | ||
| env: | ||
| MCP_CONFORMANCE_TOKEN: cleanup-only | ||
| run: tests/conformance/stop-live-stack.sh | ||
|
|
||
| - name: Enforce conformance baseline | ||
| if: always() | ||
| env: | ||
| RUNNER_STATUS: ${{ steps.runner.outputs.status }} | ||
| run: test "${RUNNER_STATUS}" = "0" | ||
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| name: contextforge-conformance | ||
|
|
||
| services: | ||
| redis: | ||
| image: redis:8.8.1-alpine3.23 | ||
| command: [redis-server, --save, "", --appendonly, "no"] | ||
| networks: [contextforge] | ||
| healthcheck: | ||
| test: [CMD, redis-cli, ping] | ||
| interval: 2s | ||
| timeout: 2s | ||
| retries: 30 | ||
|
|
||
| control-plane: | ||
| image: ${CF_CONTROLPLANE_IMAGE:-ghcr.io/ibm/mcp-context-forge:latest} | ||
| ports: | ||
| - "127.0.0.1:4444:4444" | ||
| networks: [contextforge] | ||
| extra_hosts: | ||
| - host.docker.internal:host-gateway | ||
| environment: | ||
| HOST: 0.0.0.0 | ||
| PORT: "4444" | ||
| DATABASE_URL: sqlite:////tmp/contextforge-conformance.db | ||
| CACHE_TYPE: redis | ||
| REDIS_URL: redis://redis:6379/0 | ||
| JWT_SECRET_KEY: contextforge-conformance-jwt-secret-at-least-32-bytes | ||
| JWT_ALGORITHM: RS256 | ||
| JWT_PUBLIC_KEY_PATH: /keys/jwt.key.pub | ||
| JWT_PRIVATE_KEY_PATH: /keys/jwt.key | ||
| AUTH_ENCRYPTION_SECRET: contextforge-conformance-encryption-secret-at-least-32-bytes # pragma: allowlist secret | ||
| AUTH_REQUIRED: "true" | ||
| BASIC_AUTH_USER: admin | ||
| BASIC_AUTH_PASSWORD: conformance-admin-password # pragma: allowlist secret | ||
| PLATFORM_ADMIN_EMAIL: admin@example.com | ||
| PLATFORM_ADMIN_PASSWORD: conformance-admin-password # pragma: allowlist secret | ||
| MCPGATEWAY_SKIP_MIGRATIONS: "false" | ||
| MCPGATEWAY_UI_ENABLED: "false" | ||
| MCPGATEWAY_ADMIN_API_ENABLED: "true" | ||
| SECURE_COOKIES: "false" | ||
| SSRF_ALLOW_PRIVATE_NETWORKS: "true" | ||
| DATAPLANE_PUBLISHER: "true" | ||
| DATAPLANE_PUBLISHER_INTERVAL_SECONDS: "2" | ||
| PASSWORD_CHANGE_ENFORCEMENT_ENABLED: "false" | ||
| ADMIN_REQUIRE_PASSWORD_CHANGE_ON_BOOTSTRAP: "false" | ||
| REQUIRE_PASSWORD_CHANGE_FOR_DEFAULT_PASSWORD: "false" | ||
| GATEWAY_TOOL_NAME_SEPARATOR: _ | ||
| GUNICORN_WORKERS: "1" | ||
| LOG_LEVEL: INFO | ||
| volumes: | ||
| - ../../assets:/keys:ro | ||
| depends_on: | ||
| redis: | ||
| condition: service_healthy | ||
| healthcheck: | ||
| test: [CMD, curl, --fail, http://127.0.0.1:4444/health] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 60 | ||
| start_period: 10s | ||
|
|
||
| data-plane: | ||
| image: ${CF_DATAPLANE_IMAGE:-ghcr.io/contextforge-org/contextforge-data-plane:latest} | ||
| networks: [contextforge] | ||
| extra_hosts: | ||
| - host.docker.internal:host-gateway | ||
| environment: | ||
| CONTEXTFORGE_DATA_PLANE_ADDRESS: 0.0.0.0:4445 | ||
| CONTEXTFORGE_DATA_PLANE_REDIS_HOSTNAME: redis | ||
| CONTEXTFORGE_DATA_PLANE_REDIS_PORT: "6379" | ||
| CONTEXTFORGE_DATA_PLANE_REDIS_CONNECTION_MODE: plain-text | ||
| CONTEXTFORGE_DATA_PLANE_UPSTREAM_CONNECTION_MODE: plain-text-or-tls | ||
| CONTEXTFORGE_DATA_PLANE_TOKEN_VERIFICATION_PUBLIC_KEY: /keys/jwt.key.pub | ||
| CONTEXTFORGE_DATA_PLANE_TOKEN_VERIFICATION_PRIVATE_KEY: /keys/jwt.key # pragma: allowlist secret | ||
| CONTEXTFORGE_DATA_PLANE_USER_CONFIG_CACHE_EXPIRY_SECONDS: "0" | ||
| CONTEXTFORGE_GATEWAY_RS_MCP_ALLOWED_HOSTS: >- | ||
| 127.0.0.1:${MCP_CONFORMANCE_PORT:-8080},localhost:${MCP_CONFORMANCE_PORT:-8080} | ||
| CONTEXTFORGE_GATEWAY_RS_MCP_ALLOWED_ORIGINS: >- | ||
| http://127.0.0.1:${MCP_CONFORMANCE_PORT:-8080},http://localhost:${MCP_CONFORMANCE_PORT:-8080} | ||
| RUST_LOG: info | ||
| volumes: | ||
| - ../../assets:/keys:ro | ||
| depends_on: | ||
| redis: | ||
| condition: service_healthy | ||
|
|
||
| nginx: | ||
| image: nginx:1.30.4-alpine3.24 | ||
| ports: | ||
| - "127.0.0.1:${MCP_CONFORMANCE_PORT:-8080}:80" | ||
| networks: [contextforge] | ||
| environment: | ||
| MCP_CONFORMANCE_TOKEN: ${MCP_CONFORMANCE_TOKEN:?} | ||
| NGINX_ENVSUBST_TEMPLATE_DIR: /templates | ||
| NGINX_ENVSUBST_TEMPLATE_SUFFIX: .template | ||
| NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx | ||
| volumes: | ||
| - ./nginx.conf.template:/templates/nginx.conf.template:ro | ||
| depends_on: | ||
| control-plane: | ||
| condition: service_healthy | ||
| # Full readiness, routing, and auth are verified by start-dataplane-and-nginx.sh. | ||
| data-plane: | ||
| condition: service_started | ||
|
lucarlig marked this conversation as resolved.
|
||
| healthcheck: | ||
| test: [CMD, curl, --fail, http://127.0.0.1/health] | ||
| interval: 2s | ||
| timeout: 2s | ||
| retries: 30 | ||
|
|
||
| networks: | ||
| contextforge: | ||
| driver: bridge | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.