interoperability_production_start
Initiate an interoperability production within InterSystems IRIS MCP Server by specifying the production name, enabling streamlined data exchange and integration processes.
Instructions
Start an Interoperability Production
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No |
Implementation Reference
- The main handler function that implements the tool logic: starts the production using Ens.Director.StartProduction, verifies status, and returns confirmation.@server.tool(description="Start an Interoperability Production") async def interoperability_production_start( ctx: Context, name: str = None, ) -> str: logger.info( "Starting Interoperability Production" + f": {name}" if name else "." ) iris = ctx.iris raise_on_error( iris, iris.classMethodString( "Ens.Director", "StartProduction", *([name] if name else []) ), ) refname = IRISReference(iris) name and refname.setValue(name) refstatus = IRISReference(iris) status = iris.classMethodString( "Ens.Director", "GetProductionStatus", refname, refstatus ) if not name: name = refname.getValue() if ( status != "1" or ProductionStatus(int(refstatus.getValue())) != ProductionStatus.Running ): raise ValueError(f"Production {name} not started.") return "Started production"
- src/mcp_server_iris/server.py:56-56 (registration)Calls the init function from interoperability module, which registers the tool handler using @server.tool decorator.interoperability(server, logger)
- src/mcp_server_iris/server.py:8-8 (registration)Imports the init function used to register the interoperability tools.from mcp_server_iris.interoperability import init as interoperability