1.7 KiB
1.7 KiB
AGENTS.md
Repository guidance for contributors and coding agents.
Purpose
This repository ships pyro-mcp, an MCP-compatible package for ephemeral VM lifecycle tools used by coding agents.
Development Workflow
- Use
uvfor all Python environment and command execution. - Run
make setupafter cloning. - Run
make checkbefore opening a PR. - Use
make runtime-bundleto regenerate the packaged runtime bundle fromruntime_sources/. - Use
make runtime-materializeto build real runtime inputs intobuild/runtime_sources/. - Use
make runtime-fetch-binaries,make runtime-build-kernel-real, andmake runtime-build-rootfs-realif you need to debug the real-source pipeline step by step. - Use
make demoto validate deterministic VM lifecycle execution. - Use
make ollama-demoto validate model-triggered lifecycle tool usage. - Use
make doctorto inspect bundled runtime integrity and host prerequisites. - If you need full log payloads from the Ollama demo, use
make ollama-demo OLLAMA_DEMO_FLAGS=-v.
Quality Gates
- Linting:
ruff - Type checking:
mypy(strict mode) - Tests:
pytestwith coverage threshold
These checks run in pre-commit hooks and should all pass locally.
Key API Contract
- Public factory:
pyro_mcp.create_server() - Runtime diagnostics CLI:
pyro-mcp-doctor - Runtime bundle build CLI:
pyro-mcp-runtime-build - Current bundled runtime is shim-based unless replaced with a real guest-capable bundle; check
make doctorfor runtime capabilities. - Lifecycle tools:
vm_list_profilesvm_createvm_startvm_execvm_stopvm_deletevm_statusvm_network_infovm_reap_expired