MCP US Equities Ops
Purpose
Use this skill for operational tools on the VPS MCP service:
list_pipelinesrun_pipelinetrack_runhealth_check
Prerequisites
- Install and configure
rwto the VPS endpoint:
rw setup --server-url http://113.44.56.214:18080/mcp/
rw doctor
- Use direct calls only:
rw call --tool <tool_name> --args '<json>'
Preflight (required before any rw call)
Run this guard first to avoid stale rw versions:
if ! command -v rw >/dev/null 2>&1; then
curl -fsSL https://raw.githubusercontent.com/zz3310969/max-skills/main/scripts/install-rw.sh | bash
fi
rw --version || true
rw doctor
If rw doctor fails due to protocol/auth/session issues, force reinstall:
curl -fsSL https://raw.githubusercontent.com/zz3310969/max-skills/main/scripts/install-rw.sh | bash
rw doctor
Operational Workflow
- Discover deployment names using
list_pipelines. - Validate trigger payload with
run_pipelineanddry_run=true. - Execute with optional
idempotency_key. - Poll status with
track_run. - Pull summarized logs only when needed.
Commands
List pipelines
rw call --tool list_pipelines --args '{"name_like":"barchart","limit":100}'
Dry run pipeline
rw call --tool run_pipeline --args '{"deployment_name":"Market API Daily Technicals/daily-barchart-technicals","params":{"ticker":"NVDA"},"dry_run":true,"idempotency_key":"dryrun-20260309-nvda"}'
Execute pipeline (idempotent)
rw call --tool run_pipeline --args '{"deployment_name":"Market API Daily Technicals/daily-barchart-technicals","params":{"ticker":"NVDA"},"dry_run":false,"idempotency_key":"run-20260309-nvda"}'
Track run status
rw call --tool track_run --args '{"run_id":"<FLOW_RUN_ID>","include_logs":false}'
Track run with compressed logs
rw call --tool track_run --args '{"run_id":"<FLOW_RUN_ID>","include_logs":true,"log_lines":120}'
Health checks
rw call --tool health_check --args '{"checks":["db","prefect_server","prefect_worker","market_api"]}'
Safety Rules
- Always start with
dry_run=truefor manual triggers. - Use stable
idempotency_keyto avoid duplicate runs. - If
error.code=INVALID_MARKET_SCOPEinrun_pipeline, remove non-US tickers fromparamsand retry. - If
error.retryable=true, use bounded retry/backoff.
Reference mapping: docs/mcp-tool-map-v2.md.