| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
End-to-end tests for the StackRox MCP server using mcpchecker.
Validate configuration and build without running actual agents:
cd e2e-tests
./scripts/smoke-test.shThis is useful for CI and quickly checking that everything compiles.
cd e2e-tests
./scripts/build-mcpchecker.shCreate .env file:
# Required: GCP Project for Vertex AI (Claude agent)
ANTHROPIC_VERTEX_PROJECT_ID=<GCP Project ID>
# Required: OpenAI API Key (for LLM judge)
OPENAI_API_KEY=<OpenAI API Key>
# Optional: Vertex AI region (defaults to us-east5)
CLOUD_ML_REGION=us-east5
# Optional: Judge configuration (defaults to OpenAI)
JUDGE_MODEL_NAME=openai:gpt-5-nanoNote: No StackRox API token required - tests use WireMock mock service.
Run tests against the WireMock mock service:
./scripts/run-tests.shThe test suite:
Results are saved to mcpchecker/mcpchecker-stackrox-mcp-e2e-out.json.
# Summary
jq '.results[] | {taskName, taskPassed}' mcpchecker/mcpchecker-stackrox-mcp-e2e-out.json
# Tool calls
jq '[.results[] | .callHistory.ToolCalls[]? | {name: .request.Params.name, arguments: .request.Params.arguments}]' mcpchecker/mcpchecker-stackrox-mcp-e2e-out.json| Test | Description | Tool |
|---|---|---|
| list-clusters | List all clusters | list_secured_clusters |
| cve-detected-workloads | CVE detected in deployments | get_deployments_for_cve |
| cve-detected-clusters | CVE detected in clusters | get_clusters_with_orchestrator_cve |
| cve-nonexistent | Handle non-existent CVE | get_clusters_with_orchestrator_cve |
| cve-cluster-does-exist | CVE with cluster filter | get_clusters_with_orchestrator_cve |
| cve-cluster-does-not-exist | CVE with non-existent cluster | list_secured_clusters |
| cve-clusters-general | General CVE query | get_clusters_with_orchestrator_cve |
| cve-cluster-list | CVE across clusters | get_clusters_with_orchestrator_cve |
| cve-log4shell | Well-known CVE (log4shell) | get_deployments_for_cve |
| cve-multiple | Multiple CVEs in one prompt | get_deployments_for_cve |
| rhsa-not-supported | RHSA detection (should fail) | None |
mcpchecker uses a proxy architecture to intercept MCP tool calls:
Tests fail - no tools called
Build errors
go mod tidy
./scripts/build-mcpchecker.sh| Back | FazBrowse Home | New Git URL |