IRIS Development Tools MCP Server

v1.3.0
io.github.jbrandtmse/iris-dev-mcp Checked 3 hours ago Published 4 days ago

IRIS Development Tools MCP Server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

iris_doc_get Get Document

Retrieve an ObjectScript class, routine, CSP page, or include file by name. Pass startLine and/or endLine (1-based, inclusive) to read part of a UDL text document: use a range for large classes, and to read the exact lines before changing them with `iris_doc_edit`, which uses the same line numbers. A ranged read returns the lines numbered (`cat -n` layout: the number right-aligned in 6 columns, a tab, then the line exactly), plus totalLines and the document's version timestamp `ts`; an endLine past the end is clamped to the last line. Use metadataOnly to check existence and get the version tim…

ParameterTypeDescription
name *stringFull document name with extension (e.g., 'MyApp.Service.cls', '%UnitTest.TestCase.cls')
endLineintegerLast line to return, 1-based and inclusive (default: the last line when only startLine is given). A value past the end is clamped to the last line.
formatstringOutput format (default: udl)
metadataOnlybooleanBoolean (true/false). When true, only check existence and return metadata (the version timestamp, as `etag`) without downloading content
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
startLineintegerFirst line to return, 1-based and inclusive (default: 1 when only endLine is given). Line 1 is the first element of the document's line array; a class's last line is often empty. Not allowed with meta…

iris_doc_put Put Document

**Debug/scratch tool** — for production code, use iris_doc_load to ensure source control and review. This tool writes content directly to IRIS without creating a file on disk, and is intended for one-off inspection, quick reproductions, or throwaway test classes only. A leading byte-order mark is stripped from the content before it is sent, and a write IRIS refuses (a non-empty result.status inside an HTTP 200 response) is returned as an error carrying IRIS's text; nothing is stored then. An existing document is saved only if it has not changed since this tool read its current version; ignor…

ParameterTypeDescription
content *Document content. Pass as a single string with newlines (preferred) or a JSON array of lines. The full class/routine source including 'Class ... {' header.
name *stringDocument name (e.g., 'MyApp.Service.cls')
allowStorageRegenerationbooleanBoolean (true/false), default false. When false, a put to an existing class whose content drops one of the class's Storage definitions is refused and nothing is stored; changing a Storage definition's…
ignoreConflictbooleanBoolean (true/false), default false. Not needed to replace an existing document: without it the tool reads the document's current version and saves only if it is still that version. When true, IRIS sk…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_delete Delete Document

Delete one or more ObjectScript documents from IRIS.

ParameterTypeDescription
name *Document name(s) to delete. Pass a single string (e.g., 'MyApp.Service.cls') or a JSON array for multiple (e.g., ["A.cls", "B.cls"]).
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_list List Documents

List ObjectScript documents in a namespace with optional category and type filters. WARNING: Without a filter, this returns ALL documents including system classes — use the filter parameter or category to limit results. For a structural overview at package granularity, see `iris_package_list`. To pull many documents at once, see `iris_doc_export`.

