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 production-grade Model Context Protocol (MCP) server, allowing AI agents and automated workflows to control the entire environment lifecycle with task-level semantics.

The v10.2 server registers:

  • 45+ Tools for orchestration, observability, and governance.
  • 5 Resources for real-time context.
  • 3 Prompts for standardized agent interactions.

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 the MicroStax Quality Gate (L001-L005).
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, suggestionApply a recommended infrastructure fix.

Identity & governance

ToolInputsPurpose
identity_verifynoneVerify current identity and organization scope.
identity_federateserviceId, targetClusterMint a short-lived federated token for service-to-service calls across clusters.
governance_get_logslimit?Audit organization-wide infrastructure changes.

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, scriptRun an ad-hoc SQL or Shell seed script.
seed_runname, envIdExecute 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.

Built-In Agent Prompts

PromptIntended Flow
create-environmentGenerate Blueprint -> Validate -> Cost Predict -> Create.
diagnose-failuresInspect Logs -> Check Topology -> Run AI Diagnosis -> Apply Fix.

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.
MCP Server Reference | MicroStax Documentation