Utility scripts for development, testing, and operations.
Load testing script for the ACE Platform MCP server and API endpoints.
pip install httpx# Basic test (10 concurrent users, 100 requests) python scripts/load_test_mcp.py # Custom concurrent users and requests python scripts/load_test_mcp.py --users 50 --requests 500 # Test against production python scripts/load_test_mcp.py --host https://your-ace-platform.fly.dev # Run specific test python scripts/load_test_mcp.py --test health python scripts/load_test_mcp.py --test list_playbooks python scripts/load_test_mcp.py --test ramp_up # Ramp-up test to find breaking point python scripts/load_test_mcp.py --test ramp_up --ramp-max-users 100| Option | Default | Description |
|---|---|---|
--host | http://localhost:8001 | MCP server URL |
--api-key | $API_KEY | API key for authentication |
--users | 10 | Number of concurrent users |
--requests | 100 | Total number of requests |
--test | all | Test to run: health, list_playbooks, ramp_up, all |
--ramp-max-users | 50 | Maximum users for ramp-up test |
The script reports:
- Success Rate: Percentage of successful requests
- Requests/second: Throughput
- Response Times: Average, median (p50), p95, p99, min, max
============================================================ Load Test Results: Health Check ============================================================ Total Requests: 100 Successful: 100 Failed: 0 Success Rate: 100.0% Total Duration: 2.45s Requests/second: 40.8 Response Times: Average: 24.5ms Median (p50): 22.1ms 95th percentile: 38.7ms 99th percentile: 45.2ms Min: 18.3ms Max: 52.1ms ============================================================ | Metric | Good | Warning | Critical |
|---|---|---|---|
| Success Rate | > 99% | 95-99% | < 95% |
| p95 Response Time | < 100ms | 100-500ms | > 500ms |
| Requests/second | > 100 | 50-100 | < 50 |
Before deploying to production, run load tests to ensure:
-
Health check works under load:
python scripts/load_test_mcp.py --test health --users 50 --requests 500
-
API endpoints handle concurrent users:
python scripts/load_test_mcp.py --test list_playbooks --users 20 --requests 200
-
Find breaking point with ramp-up:
python scripts/load_test_mcp.py --test ramp_up --ramp-max-users 100
Generate an authenticated audit snapshot of Sentry project controls used by the ACE platform observability runbook.
The script checks:
- Project lookup by org/project slug
- DSN key availability
- Inbound filter data is visible
- Alert rules
- Ownership rules
Required environment variables:
SENTRY_AUTH_TOKEN(Sentry API token with project read access)SENTRY_ORG(organization slug)SENTRY_PROJECT(project slug)
Example:
export SENTRY_AUTH_TOKEN="sntrys_xxx" export SENTRY_ORG="aceplatform" export SENTRY_PROJECT="ace-platform" python scripts/sentry_project_audit.py --require-alert-rules --strictNon-zero exit codes indicate required controls are missing.