MCP Server Reference

Technical reference for the MicroStax Model Context Protocol (MCP) server. Tools, resources, and workflows for agentic infrastructure control.

MicroStax MCP Server Reference

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.

Authentication

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 Catalog

Environment Orchestration

ToolInputsPurpose
env_liststatus?List environments with optional status filtering.
env_getidFetch full environment metadata.
env_createblueprint, name?Provision a new environment from Blueprint YAML.
env_deleteidTerminate an environment and its resources.
env_stopidPause environment execution (cost-saving).
env_resumeidResume a paused environment.
env_statusidFetch live health status of individual services.
env_scaleid, service, replicasScale a service and update the mesh topology.
environment_replayid, snapshotId?Restore an environment from a recorded state.
env_shadowid, enableToggle behavioral mirroring (shadowing).
env_logsid, service?, lines?Fetch recent logs for an environment.

Intelligence & Economics

ToolInputsPurpose
blueprint_validateblueprintRun schema validation plus lint rules L002, L004, L005, L010, L013, L014, L015, L016.
blueprint_discoverurl or pathDiscover 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_costblueprintPredict monthly cost before provisioning.
env_costidRun live cost analysis for a specific env.
env_predictidPredict configuration drift or potential failures.
env_diagnoseidRun failure diagnosis (AI-assisted).
env_diagnose_applyid, suggestionIdApply a recommended infrastructure fix.

Identity & governance

ToolInputsPurpose
identity_verifynoneVerify current identity and organization scope.
identity_federateserviceId, targetClusterIdPost-GA preview: mint a short-lived token for service calls into another cluster. Not supported at GA.
governance_get_logslimit?, since?, until?, action?, environmentId?Audit organization-wide infrastructure changes.
governance_propose_policynoneSuggest drift-policy changes with reasoning; applies nothing.
governance_apply_policyblockOnCriticalRegressions?, maxDriftTickets?Update the organization drift policy that gates baseline promotion.

Issue reports

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.

ToolInputsPurpose
issue_reportsummary, details, severity, category, environmentId?, context?Report a MicroStax problem to the platform team.
issue_liststatus?, severity?, category?, organizationId?, limit?, offset?Platform, stdio only: list reports from every organization.
issue_getidPlatform, stdio only: one report with its snapshot and context.
issue_updateid, status, resolutionNote?Platform, stdio only: change a report's status.

Snapshot & Data seeding

ToolInputsPurpose
snapshot_createid, service?Create a point-in-time service snapshot.
env_snapshot_closureidCapture an immutable closure of the environment for replay.
env_seedid, service, script, typeRun an ad-hoc SQL or Shell seed script.
seed_runname, envId, version?Execute a published seed from the registry.

Resources (Read-Only Context)

ResourceURIPurpose
environment_listmicrostax://environmentsCurrent environment list as JSON.
environment_detailmicrostax://environments/{id}One environment record as JSON.
environment_logsmicrostax://environments/{id}/logsStream logs as plain text.
blueprint_schemamicrostax://schema/blueprintJSON Schema for Blueprint authoring.
environment-topologymicrostax://environments/{id}/topologyService topology for one environment.
health-resourcemicrostax://healthPlatform health status.
templatesmicrostax://templatesTemplate gallery list.
templatemicrostax://templates/{name}One template's Blueprint.

Built-In Agent Prompts

PromptIntended Flow
create-environmentGenerate Blueprint -> Validate -> Cost Predict -> Create.
diagnose-failuresInspect Logs -> Check Topology -> Run AI Diagnosis -> Apply Fix.
blueprint-reviewSecurity review of an environment Blueprint.
environment-summaryStatus report for one environment.
mcp-auditFunctional and resilience audit of the MCP server.

Guidance for AI Agents

  1. Think Before Provisioning: Always call blueprint_predict_cost before env_create to ensure alignment with organization budgets.
  2. Deterministic Debugging: When an environment fails, call env_snapshot_closure before attempting manual remediation to preserve the failure state for replay.
  3. Verify Identity: Call identity_verify at the start of a session to confirm your organization scope and role permissions.
  4. 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.
MCP Server Reference | MicroStax Documentation