MCP Interface¶
AutoMOOSE exposes a Model Context Protocol (MCP) server that allows external LLM agents and tools to interact with the simulation pipeline programmatically.
Server Details¶
Transport: stdio and SSE
Host:
0.0.0.0Port:
8001Framework: Starlette / uvicorn
The MCP server acts as a hub, routing tool calls from external clients to the five-agent pipeline and plugin registry.
Available Tools¶
The server exposes ten tools:
Tool Name |
Description |
|---|---|
|
List all registered physics plugins and their status |
|
Initialize a new simulation run with given parameters |
|
Invoke f₂ Input Writer to produce a MOOSE |
|
Execute the simulation via f₃ Runner |
|
Poll run status from |
|
Retrieve |
|
Invoke f₄ Reviewer on completed run output |
|
Return parsed postprocessor CSV data |
|
Trigger f₅ Visualization for a completed run |
|
List all runs with status and metadata |
Example: Creating a Run via MCP¶
import httpx
response = httpx.post("http://localhost:8001/mcp/tool", json={
"tool": "create_run",
"params": {
"plugin": "GrainGrowth",
"temperature": 600,
"duration": 100,
"mesh_size": [50, 50]
}
})
print(response.json())
Future Directions¶
RAG (Retrieval-Augmented Generation) integration is planned as a future extension to augment the Architect agent with retrieval over MOOSE documentation and prior simulation records.