Skip to main content
Glama
SethGame

FlexSim MCP Server

by SethGame

flexsim_compile

Check FlexScript code for errors in FlexSim simulation models to ensure reliable model execution and analysis.

Instructions

Compile the model (check for FlexScript errors).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The flexsim_compile tool handler that checks the FlexSim model for script errors by calling compilemodel() through FlexScript evaluation
    async def flexsim_compile() -> str: """Compile the model (check for FlexScript errors).""" try: controller = await get_controller() result = controller.evaluate("compilemodel()") return f"✓ Compilation complete: {result}" except Exception as e: return format_error(e)
  • MCP tool registration decorator that registers flexsim_compile as an available tool in the FastMCP server
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SethGame/mcp_flexsim'

If you have feedback or need assistance with the MCP directory API, please join our Discord server