alphaswarm-ml-mcp
Dedicated MCP server publishing the data.ml.* tool slice — Predictor
Hub lookups, AlphaBacktestExperiment dispatch, walk-forward run
inspection, finetune trainer status, model serving (vLLM / Ollama /
KServe). Piggybacked on the alphaswarm-core pod (same FastAPI app,
distinct route prefix and aud claim).
This is the MLOps slice's RFC 9728 / RFC 8707 conformant endpoint —
see mcp-rfc-conformance.
Identity
| Field | Value |
|---|---|
| Service id | alphaswarm-ml-mcp |
| Role | mcp |
| Package | alphaswarm_models/ (tools); served from alphaswarm/ml_mcp/ |
| Image (key) | (piggybacked on api) |
| Built from | alphaswarm_platform/Dockerfile (target api) |
Wire
| Field | Value |
|---|---|
| Protocol | HTTP/1.1 + WebSocket (MCP) |
| Port | 8000 (shared with alphaswarm-core) |
| Health | GET /mcp/ml/tools (lists tool registrations) |
| Discovery | GET /.well-known/oauth-protected-resource/mcp/ml (RFC 9728 metadata) |
| Audience claim | dedicated per-MCP aud per AGENTS rule 49 |
Tool registrations
| Tool prefix | Concept doc |
|---|---|
data.ml.predictors.* | ml-framework.md |
data.ml.skills.* | mlops-service.md |
data.ml.serving.* | ml-framework.md |
data.ml.experiments.* | analysis-framework.md |
data.ml.finetune.* | ml-framework.md |
Deployment surfaces
| Surface | Where |
|---|---|
| Compose | folded into api |
| Kustomize | folded into base/alphaswarm-core/ |
| AQP CR | folded into AQPMonolith (spec.mlMcp.enabled) |
Dependencies
Upstream:
mlflow(5000) — experiment + model registry.postgres— Predictor Hub catalog.polaris/minio— feature store reads.bentoml/kserve(when serving backend = remote) — model invocations.
Downstream:
- Agentic plane (
alphaswarm/agents/) — ML calls go through DataMCP, never direct ORM imports. alphaswarm-ideresearch copilot.
Operations
router_completeonly: any LLM call from inside the MCP registrations goes throughalphaswarm/llm/providers/router.py(rule 2).- OOD guard + circuit breaker: the MLSkillRuntime applies
rules/ood_guard.pyand the circuit breaker before model calls. - Audit: every tool invocation lands an
agent_runs_v2row.
See also
mlops-service.md— MLOps service contract.data-mcp.md— DataMCPTool boundary.mcp-rfc-conformance— RFC 9728 + RFC 8707 conformance.