mn-api is the FastAPI REST gateway for MirrorNeuron. It exposes runtime,
blueprint, job, graph, event, metric, and run-artifact endpoints and forwards
runtime calls to the core through the Python SDK gRPC client.
Install locally and run tests:
python3.11 -m venv .venv
. .venv/bin/activate
.venv/bin/python -m pip install -e ".[test]"
.venv/bin/python -m pytest -qStart the local API:
mn-apiDefault local URL:
http://localhost:54001
- A running MirrorNeuron core is required for live runtime calls.
- Use
MN_ENV=prodwithMN_API_TOKENwhen exposing protected endpoints. MN_RUNS_ROOTcontrols where run artifacts are read from.