Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FLEXSIM_LOG_LEVEL | No | Override logging level | INFO |
| FLEXSIM_CONFIG_PATH | No | Path to an alternate config.toml file | |
| FLEXSIM_INSTALL_PATH | No | Override FlexSim program path | |
| FLEXSIM_PYTHON_VERSION | No | Override Python version for FlexSimPy | 3.12 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| flexsim_open_model | Open a FlexSim model file. Args:
model_path: Path to .fsm or .fsx file
Example:
model_path="C:/Models/warehouse.fsm" |
| flexsim_reset | Reset simulation to initial state (time = 0). |
| flexsim_run | Start running the simulation continuously. |
| flexsim_run_to_time | Run simulation until reaching target time. Args:
target_time: Target simulation time in seconds
fast_mode: Run at maximum speed (default: True). Set to False for real-time GUI updates.
Example:
target_time=3600 # Run for 1 hour |
| flexsim_stop | Stop the running simulation. |
| flexsim_get_time | Get current simulation time. |
| flexsim_step | Step through simulation events. Args:
steps: Number of events to step (1-1000, default: 1)
Example:
steps=10 # Advance 10 events |
| flexsim_evaluate | Execute FlexScript code. Args:
script: FlexScript code to evaluate
Examples:
script='Model.find("Queue1").subnodes.length' # Get queue content
script='getmodeltime()' # Get simulation time |
| flexsim_get_node_value | Get value from FlexSim tree node. Args:
node_path: Path to node (e.g., "Model/Queue1/stats/input") |
| flexsim_set_node_value | Set value in FlexSim tree node. Args:
node_path: Path to node
value: New value to set
Example:
node_path="Model/Processor1/variables/processtime"
value=5.0 |
| flexsim_save_model | Save the current model. Args:
save_path: Path to save (optional, uses current if not provided)
Example:
save_path="C:/Models/warehouse_v2.fsm" |
| flexsim_new_model | Create a new blank model. |
| flexsim_compile | Compile the model (check for FlexScript errors). |
| flexsim_get_statistics | Get simulation statistics and performance metrics. |
| flexsim_export_results | Export simulation results to file. Args:
export_path: Path to save results
format: Export format (csv, xlsx, json)
Example:
export_path="C:/Results/output.csv"
format="csv" |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |