IRIS Development Tools MCP Server
v1.3.0IRIS 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…
| Parameter | Type | Description |
|---|---|---|
name * | string | Full document name with extension (e.g., 'MyApp.Service.cls', '%UnitTest.TestCase.cls') |
endLine | integer | Last 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. |
format | string | Output format (default: udl) |
metadataOnly | boolean | Boolean (true/false). When true, only check existence and return metadata (the version timestamp, as `etag`) without downloading content |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
startLine | integer | First 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…
| Parameter | Type | Description |
|---|---|---|
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 * | string | Document name (e.g., 'MyApp.Service.cls') |
allowStorageRegeneration | boolean | Boolean (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… |
ignoreConflict | boolean | Boolean (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… |
namespace | string | Target namespace (default: configured) |
server | string | Named 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.
| Parameter | Type | Description |
|---|---|---|
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"]). | |
namespace | string | Target namespace (default: configured) |
server | string | Named 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`.
| Parameter | Type | Description |
|---|---|---|
category | string | Document 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… |
cursor | string | Pagination cursor from a previous response's nextCursor field |
filter | string | Case-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… |
generated | boolean | Include generated documents (default: false) |
modifiedSince | string | Not 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. |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
type | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
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. | |
async | boolean | When 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… |
flags | string | Compilation flags (e.g., 'ck', 'cku'). Default: server default |
namespace | string | Target namespace (default: configured) |
server | string | Named 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Document name (e.g., 'MyApp.Service.cls') |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
iris_doc_search Search Documents
Search across ObjectScript documents for text or regex patterns. Supports regex, wildcard, word-match, and case-sensitive options. Returns matching documents and locations, or an empty array when no results are found.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text or regex pattern |
case | boolean | Case-sensitive search (default: false) |
files | string | File pattern filter (e.g., '*.cls,*.mac'). Default: '*.cls,*.mac,*.int,*.inc' |
gen | boolean | Include generated items (default: false) |
max | number | Maximum number of results to return (integer) |
namespace | string | Target namespace (default: configured) |
regex | boolean | Treat query as a regular expression (default: false) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
sys | boolean | Include system items (default: false) |
wild | boolean | Enable wildcard matching (default: false) |
word | boolean | Match whole words only (default: false) |
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`.
| Parameter | Type | Description |
|---|---|---|
name * | string | Macro name without the $$$ prefix (e.g., 'OK' for $$$OK, 'ISERR' for $$$ISERR) |
document | string | Document context for macro resolution (e.g., 'MyApp.Service.cls'). Required for meaningful results — without it, resolution returns empty |
includes | array | List of include files for macro resolution (e.g., ['%occStatus']) |
namespace | string | Target namespace (default: configured) |
server | string | Named 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Document name (e.g., 'MyApp.Service.cls') |
targetFormat * | string | Target format to convert the document to |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: "export", "import", or "list" |
allowStorageRegeneration | boolean | For 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… |
compile | boolean | For 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… |
content | string | XML content for import or list actions (required for action "import" and "list") |
docs | array | Document names to export (required for action "export", e.g., ['MyApp.Service.cls']) |
flags | string | For 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.… |
namespace | string | Target namespace (default: configured) |
server | string | Named 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:…
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute (e.g., 'SELECT Name FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH ?') |
countOnly | boolean | Return only totalCount, the number of rows a SELECT returns, and transfer no rows (default: false) |
maxRows | integer | Maximum number of rows to return as an integer (default: 1000) |
maxRowsAffected | integer | Roll 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… |
namespace | string | Target namespace (default: configured) |
parameters | array | Parameterized query values as a JSON array matching ? placeholders in the query (e.g., ["MyApp."] for a single parameter) |
readOnly | boolean | Run only queries (SELECT) and refuse any other statement before it runs (default: false; IRIS_SQL_READ_ONLY=true forces it on) |
server | string | Named 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 '…
| Parameter | Type | Description |
|---|---|---|
action * | string | Analysis action to perform |
filter | string | Optional case-insensitive substring filter for 'stats' (matches the Statement text) and 'running' (matches UserName) |
maxRows | integer | Maximum number of rows to return for tabular actions (default: 1000) |
namespace | string | Target namespace (default: configured) |
query | string | SQL query to analyze (REQUIRED for 'explain' and 'indexUsage'; for 'advise', mutually exclusive with 'workload') |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
topN | integer | '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. |
workload | boolean | '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.
| Parameter | Type | Description |
|---|---|---|
server | string | Named 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.
| Parameter | Type | Description |
|---|---|---|
namespace | string | Target namespace (default: configured) |
server | string | Named 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.
| Parameter | Type | Description |
|---|---|---|
global * | string | Global name without the caret (e.g., 'MyGlobal', not '^MyGlobal') |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
subscripts | string | Subscripts 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.
| Parameter | Type | Description |
|---|---|---|
global * | string | Global name without the caret (e.g., 'MyGlobal') |
value * | string | Value to set at the global node |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
subscripts | string | Subscripts 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.
| Parameter | Type | Description |
|---|---|---|
global * | string | Global name without the caret (e.g., 'MyGlobal') |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
subscripts | string | Subscripts 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.
| Parameter | Type | Description |
|---|---|---|
caseSensitive | boolean | When true, the filter match is case-sensitive (legacy behavior). Default is false (case-insensitive, matching iris_doc_list semantics). |
cursor | string | Pagination cursor from a previous response's nextCursor field |
filter | string | Case-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'… |
namespace | string | Target namespace (default: configured) |
server | string | Named 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 —…
| Parameter | Type | Description |
|---|---|---|
command * | string | ObjectScript command to execute (e.g., 'Write "Hello"') |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
className * | string | Fully qualified class name (e.g., 'MyPackage.MyClass') |
methodName * | string | Name of the class method to invoke |
args | array | Positional 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… |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
level * | string | Granularity of test execution |
target * | string | Test target: package name (e.g., 'MyApp.Tests'), class name (e.g., 'MyApp.Tests.UtilsTest'), or class:method (e.g., 'MyApp.Tests.UtilsTest:TestSomething') |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
timeout | number | Maximum 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…
| Parameter | Type | Description |
|---|---|---|
path * | string | Glob 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… |
allowStorageRegeneration | boolean | Boolean (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… |
baseDir | string | Optional. 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… |
compile | boolean | When true, compile all successfully uploaded documents after upload (default: false) |
flags | string | Compilation flags (e.g., 'ck', 'cku'). Only used when compile is true |
ignoreConflict | boolean | If 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… |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
destinationDir * | string | Absolute 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… |
category | string | Document category. CLS = classes (.cls). RTN = routines (.mac/.int/.inc/.bas/.mvi/.mvb). CSP = CSP/ZEN pages. OTH = other Studio document types. * = all (default). |
continueDownloadOnTimeout | boolean | When 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… |
generated | string | Generated-documents tri-state: 'false' (default) returns only source documents; 'true' returns only generated; 'both' returns everything. |
ignoreErrors | boolean | When 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. |
includeManifest | boolean | When true (default), write a manifest.json into destinationDir listing every file exported and every skipped item with its reason. |
modifiedSince | string | Not 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. |
namespace | string | Target namespace (default: configured) |
overwrite | string | Overwrite 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… |
prefix | string | Narrow 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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
system | string | System-package tri-state: 'false' (default) excludes '%*'; 'true' includes both user and system; 'only' returns only '%*'. |
type | string | Document 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… |
useShortPaths | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
category | string | Document 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… |
depth | integer | How 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… |
generated | boolean | Include generated documents (default: false) |
modifiedSince | string | Not 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. |
namespace | string | Target namespace (default: configured) |
prefix | string | Narrow 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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
system | string | System-package tri-state: 'false' (default) excludes '%*' packages; 'true' includes both system and user packages; 'only' returns only '%*' system packages. |
type | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Class name, with or without the `.cls` suffix (e.g., 'Ens.Director', 'Ens.Director.cls', 'MyApp.Service') |
format | string | Atelier document format for returned content (default: server default) |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
spec * | string | Document spec to scan (REQUIRED; comma-delimited, */? wildcards; e.g. 'MyPkg.*.cls,*.mac'). Whole-namespace scans require an explicit '*' and accept the gateway-timeout risk. |
format | string | Text rendering: 'summary' (default) = the reference ASCII metrics table; 'csv' = metric,value rows. Client-side only — structuredContent always carries the full result object. |
includeGenerated | boolean | Include compiler-generated documents such as the .int code generated from a class (default: false — generated code double-counts its source) |
namespace | string | Target namespace. Defaults to the server's configured namespace; pass an explicit value to scan a different namespace per call without changing the connection default. |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
topN | integer | How 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-…
| Parameter | Type | Description |
|---|---|---|
source * | string | Source profile name (from IRIS_PROFILES, or 'default'). |
target * | string | Target profile name (from IRIS_PROFILES, or 'default'). |
allowWide | boolean | Permit a wide/whole-namespace 'documents' spec (a bare '*'). Default false -- a large namespace may hit the ~60s Web Gateway timeout. |
domains | array | Domains 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… |
ignoreTimestamps | boolean | Default true: compare 'documents' by content hash only (a timestamp-only difference does not count as drift). Set false to also flag timestamp-only differences. |
namespace | string | Namespace 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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
spec | string | Document 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…
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform: 'plan' (read) or 'execute' (write, default-disabled; behind 4 gates -- see description). |
source * | string | Source 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 * | string | Target 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. |
allowStorageRegeneration | boolean | For 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… |
confirm | boolean | Required (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. |
diff | object | A 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-… |
namespace | string | Namespace 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… |
plan | object | Required 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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
steps | array | Required 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…
| Parameter | Type | Description |
|---|---|---|
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. |
coverageRunId | string | A 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… |
jobId | string | Atelier 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. |
namespace | string | The 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… |
outputPath | string | Only 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… |
runIndex | integer | %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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
sourceRoot | string | Only 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…
| Parameter | Type | Description |
|---|---|---|
action * | string | apply: 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 * | array | The edits, in any order. All are checked and applied together, or none is. |
name * | string | Full document name with extension (e.g., 'MyApp.Service.cls', 'MyApp.Utils.mac') |
namespace | string | Target namespace (default: configured) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to run (a SELECT, e.g., 'SELECT Name FROM %Dictionary.ClassDefinition WHERE Name %STARTSWITH ?') |
countOnly | boolean | Return only totalCount, the number of rows the query returns, and transfer no rows (default: false) |
maxRows | integer | Maximum number of rows to return as an integer (default: 1000) |
namespace | string | Target namespace (default: configured) |
parameters | array | Parameterized query values as a JSON array matching ? placeholders in the query (e.g., ["MyApp."] for a single parameter) |
server | string | Named 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…
| Parameter | Type | Description |
|---|---|---|
classes * | array | The 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 * | string | Granularity of test execution |
target * | string | Test target: package name (e.g., 'MyApp.Tests'), class name (e.g., 'MyApp.Tests.UtilsTest'), or class:method (e.g., 'MyApp.Tests.UtilsTest:TestSomething') |
minCoverage | number | A 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… |
namespace | string | Target namespace (default: configured) |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |
timeout | number | Maximum 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…
| Parameter | Type | Description |
|---|---|---|
allProfiles | boolean | When 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… |
profile | string | Which 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… |
server | string | Named server profile to target for this call (from `IRIS_PROFILES`). Omit to use the default server. |