MicroStax exposes a Model Context Protocol (MCP) server, allowing AI agents and automated workflows to control the entire environment lifecycle with task-level semantics.
The server registers:
80+ Tools for orchestration, observability, and governance.
8 Resources for real-time context.
5 Prompts for standardized agent interactions.
Every MCP call reaches the API with your own organization API key (mx_live_…, created under Settings → API Keys), which carries its organization and role. A local stdio server reads it from MICROSTAX_API_KEY (or the CLI's MICROSTAX_TOKEN); a hosted server takes it as Authorization: Bearer <api-key> on the connection. The MCP server holds no credential of its own and does not accept the platform's static service token.
| Tool | Inputs | Purpose |
|---|
env_list | status? | List environments with optional status filtering. |
env_get | id | Fetch full environment metadata. |
env_create | blueprint, name? | Provision a new environment from Blueprint YAML. |
env_delete | id | Terminate an environment and its resources. |
env_stop | id | Pause environment execution (cost-saving). |
env_resume | id | Resume a paused environment. |
env_status | id | Fetch live health status of individual services. |
env_scale | id, service, replicas | Scale a service and update the mesh topology. |
environment_replay | id, snapshotId? | Restore an environment from a recorded state. |
env_shadow | id, enable | Toggle behavioral mirroring (shadowing). |
env_logs | id, service?, lines? | Fetch recent logs for an environment. |
| Tool | Inputs | Purpose |
|---|
blueprint_validate | blueprint | Run schema validation plus lint rules L002, L004, L005, L010, L013, L014, L015, L016. |
blueprint_discover | url or path | Discover a Blueprint from a public https git repository (url). A local directory (path) is scanned only when the MCP server runs locally over stdio; the hosted server rejects path. |
blueprint_predict_cost | blueprint | Predict monthly cost before provisioning. |
env_cost | id | Run live cost analysis for a specific env. |
env_predict | id | Predict configuration drift or potential failures. |
env_diagnose | id | Run failure diagnosis (AI-assisted). |
env_diagnose_apply | id, suggestionId | Apply a recommended infrastructure fix. |
| Tool | Inputs | Purpose |
|---|
identity_verify | none | Verify current identity and organization scope. |
identity_federate | serviceId, targetClusterId | Post-GA preview: mint a short-lived token for service calls into another cluster. Not supported at GA. |
governance_get_logs | limit?, since?, until?, action?, environmentId? | Audit organization-wide infrastructure changes. |
governance_propose_policy | none | Suggest drift-policy changes with reasoning; applies nothing. |
governance_apply_policy | blockOnCriticalRegressions?, maxDriftTickets? | Update the organization drift policy that gates baseline promotion. |
When MicroStax itself gets in your way (an environment stuck provisioning, wrong routing, the dashboard, API, CLI or MCP server not behaving as expected), report it with issue_report. The report uses your own API key; the API adds a snapshot of the environment's state.
The read and triage tools need platform scope. They work only in a local stdio MCP server whose own environment sets MICROSTAX_PLATFORM_TOKEN. A hosted HTTP/SSE server refuses them, because a server-held platform token would give every connected caller reads across all organizations.
| Tool | Inputs | Purpose |
|---|
issue_report | summary, details, severity, category, environmentId?, context? | Report a MicroStax problem to the platform team. |
issue_list | status?, severity?, category?, organizationId?, limit?, offset? | Platform, stdio only: list reports from every organization. |
issue_get | id | Platform, stdio only: one report with its snapshot and context. |
issue_update | id, status, resolutionNote? | Platform, stdio only: change a report's status. |
| Tool | Inputs | Purpose |
|---|
snapshot_create | id, service? | Create a point-in-time service snapshot. |
env_snapshot_closure | id | Capture an immutable closure of the environment for replay. |
env_seed | id, service, script, type | Run an ad-hoc SQL or Shell seed script. |
seed_run | name, envId, version? | Execute a published seed from the registry. |
| Resource | URI | Purpose |
|---|
environment_list | microstax://environments | Current environment list as JSON. |
environment_detail | microstax://environments/{id} | One environment record as JSON. |
environment_logs | microstax://environments/{id}/logs | Stream logs as plain text. |
blueprint_schema | microstax://schema/blueprint | JSON Schema for Blueprint authoring. |
environment-topology | microstax://environments/{id}/topology | Service topology for one environment. |
health-resource | microstax://health | Platform health status. |
templates | microstax://templates | Template gallery list. |
template | microstax://templates/{name} | One template's Blueprint. |
| Prompt | Intended Flow |
|---|
create-environment | Generate Blueprint -> Validate -> Cost Predict -> Create. |
diagnose-failures | Inspect Logs -> Check Topology -> Run AI Diagnosis -> Apply Fix. |
blueprint-review | Security review of an environment Blueprint. |
environment-summary | Status report for one environment. |
mcp-audit | Functional and resilience audit of the MCP server. |
- Think Before Provisioning: Always call
blueprint_predict_cost before env_create to ensure alignment with organization budgets.
- Deterministic Debugging: When an environment fails, call
env_snapshot_closure before attempting manual remediation to preserve the failure state for replay.
- Verify Identity: Call
identity_verify at the start of a session to confirm your organization scope and role permissions.
- Report Platform Problems: When MicroStax misbehaves in a way you cannot fix (not a bug in the user's own services), call
issue_report with what you attempted, expected and observed, and the error text.