Skip to main content
Glama
caretdev

InterSystems IRIS MCP Server

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
NameRequiredDescriptionDefault
nameNo

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"
  • Calls the init function from interoperability module, which registers the tool handler using @server.tool decorator.
    interoperability(server, logger)
  • Imports the init function used to register the interoperability tools.
    from mcp_server_iris.interoperability import init as interoperability

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/caretdev/mcp-server-iris'

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