ParameterTypeDescription
categorystringDocument category filter. CLS = ObjectScript classes (.cls). RTN = routines (.mac / .int / .inc / .bas / .mvi / .mvb — includes include files where macros are defined). CSP = CSP/ZEN pages and other…
cursorstringPagination cursor from a previous response's nextCursor field
filterstringCase-insensitive plain substring filter on document names. Just pass the substring — no wildcards needed. Example: 'MyApp' matches every document whose name contains 'MyApp' (including 'MyApp.Servic…
generatedbooleanInclude generated documents (default: false)
modifiedSincestringNot supported: IRIS cannot filter documents by modification time, so a call that sets it is refused and changes nothing; compare the ts of the documents iris_doc_list returns instead.
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
typestringDocument type filter within the category: the file extension without the dot. RTN takes 'mac', 'int', 'inc', 'bas', 'mvi' or 'mvb', or a comma list such as 'mac,inc'. CLS takes no type filter (leave i…

iris_doc_compile Compile Document

Compile one or more ObjectScript classes, routines, or include files. Returns detailed compilation errors with line/character positions when compilation fails. Use async mode for large packages to avoid timeouts.

ParameterTypeDescription
doc *Document name(s) to compile. Pass a single string for one doc (e.g., 'MyApp.Service.cls') or a JSON array for multiple (e.g., ["A.cls", "B.cls"]). Each name must include the file extension.
asyncbooleanWhen true, queue asynchronous compilation and return immediately with `{mode: "async", docs, response}` — NOT a job ID for polling; there is no companion poll route on this tool today (unlike iris_e…
flagsstringCompilation flags (e.g., 'ck', 'cku'). Default: server default
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_index Document Index

Retrieve the structure of an ObjectScript class, including its methods, properties, parameters, and superclasses. Each member includes its type, signature, and relevant metadata.

ParameterTypeDescription
name *stringDocument name (e.g., 'MyApp.Service.cls')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_macro_info Macro Info

Look up a macro definition, including its expanded value and source location. Requires a document context and optionally a list of include files to resolve the macro. For the fully-expanded routine body as IRIS compiles it, see `iris_routine_intermediate`.

ParameterTypeDescription
name *stringMacro name without the $$$ prefix (e.g., 'OK' for $$$OK, 'ISERR' for $$$ISERR)
documentstringDocument context for macro resolution (e.g., 'MyApp.Service.cls'). Required for meaningful results — without it, resolution returns empty
includesarrayList of include files for macro resolution (e.g., ['%occStatus'])
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_convert Convert Document Format

Convert an ObjectScript document between UDL and XML formats. Retrieves the document in the specified target format using the Atelier API format parameter.

ParameterTypeDescription
name *stringDocument name (e.g., 'MyApp.Service.cls')
targetFormat *stringTarget format to convert the document to
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_xml_export XML Export/Import

Export, import, or list ObjectScript documents in legacy XML format. Use action "export" to export documents to XML, "import" to import from XML content, or "list" to list documents contained in XML without importing. By default an import LOADS definitions WITHOUT compiling them — an imported class is not usable until compiled (pass compile: true to compile in the same call, or use iris_doc_compile afterwards). When compile is not requested the response states plainly that the documents are uncompiled. Non-empty per-file status text reported by IRIS (e.g. a compile error) is surfaced in the…

ParameterTypeDescription
action *stringAction to perform: "export", "import", or "list"
allowStorageRegenerationbooleanFor action "import" only. Boolean (true/false), default false. When false, an import is refused (STORAGE_DROPPED, nothing loaded) if the XML of a class lacks one of the Storage definitions that class…
compilebooleanFor action "import" only. When true, compile the imported documents in the same call via the Atelier load flags (the 'c' qualifier). Default false: documents are loaded but NOT compiled, and the respo…
contentstringXML content for import or list actions (required for action "import" and "list")
docsarrayDocument names to export (required for action "export", e.g., ['MyApp.Service.cls'])
flagsstringFor action "import" only. Atelier load/compile flags (e.g., 'ck', 'cku'). Only used when compile is true; the 'c' (compile) qualifier is folded in automatically when absent or explicitly negated (e.g.…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_sql_execute Execute SQL

Execute a SQL query against an IRIS namespace and return column names and row data. Supports parameterized queries to prevent SQL injection. Use maxRows to limit result set size (default: 1000). An operator may set IRIS_SQL_MAX_ROWS (a ceiling on the number of rows returned — the response carries rowsCapped: true when it clamps the caller's request; it bounds the returned row count post-fetch, not the server-side result set or transfer) and/or IRIS_SQL_TIMEOUT (per-request timeout in seconds) as environment variables; both are opt-in and unset by default. Safety controls: readOnly (default:…

ParameterTypeDescription
query *stringSQL query to execute (e.g., 'SELECT Name FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH ?')
countOnlybooleanReturn only totalCount, the number of rows a SELECT returns, and transfer no rows (default: false)
maxRowsintegerMaximum number of rows to return as an integer (default: 1000)
maxRowsAffectedintegerRoll back and refuse an INSERT, UPDATE or DELETE that changes more than this many rows; 0 is a dry count (default: no cap; IRIS_SQL_MAX_ROWS_AFFECTED sets a ceiling this cannot raise). Under a cap onl…
namespacestringTarget namespace (default: configured)
parametersarrayParameterized query values as a JSON array matching ? placeholders in the query (e.g., ["MyApp."] for a single parameter)
readOnlybooleanRun only queries (SELECT) and refuse any other statement before it runs (default: false; IRIS_SQL_READ_ONLY=true forces it on)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_sql_analyze Analyze SQL

Diagnose SQL performance against an IRIS namespace (read-only). Actions: - **explain** (read): show the query plan via `EXPLAIN <query>` (returns the plan text). Requires 'query'. - **stats** (read): per-statement cumulative runtime statistics from INFORMATION_SCHEMA.STATEMENTS. Optional 'filter' (substring on the Statement text) and 'maxRows'. - **indexUsage** (read): the maps/indexes a query reads, derived from its `EXPLAIN` plan. Requires 'query'. - **running** (read): currently-executing statements from INFORMATION_SCHEMA.CURRENT_STATEMENTS. Optional 'filter' (substring on UserName) and '…

ParameterTypeDescription
action *stringAnalysis action to perform
filterstringOptional case-insensitive substring filter for 'stats' (matches the Statement text) and 'running' (matches UserName)
maxRowsintegerMaximum number of rows to return for tabular actions (default: 1000)
namespacestringTarget namespace (default: configured)
querystringSQL query to analyze (REQUIRED for 'explain' and 'indexUsage'; for 'advise', mutually exclusive with 'workload')
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
topNinteger'advise' + 'workload' only: number of recent statements to analyze (default: 5, max: 20). This caps analysis breadth, which IS scan work — each statement is a full endpoint round-trip.
workloadboolean'advise' only: advise on the top-N recent statements instead of one 'query' (mutually exclusive with 'query')

iris_server_info Server Info

Retrieve IRIS server information including version, platform, and instance name. No namespace context is needed.

ParameterTypeDescription
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_server_namespace Namespace Info

Retrieve details about an IRIS namespace, including associated databases and enabled features.

ParameterTypeDescription
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_global_get Get Global

Read the value of an IRIS global node. Returns the value and whether the node is defined. Supports multi-level subscripts passed as a comma-separated string.

ParameterTypeDescription
global *stringGlobal name without the caret (e.g., 'MyGlobal', not '^MyGlobal')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
subscriptsstringSubscripts as a comma-separated string. Use quotes for string keys: '"key1","key2"'. Use plain numbers for numeric keys: '1,2,3'. Leave empty for the root node.

iris_global_set Set Global

Set the value of an IRIS global node. The value is verified after writing and the response includes a verification flag.

ParameterTypeDescription
global *stringGlobal name without the caret (e.g., 'MyGlobal')
value *stringValue to set at the global node
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
subscriptsstringSubscripts as a comma-separated string. Use quotes for string keys: '"key1","key2"'. Use plain numbers for numeric keys: '1,2,3'. Leave empty for the root node.

iris_global_kill Kill Global

Delete an IRIS global node or entire subtree. Use with caution — this permanently removes data.

ParameterTypeDescription
global *stringGlobal name without the caret (e.g., 'MyGlobal')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
subscriptsstringSubscripts as a comma-separated string. Use quotes for string keys: '"key1","key2"'. Use plain numbers for numeric keys: '1,2,3'. Leave empty for the root node.

iris_global_list List Globals

List globals in an IRIS namespace. Optionally filter by a plain substring match on the global name. Filter is case-insensitive by default (matches `iris_doc_list` semantics); use caseSensitive:true for the prior behavior. Filtering is client-side — all globals are fetched from the server, then filtered locally. Large namespaces with thousands of globals may experience slower responses when a filter is applied.

ParameterTypeDescription
caseSensitivebooleanWhen true, the filter match is case-sensitive (legacy behavior). Default is false (case-insensitive, matching iris_doc_list semantics).
cursorstringPagination cursor from a previous response's nextCursor field
filterstringCase-insensitive plain substring filter on global names (default behavior). Just pass the substring — no wildcards needed. Example: 'temp' matches 'TempData', 'MyTemp', 'IRIS.TempBuffer', and 'temp'…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_execute_command Execute Command

Execute an ObjectScript command on IRIS with captured I/O output. Write statements and other output are captured and returned in the response's `output` field, capped at 32768 RAW characters — measured BEFORE JSON escaping, not the serialized wire size — output beyond the ceiling is cut off and replaced with a structured, machine-detectable marker (`[IRIS-MCP-TRUNCATED ceiling=32768chars]`), never a bare '...'. JSON string escaping (quotes, backslashes, tabs, control characters) can inflate the SERIALIZED response body well past this raw-character figure for metacharacter-heavy output —…

ParameterTypeDescription
command *stringObjectScript command to execute (e.g., 'Write "Hello"')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_execute_classmethod Execute Class Method

Invoke an ObjectScript class method by name with optional positional arguments. Supports up to 20 arguments. Each entry in `args` is either a plain scalar (string, number, or boolean), passed by value, or a `{byRef: true, value?}` marker object, passed by reference — use this for `ByRef`/`Output` parameters. Omit `value` entirely for Output-style undefined-in (e.g. `{"byRef": true}`); `value` may not be JSON null or a non-scalar. The `byRef` flag controls only whether the position's post-call value is reported back in `byRefValues` — every position is bound by reference to the target regar…

ParameterTypeDescription
className *stringFully qualified class name (e.g., 'MyPackage.MyClass')
methodName *stringName of the class method to invoke
argsarrayPositional arguments as a JSON array (max 20). Each entry is either a plain scalar — string, number, or boolean, passed by value (e.g. ["hello", 42, true]) — or a {byRef: true, value?} marker obje…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_execute_tests Execute Tests

Run ObjectScript unit tests at package, class, or method level with structured results. Uses the Atelier async work queue. Default wait budget: 120 seconds — override per-call with `timeout` (seconds) or set the IRIS_TEST_TIMEOUT environment variable (precedence: `timeout` argument > IRIS_TEST_TIMEOUT > 120s default; hard-capped at 3600s, and a larger value is silently clamped with `timeoutCapped: true` in the response). MCP clients impose their OWN `tools/call` ceiling independently of this budget (the MCP TypeScript SDK defaults to 60 seconds; several clients cap at 60s-2min, not always co…

ParameterTypeDescription
level *stringGranularity of test execution
target *stringTest target: package name (e.g., 'MyApp.Tests'), class name (e.g., 'MyApp.Tests.UtilsTest'), or class:method (e.g., 'MyApp.Tests.UtilsTest:TestSomething')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
timeoutnumberMaximum time to wait for results, in SECONDS, before returning a 'running' result instead of blocking further (default: 120, or IRIS_TEST_TIMEOUT if set; hard-capped at 3600s — a larger value is sil…

iris_doc_load Bulk Load Documents

Upload multiple ObjectScript files from a local directory into IRIS. Accepts a glob pattern to match files. File paths are mapped to IRIS document names (path separators become dots). Optionally compiles all uploaded documents afterward. This is the preferred way to deploy ObjectScript classes to IRIS — always create or edit .cls files on disk first, then use this tool to upload and compile. This ensures all code is source-controlled and reviewable. Uploads whose path-derived document name disagrees with the file's own Class/ROUTINE declaration are refused with both names named — this guar…

ParameterTypeDescription
path *stringGlob pattern for files to upload (e.g., 'c:/projects/src/**/*.cls'). The directory prefix before the first glob metacharacter is used as the base for document name mapping — so the wildcard must com…
allowStorageRegenerationbooleanBoolean (true/false), default false. When false, a class file whose content drops one of the Storage definitions the class has now is refused (a failures entry with code STORAGE_DROPPED; nothing is st…
baseDirstringOptional. Directory used verbatim as the base for document name mapping, INSTEAD of inferring the base from the glob pattern's first wildcard segment (e.g. baseDir='c:/projects/src' with path='c:/proj…
compilebooleanWhen true, compile all successfully uploaded documents after upload (default: false)
flagsstringCompilation flags (e.g., 'ck', 'cku'). Only used when compile is true
ignoreConflictbooleanIf true (default), each file overwrites its server copy without a version check. If false, a file whose document already exists is saved under a version check: it is overwritten unless the document ch…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_doc_export Bulk Export Documents to Local Files

Download every document matching a filter from an IRIS namespace to a local directory. Dots in dotted class names become subdirectories ('EnsLib.HTTP.GenericService.cls' → '<destinationDir>/EnsLib/HTTP/GenericService.cls'). CSP paths keep their forward slashes. Writes a manifest.json recording every file and every skipped item with a reason. Supports prefix/category/type filters, system/generated tri-states, overwrite policies (never/ifDifferent/always), Windows long-path workaround via useShortPaths, bounded concurrency, and cancellation tolerance. Inverse of iris_doc_load. Note: some names…

ParameterTypeDescription
destinationDir *stringAbsolute local directory to write files into (e.g., 'C:/dev/iris-export' or '/home/alice/iris-export'). Created recursively if it does not exist. Must NOT contain '..'. Path traversal attempts are rej…
categorystringDocument category. CLS = classes (.cls). RTN = routines (.mac/.int/.inc/.bas/.mvi/.mvb). CSP = CSP/ZEN pages. OTH = other Studio document types. * = all (default).
continueDownloadOnTimeoutbooleanWhen true (default), the download loop ignores the MCP request's AbortSignal — already-written files stay on disk and the manifest is written at the end even if the client cancels. When false, cance…
generatedstringGenerated-documents tri-state: 'false' (default) returns only source documents; 'true' returns only generated; 'both' returns everything.
ignoreErrorsbooleanWhen true (default), per-document failures are logged to skippedItems and the batch continues. When false, the first error aborts the run with isError: true, partial: true.
includeManifestbooleanWhen true (default), write a manifest.json into destinationDir listing every file exported and every skipped item with its reason.
modifiedSincestringNot supported: IRIS cannot filter documents by modification time, so a call that sets it is refused and changes nothing; compare the ts of the documents iris_doc_list returns instead.
namespacestringTarget namespace (default: configured)
overwritestringOverwrite policy for files that already exist at the target path: 'never' (skip with reason 'exists'), 'ifDifferent' (default; byte-compare and skip unchanged files), 'always' (rewrite unconditionally…
prefixstringNarrow results to documents whose dotted name starts with this value (e.g., 'EnsLib', 'MyApp.Services'). Matches 'prefix.*' and 'prefix' itself. Applied client-side — Atelier's filter param is SQL L…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
systemstringSystem-package tri-state: 'false' (default) excludes '%*'; 'true' includes both user and system; 'only' returns only '%*'.
typestringDocument type filter within the category: the file extension without the dot. RTN takes 'mac', 'int', 'inc', 'bas', 'mvi' or 'mvb', or a comma list such as 'mac,inc'. CLS takes no type filter (leave i…
useShortPathsbooleanWhen true (Windows only; ignored on non-Windows), each package segment is truncated to its first 8 characters to stay under MAX_PATH (260 chars). The manifest records the original-to-short mapping for…

iris_package_list List Packages

List ObjectScript packages in a namespace, rolled up to a chosen dotted depth. Use iris_package_list when you want a structural overview (what packages exist, how many documents each contains); use iris_doc_list when you want individual document names. Supports prefix narrowing, system-package tri-state, and category/type filters — the same filtering surface as iris_doc_list, aggregated client-side into one row per package.

ParameterTypeDescription
categorystringDocument category filter. CLS = ObjectScript classes (.cls). RTN = routines (.mac / .int / .inc / .bas / .mvi / .mvb). CSP = CSP/ZEN pages and other web-facing files under /csp/. OTH = other Studio do…
depthintegerHow many dotted segments to roll up at (default: 1). depth=1 returns top-level packages (e.g., 'EnsLib', 'Ens'); depth=3 returns e.g. 'EnsLib.HTTP.Service' as a single package row. When combined with…
generatedbooleanInclude generated documents (default: false)
modifiedSincestringNot supported: IRIS cannot filter documents by modification time, so a call that sets it is refused and changes nothing; compare the ts of the documents iris_doc_list returns instead.
namespacestringTarget namespace (default: configured)
prefixstringNarrow results to packages starting with this dotted prefix (e.g., 'EnsLib'). Matches documents whose name starts with '<prefix>.' (and the prefix itself if a document is named exactly that). Applied…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
systemstringSystem-package tri-state: 'false' (default) excludes '%*' packages; 'true' includes both system and user packages; 'only' returns only '%*' system packages.
typestringDocument type filter within the category: the file extension without the dot. RTN takes 'mac', 'int', 'inc', 'bas', 'mvi' or 'mvb', or a comma list such as 'mac,inc'. CLS takes no type filter (leave i…

iris_routine_intermediate Routine Intermediate

Given a class name, fetch the compiled-intermediate routine — the macro-expanded form IRIS actually executes at runtime. Auto-resolves the class name to the `.1.int` / `.int` candidate IRIS emits during compilation; use `iris_doc_get` when you need a specific doc by exact name with extension. Use `iris_macro_info` when you need individual macro definitions and source locations rather than the expanded routine body.

ParameterTypeDescription
name *stringClass name, with or without the `.cls` suffix (e.g., 'Ens.Director', 'Ens.Director.cls', 'MyApp.Service')
formatstringAtelier document format for returned content (default: server default)
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_loc_count Count Lines of Code

Count lines of code in the namespace's ObjectScript documents (CLS, MAC, INT, INC), bucketing every line as blank, source code, source comment, test code, or test comment — with comment-density and test-footprint percentages plus the top-N largest documents. Test code is detected via transitive %UnitTest.TestCase inheritance and Test*/lifecycle method scoping; embedded-python method bodies honor '#' comments. 'spec' is REQUIRED: a comma-delimited document spec with */? wildcards (e.g. 'MyPkg.*.cls,*.mac'). Scanning the WHOLE namespace requires an explicit '*' and risks the ~60s REST gateway…

ParameterTypeDescription
spec *stringDocument spec to scan (REQUIRED; comma-delimited, */? wildcards; e.g. 'MyPkg.*.cls,*.mac'). Whole-namespace scans require an explicit '*' and accept the gateway-timeout risk.
formatstringText rendering: 'summary' (default) = the reference ASCII metrics table; 'csv' = metric,value rows. Client-side only — structuredContent always carries the full result object.
includeGeneratedbooleanInclude compiler-generated documents such as the .int code generated from a class (default: false — generated code double-counts its source)
namespacestringTarget namespace. Defaults to the server's configured namespace; pass an explicit value to scan a different namespace per call without changing the connection default.
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
topNintegerHow many of the largest documents to list in topDocuments (default: 20, max: 100)

iris_env_diff Diff Two IRIS Environments

Compare two configured IRIS server profiles (source vs target, e.g. 'stage' vs 'prod') and report a structured drift report -- what's different between them -- in one call. Covers FIVE domains; only the requested domains are fetched. DEFAULT (when 'domains' is omitted): the FOUR no-spec config domains -- 'mappings', 'defaultSettings', 'webapps', 'config'. 'documents' is OPT-IN ONLY -- list it explicitly in 'domains' (and pass 'spec' too) -- because it REQUIRES a 'spec' and a bare call must not fail just for omitting one. 'documents': ObjectScript source compared by SHA-256 content hash (cross-…

ParameterTypeDescription
source *stringSource profile name (from IRIS_PROFILES, or 'default').
target *stringTarget profile name (from IRIS_PROFILES, or 'default').
allowWidebooleanPermit a wide/whole-namespace 'documents' spec (a bare '*'). Default false -- a large namespace may hit the ~60s Web Gateway timeout.
domainsarrayDomains to compare. Default when omitted: the FOUR no-spec config domains -- mappings, defaultSettings, webapps, config. 'documents' is OPT-IN ONLY -- include it explicitly in this list AND pass 'spec…
ignoreTimestampsbooleanDefault true: compare 'documents' by content hash only (a timestamp-only difference does not count as drift). Set false to also flag timestamp-only differences.
namespacestringNamespace applied to BOTH sides' 'documents'/'mappings'/'defaultSettings' lookups, overriding each profile's own default. Omit (or pass blank) to use each profile's OWN configured default namespace in…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
specstringDocument spec for the 'documents' domain (REQUIRED when 'documents' is compared; comma-delimited, */? wildcards, e.g. 'MyPkg.*.cls,*.mac'). A bare '*' is refused unless allowWide:true.

iris_env_promote Promote Environment Changes (Plan / Execute)

Turn a prior iris_env_diff result into an ordered, reviewable promotion PLAN (source -> target), or EXECUTE an allowlisted subset of that plan against 'target'. Actions: - **plan** (read, enabled by default): a PURE TRANSFORM of a prior iris_env_diff 'structuredContent' result -- pass it as 'diff'. No IRIS connection is made; the result is deterministic and idempotent given the same diff. Steps are grouped by domain in DEPENDENCY ORDER: mappings -> documents (put+compile, batched) -> defaultSettings -> webapps -> config; within a domain, steps are ordered by subject. Each step is {index, doma…

ParameterTypeDescription
action *stringAction to perform: 'plan' (read) or 'execute' (write, default-disabled; behind 4 gates -- see description).
source *stringSource profile name -- should match the 'source' used to produce 'diff' (from a prior iris_env_diff call). 'execute' re-fetches the CURRENT value from this profile live, for every allowlisted step.
target *stringTarget profile name -- should match the 'target' used to produce 'diff'. 'execute' writes ONLY to this profile, and Gate 4 evaluates governance against THIS profile's policy.
allowStorageRegenerationbooleanFor action 'execute' only. Boolean (true/false), default false. When false, 'execute' is refused before any write (STORAGE_DROPPED) if the source copy of a promoted class lacks one of the Storage defi…
confirmbooleanRequired (must be true) for action 'execute' (Gate 1) -- the inner intent gate, on top of the outer governance default-disable that already gates the whole 'execute' action.
diffobjectA prior iris_env_diff 'structuredContent' result. REQUIRED for BOTH actions: for 'plan' it is transformed into steps; for 'execute' it is RE-HASHED and compared against 'plan.planHash' (Gate 3, stale-…
namespacestringNamespace override applied to BOTH 'source' and 'target' resolution for 'execute' writes (mirrors iris_env_diff's 'namespace' convention). Omit to use each profile's own configured default namespace i…
planobjectRequired for action 'execute': a prior 'plan' action's structuredContent result. Its 'planHash' is verified (Gate 3) against a fresh hash of 'diff' before any step runs, and its 'steps' array is the a…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
stepsarrayRequired for action 'execute' (Gate 2): a non-empty allowlist of 1-based 'plan.steps' indices to run. Every index must exist in 'plan.steps' or execution is refused naming the out-of-range index/indic…

iris_test_status Test Run Status

Companion to iris_execute_tests: re-attach to a test run by its jobId (Atelier work-queue id) and/or runIndex (%UnitTest_Result InstanceIndex), or cancel one. Use this after iris_execute_tests returns status:"running" (or after your own client abandoned a long call) instead of re-submitting the same target — re-submitting starts a SECOND concurrent run against shared fixtures. Pass the run's own namespace (the one iris_execute_tests reported). action:"poll" (read, enabled by default): pass jobId to re-attach through the Atelier work queue — returns status:"running" (with a partial, DELTA-o…

ParameterTypeDescription
action *string'poll' (read) re-attaches/reads a run's status; 'cancel' (write, default-disabled) stops one; 'export' (write, default-disabled) writes a coverage run's Cobertura XML file.
coverageRunIdstringA coverage run's handle, all digits (from iris_test_coverage's 'coverageRunId'). Use it alone: it cannot be combined with jobId or runIndex. The run's own namespace is used; a namespace passed here mu…
jobIdstringAtelier work-queue job id, all digits (from iris_execute_tests' 'jobId', or a prior poll's own 'jobId'). Required for 'cancel'; for 'poll', at least one of jobId/runIndex is required.
namespacestringThe namespace the run was submitted in — pass iris_execute_tests' own 'namespace' (default: configured). It MUST match: the Atelier work queue is instance-wide, but %UnitTest_Result is per-namespace…
outputPathstringOnly for 'export', where it is required: the absolute local path of the Cobertura XML file, ending in .xml, with no '..' segment. Missing parent directories are created; an existing file is overwritte…
runIndexinteger%UnitTest_Result.TestInstance.InstanceIndex (from iris_execute_tests' 'runIndex', or a prior poll's own 'runIndex'). For 'poll', usable alone (reads %UnitTest_Result directly) or as a fallback when jo…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
sourceRootstringOnly for 'export': the document's one <source> element (a directory CI tools resolve each class filename against, for example 'src'). Without it the document has no <sources> element.

iris_doc_edit Edit Document Lines

Change a few lines of an existing class, routine or include file without resending the whole document. Read the exact lines first with a ranged `iris_doc_get` (startLine/endLine): both tools use the same 1-based line numbers. Each edit is an `insert` (afterLine, text, expected; afterLine 0 inserts before line 1), a `delete` (startLine, endLine, expected) or a `replace` (startLine, endLine, text, expected), addressed in the numbering of that read. `expected` is the current text of the lines the edit addresses (for an insert, of line afterLine, or line 1 when afterLine is 0); an edit whose expec…

ParameterTypeDescription
action *stringapply: make the edits, refusing any that would drop a Storage definition of a class (enabled by default). regenerateStorage: the same edits without the Storage guard, so IRIS generates new storage at…
edits *arrayThe edits, in any order. All are checked and applied together, or none is.
name *stringFull document name with extension (e.g., 'MyApp.Service.cls', 'MyApp.Utils.mac')
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_sql_query Query SQL

Run a SQL query (SELECT) against an IRIS namespace and return column names and row data. Use it for queries, including under the read-only governance preset, where iris_sql_execute is blocked. Supports parameterized queries to prevent SQL injection. Use maxRows to limit result set size (default: 1000). Returns {columns, rows, rowCount}; with countOnly it returns totalCount, the number of rows the query returns, and transfers no rows. Governance: this tool is enabled by default; it is disabled when an operator explicitly disables iris_sql_execute, unless iris_sql_query is set explicitly. This t…

ParameterTypeDescription
query *stringSQL query to run (a SELECT, e.g., 'SELECT Name FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH ?')
countOnlybooleanReturn only totalCount, the number of rows the query returns, and transfer no rows (default: false)
maxRowsintegerMaximum number of rows to return as an integer (default: 1000)
namespacestringTarget namespace (default: configured)
parametersarrayParameterized query values as a JSON array matching ? placeholders in the query (e.g., ["MyApp."] for a single parameter)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.

iris_test_coverage Test Coverage

Run ObjectScript unit tests and measure which lines of the listed classes they execute. Use it to see how well a test target covers specific classes, and which lines of their source it misses. It returns the test summary (total, passed, failed, skipped, details) and the coverage twice. Per class and per method, over the class's own source lines (coverage.classes[].source): executable lines, covered lines, percent and the uncovered line ranges, plus the count of lines the compiler generated in the class, which are never reported as source lines; a method with a reason (generator, not-objectscri…

ParameterTypeDescription
classes *arrayThe classes whose INT routines are measured: 1 to 50 class names, with no wildcards, written exactly as compiled (package-qualified, same letter case). A class that is not compiled in the namespace un…
level *stringGranularity of test execution
target *stringTest target: package name (e.g., 'MyApp.Tests'), class name (e.g., 'MyApp.Tests.UtilsTest'), or class:method (e.g., 'MyApp.Tests.UtilsTest:TestSomething')
minCoveragenumberA coverage target, a number from 0 to 100. The run is stored with it, and a completed result carries coverage.verdict: each class is pass when its unrounded class-line ratio is at least the target, fa…
namespacestringTarget namespace (default: configured)
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.
timeoutnumberMaximum time to wait for the run, in SECONDS, before returning a 'running' result instead of blocking further (default: 120, or IRIS_TEST_TIMEOUT if set; hard-capped at 3600s - a larger value is clamp…

iris_server_profiles Server Profiles & Governance

CALL THIS FIRST. Discover the IRIS server profiles this MCP server can target and the effective governance policy (which tool actions are enabled/disabled) — so you can choose the right `server` profile and avoid calling disabled actions, without reading the client's config files. Returns: (1) a profile roster with non-secret connection metadata (name, host, port, username, namespace, https, baseUrl, timeout, source ["env" or "server-manager"], sourceFile [the settings file, for server-manager-sourced profiles only], dataPolicy ["block", "redact" or "allow": what the profile shows of message…

ParameterTypeDescription
allProfilesbooleanWhen true, return the effective governance policy for EVERY configured profile (as `governance.policies`) instead of a single profile's policy. A supplied `profile` is still validated (an unknown name…
profilestringWhich profile's governance policy to report (a name from the roster). Omit to use the default profile. Distinct from the framework `server` parameter, which selects the connection profile (irrelevant…
serverstringNamed server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server.