Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

IRIS Data & Analytics MCP Server

@jbrandtmseMCP server · External

IRIS Data & Analytics MCP Server

Databasesv1.3.0MITTypeScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npm@iris-mcp/datav1.3.0

Run

npx -y @iris-mcp/data

MCP client config

{
  "mcpServers": {
    "iris-data-analytics-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@iris-mcp/data"
      ]
    }
  }
}
README49 min read

IRIS MCP Server Suite

Install Node.js 22.17 or later and run one command. The five servers and the iris-mcp-clients configuration CLI are published on npm as @iris-mcp/* (version 1.x, with provenance). Claude Code has a plugin and VS Code has an extension, both from 1.1.0; every other client is configured by one npx command. See Quick Start, CHANGELOG.md for what each release changed, and docs/epic-summary.md for what each epic built.

Give AI assistants structured, safe access to InterSystems IRIS.

The IRIS MCP Server Suite is a collection of five specialized Model Context Protocol (MCP) servers that let AI coding assistants — Claude, Copilot, Cursor, and others — work directly with InterSystems IRIS. Each server covers a distinct operational domain so you can install only what you need.


Servers

PackageDomainToolsDescription
@iris-mcp/devDevelopment32ObjectScript document CRUD, guarded surgical line edits of existing documents (iris_doc_edit), compilation, SQL (with read-only mode, a rows-affected cap and a query-only tool, iris_sql_query), globals, code execution, unit tests, package browsing, bulk export, macro-expanded routine lookup, SQL query analysis and performance advisories, lines-of-code metrics, cross-profile environment diff & promotion (iris_env_diff, iris_env_promote), long-running test-run re-attach/read/cancel (iris_test_status), line coverage of a test run (iris_test_coverage, disabled by default)
@iris-mcp/adminAdministration26Namespace, database, user, role, resource (incl. SQL privileges), web-app, SSL/TLS, OAuth2, service, LDAP, X.509, and audit management
@iris-mcp/interopInteroperability24Ensemble/Health Connect production lifecycle, production item management, system default settings, credentials, lookups, rules, transforms, message-trace Mermaid diagrams, message header and message body content search (iris_message_search — read-only, a required window of at most 7 days; the body action filters on body properties with validated, parameterised conditions and is under the PHI data policy: enabled by default, refused under block; the searchTable action finds messages by an indexed Search Table value, such as an HL7 medical record number, under the same policy), message body reading (iris_message_body — a read of 1 to 20 message bodies by header ID, rendered by kind and under the PHI data policy: enabled by default; an HL7 v2 body is redacted by default and every other body is withheld unless the policy is allow), message resend/replay (duplication hazard — preview before executing)
@iris-mcp/opsOperations & Monitoring21Composite health check (iris_health_check — one call, verdict + findings), system metrics, jobs, locks, journals, mirrors, audit, database integrity, licensing, ECP, tasks, alert management, process control, database maintenance operations, backups
@iris-mcp/dataData & Analytics7DocDB document database, DeepSee analytics (MDX/cubes), REST API management

110 tools across 5 servers — install one or all. Each server additionally provides one framework tool, iris_server_profiles (see Discovering profiles and policy), so the advertised count per server is one greater than the package totals above.

Meta-package

@iris-mcp/all installs the five servers as dependencies of one package, but it launches nothing: a global install (npm install -g @iris-mcp/all) links no command, and an npm project install puts the seven commands of its dependencies in node_modules/.bin. MCP clients start servers with npx -y @iris-mcp/<server>@1, one entry per server. See the meta-package README for details.


Which Server Do I Need?

Your RoleRecommended Server(s)
ObjectScript developer@iris-mcp/dev — compile, edit, execute code, run SQL, manage globals
System administrator@iris-mcp/admin — manage namespaces, databases, users, roles, web apps, SSL, OAuth
Integration engineer@iris-mcp/interop — control productions, configure credentials, manage business rules and transforms, search and read messages under the PHI data policy (iris_message_search and iris_message_body are reads, enabled by default)
Operations / SRE@iris-mcp/ops — check overall instance health in one call (iris_health_check), monitor metrics, inspect jobs and locks, review journals, audit events, manage tasks
Data / BI analyst@iris-mcp/data — query DocDB collections, run MDX against DeepSee cubes, manage REST APIs
Full-stack / getting started@iris-mcp/dev + @iris-mcp/admin, or all five servers

Prerequisites

  • Node.js 22.17 or later
  • InterSystems IRIS 2023.1 or later (including IRIS for Health, HealthShare), best effort below the oldest CI-tested image. CI tests IRIS Community 2026.1 to 2026.2 and IRIS for Health 2026.2.
  • IRIS web port accessible (default 52773)

Quick Start

Install Node.js 22.17 or later, then follow the one path for your client. Every path starts the same five servers (@iris-mcp/dev, admin, data, interop and ops) through npx -y @iris-mcp/<name>@1, pinned to major version 1.

The IRIS side installs itself. The first time a server connects to a namespace, it deploys and compiles the ExecuteMCPv2 classes there and registers the /api/executemcp/v2 web application and the %ALL package mapping, and it upgrades an older deployment the same way when you move to a newer release, unless the automatic install is off (IRIS_AUTO_INSTALL=false, a profile's autoInstall: false, or the read-only preset, which turns it off). Most users need nothing beyond the steps below. IPM is only the fallback for an instance where that automatic install cannot run (see Optional: Install the IRIS-Side Classes with IPM).

1. Install

Your clientThe one install path
Claude CodeThe plugin, from 1.1.0: /plugin marketplace add jbrandtmse/iris-execute-mcp-v2, then /plugin install iris-mcp@iris-mcp. See Claude Code: the plugin.
VS Code (GitHub Copilot)The IRIS MCP Launcher extension, from 1.1.0: iris-mcp-launcher-<version>.vsix from the repository's GitHub Releases; it is not on the Visual Studio Marketplace or Open VSX yet. See VS Code: the extension.
Every other clientnpx -y -p @iris-mcp/client-config@1 iris-mcp-clients apply --client <id> --servers iris-dev-mcp. See Every other client.

On 1.0.x the iris-mcp-clients command is the route for every client, Claude Code and VS Code included.

Claude Code: the plugin (from 1.1.0)

/plugin marketplace add jbrandtmse/iris-execute-mcp-v2
/plugin install iris-mcp@iris-mcp

Claude Code asks for the IRIS host, web port, namespace and HTTPS flag (defaults localhost, 52773, USER, off), the user name and the password (kept in the system keychain), and starts the five servers (dev, admin, data, interop, ops) through npx -y @iris-mcp/<name>@1, with the 18 skills. A plugin cannot carry the always-on rule: run npx -y -p @iris-mcp/client-config@1 iris-mcp-clients skills install --client claude-code in your project for it (see The skills pack).

Switching from the installer or claude mcp add: remove the old entries first. If Claude Code already has iris-dev-mcp, iris-admin-mcp, iris-data-mcp, iris-interop-mcp or iris-ops-mcp entries, the plugin serves the same tools again and every tool appears twice. npx -y -p @iris-mcp/client-config@1 iris-mcp-clients doctor lists each such entry as a claude-code-plugin-duplicates finding, with the command that removes it:

bash
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients remove --client claude-code --server iris-dev-mcp --scope user

Use --scope project for an entry in the project's .mcp.json. doctor reads Claude Code's user and project scopes only; an entry in the local scope (the projects map of ~/.claude.json) is removed with claude mcp remove iris-dev-mcp --scope local.

VS Code extension: IRIS MCP Launcher (from 1.1.0)

If you're inside VS Code with GitHub Copilot (or another client that consumes VS Code's built-in MCP server registry), the extension is the install path, and it sidesteps the Server Manager credential chain described in step 2 entirely: extensions/iris-mcp-launcher/, a standalone VS Code extension (outside this repo's npm workspace) that registers the @iris-mcp/* servers directly with VS Code and resolves credentials from Server Manager's vscode.authentication session inside the extension host — the one place a Server-Manager-saved SecretStorage password actually is reachable. No OS keychain setup, no IRIS_CREDENTIAL_HELPER, no IRIS_PROFILES password entry required.

This only helps Copilot-family agents for launching servers. Claude Code manages its own MCP configuration (claude mcp add / .mcp.json) and does not consume VS Code's MCP registry — Claude Code users should use the plugin or the iris-mcp-clients command (see 1. Install) and the credential options in step 2 instead. See the extension's own README for the verified client-coverage boundary and citations.

The extension carries three surfaces, and two of them help every client, not just Copilot:

Command (category "IRIS MCP Launcher")What it does
Select Servers…Choose which Server Manager servers become MCP servers; a status bar item shows how many are registered
Manage MCP Clients…Wire the suite into any of the 15 supported MCP clients — detect, per-server enable/disable, diff preview, backup/restore, doctor. The GUI front-end for iris-mcp-clients; useful to Claude Code / Cursor / Cline users too
Open Governance EditorVisually edit the shared governance policy file that every client's servers read

Installing it (from 1.1.0). The extension is not on the Visual Studio Marketplace or Open VSX yet; both stores come later, once the publisher is set up. Until then, download iris-mcp-launcher-<version>.vsix from the release's assets on the repository's GitHub Releases page, and install it with the command palette's Extensions: Install from VSIX… or with code --install-extension iris-mcp-launcher-<version>.vsix (VSCodium and other VS Code-compatible editors install a vsix the same way). Updates are manual until the stores are set up: install the next release's vsix the same way. The extension declares the InterSystems Server Manager extension as a dependency; install that from your editor's extension store if the editor does not add it. The extension starts the servers through npx -y @iris-mcp/<name>@1, so it needs Node.js 22.17 or later on the machine. To build the extension from a checkout instead, see Contributing.

Every other client: the iris-mcp-clients CLI

bash
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients detect                                        # which clients are installed
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients apply --client cursor --servers iris-dev-mcp  # preview, confirm, write

--client takes one of claude-desktop, cursor, cline, windsurf (Devin Desktop), codex, gemini, zed, goose, kimi-code, from 1.1.0 pi and jetbrains-junie, or, for older installs, roo-code (discontinued) and kimi (archived); --servers all writes all five. apply prints the exact edit first and writes only after you confirm. The per-client guides and copy-pasteable snippets are in the MCP client configuration index, and the full command reference is in @iris-mcp/client-config.

2. Set Environment Variables

All servers use the same environment variables:

VariableDefaultDescription
IRIS_HOSTlocalhostIRIS hostname or IP
IRIS_PORT52773IRIS web server port
IRIS_USERNAME(required)IRIS username. There is no default: a server that starts without it fails, naming the variable.
IRIS_PASSWORD(required unless IRIS_CREDENTIAL_NAME is set)IRIS password. With IRIS_CREDENTIAL_NAME set it may be unset or empty, and the password comes from the stored entry that variable names.
IRIS_NAMESPACEUSERDefault IRIS namespace
IRIS_HTTPSfalseUse HTTPS instead of HTTP
IRIS_TIMEOUT60000Optional. Positive number of milliseconds: how long a server waits for each HTTP request to IRIS before it gives up. IRIS_SQL_TIMEOUT replaces it for the SQL tools, and an IRIS_PROFILES entry can set its own timeout. A value that is not a positive number fails startup naming the variable.
IRIS_ACCEPT_LANGUAGEen-US,en;q=0.9Optional. Accept-Language header value sent on every HTTP request, pinning IRIS's request-locale negotiation so %Status error text renders in a predictable language instead of whatever locale an unspecified header resolves to. IRIS chooses the message language per request: its REST dispatcher matches this header against the languages the instance has on every request, so both English (ERROR #) and localized prefixes can appear when the header names a non-English language; existing prefix-stripping is unaffected.
MCP_TRANSPORTstdioOptional. Only stdio is supported (--transport is equivalent); any other value fails startup naming it.
IRIS_PROFILES(unset)Optional. JSON map of named IRIS instances for multi-server use. Omit for single-server — the IRIS_* vars above define the reserved default profile. See Multiple Servers & Governance.
IRIS_GOVERNANCE(unset)Optional. JSON policy that enables/disables individual tool actions per profile. Omit to leave every tool enabled (today's behavior). See Multiple Servers & Governance. It guards the agent, not the IRIS account: see What the safety settings protect.
IRIS_GOVERNANCE_PRESET(unset)Optional. "read-only" or "full" — a one-word safety preset that blocks every write action suite-wide. Omit (or "full") for today's behavior. See Read-only mode. It guards the agent, not the IRIS account: see What the safety settings protect.
IRIS_GOVERNANCE_FILE(unset — inert)Optional. Path to a JSON file of the same shape as IRIS_GOVERNANCE, so one policy is portable across every MCP client. The file's layers sit strictly below the IRIS_GOVERNANCE env layers (an env setting always wins). Unset ⇒ inert: no file is ever read and behavior is byte-for-byte today's. Read once at startup (restart to apply edits); a missing/unreadable/malformed file fails startup naming the var and the path. See Governance file. It guards the agent, not the IRIS account: see What the safety settings protect.
IRIS_AUDIT_LOG(unset — OFF)Optional. Absolute path to a JSONL audit file recording every MCP tool call (who-ish/session, what, outcome, denials). Omit for today's behavior — a mechanical no-op, zero filesystem writes. See Compliance & Auditability. It records MCP tool calls only, not a direct call with the same account: see What the safety settings protect.
IRIS_AUDIT_LOG_MAX_MB50Optional. Rotates the audit file at this size — the current file is renamed to <path>.1 (single generation, overwriting a prior one) and a fresh file is started. Only relevant when IRIS_AUDIT_LOG is set.
IRIS_AUDIT_LOG_PARAMSfalseOptional. When true, audit entries also include each call's (redacted) parameter values; the default logs parameter key names only. Only relevant when IRIS_AUDIT_LOG is set.
IRIS_SQL_MAX_ROWS(unset — no cap)Optional. Positive integer ceiling on the number of rows iris_sql_execute and iris_sql_query return — a post-fetch cap on the response (it bounds the returned row count, not the server-side result set or transfer). Omit for today's behavior (only the per-call maxRows/1000-row default apply).
IRIS_SQL_TIMEOUT(unset — no override)Optional. Positive number of seconds — a per-request timeout override for the HTTP call of iris_sql_execute and iris_sql_query. Omit to use the connection's default IRIS_TIMEOUT.
IRIS_SQL_READ_ONLY(unset — SQL tools are not forced read-only)Optional. true or false (case-insensitive). true makes every iris_sql_execute call read-only: only queries (SELECT) run, any other statement is refused with SQL_READ_ONLY, and a call's readOnly: false cannot weaken it. Global: every profile inherits it; no per-profile key. A malformed value fails startup.
IRIS_SQL_MAX_ROWS_AFFECTED(unset — no ceiling)Optional. Non-negative integer ceiling (0 is valid) on the rows one INSERT, UPDATE or DELETE may change through iris_sql_execute. A statement that changes more is rolled back and refused with SQL_ROWS_AFFECTED_CAP; a call's maxRowsAffected can only tighten it. Under a ceiling only SELECT, INSERT, UPDATE and DELETE run, and an INSERT, UPDATE or DELETE whose text contains the %NOJOURN token is refused before it runs. Global: every profile inherits it; no per-profile key. A malformed value fails startup.
IRIS_TEST_TIMEOUT(unset — 120s default)Optional. Positive number of seconds — the DEFAULT wait budget iris_execute_tests and iris_test_coverage wait before returning a "running" result (with the run's jobId/runIndex handles, or coverageRunId) instead of blocking further. A per-call timeout argument takes precedence over this. Hard-capped at 3600s regardless of source. Omit for today's 120-second default.
IRIS_DATA_POLICY(unset — redact)Optional. block, redact or allow (case-insensitive): the PHI data policy for every profile that no IRIS_PROFILES entry sets. Default redact: the iris_message_resend preview shows an HL7 v2 body only as its class name and withholds every other body with a reason, and iris_message_body shows an HL7 v2 body redacted by a reviewed keep-list and withholds every other body. allow restores today's preview exactly and lets iris_message_body show bodies as stored; block withholds every body and refuses the body and searchTable actions of iris_message_search, and withholds the Event Log text of iris_production_logs and the error text of iris_message_diagram (every one of these is a read, enabled by default). Per profile: the dataPolicy field of an IRIS_PROFILES entry, or the dataPolicy section of the governance file (IRIS_GOVERNANCE does not carry it). A malformed value fails startup naming the channel. block also turns off the raw-read and code-execution tools (see PHI data policy); an explicit governance key re-enables one. Under redact or block, a server with such a tool enabled logs one startup [WARN] naming it. See PHI data policy. It guards the agent, not the IRIS account: see What the safety settings protect.
IRIS_AUTO_INSTALL(unset — on, except under IRIS_GOVERNANCE_PRESET=read-only)Optional. true or false (case-insensitive; empty is unset). Whether a server installs, upgrades and repairs the IRIS side (the ExecuteMCPv2 classes, the web application, the %ALL mapping, ^UnitTestRoot) when it connects. Default on; IRIS_GOVERNANCE_PRESET=read-only forces it off, and false turns it off for any other setup. Off, the server only reads: custom-REST tools of a profile whose IRIS side is missing or older are refused with IRIS_SIDE_NOT_INSTALLED, an unconfigured reading only warns (a call refuses only if the web application then answers 404), and Atelier-only tools keep working. A profile can set its own "autoInstall": true or false in IRIS_PROFILES, which wins over this variable and is never inherited from the default entry; Server Manager profiles take this variable. IRIS_AUTO_INSTALL=true, or a profile's autoInstall: true, together with the read-only preset fails startup naming both settings; a malformed value fails startup naming it. See Installs nothing on IRIS.
IRIS_TOOLS_PRESETfullOptional. "full" (today's behavior) | "core" (8- to 15-tool small-model subset, depending on the server) | "developer" (persona filter, security/enterprise admin hidden). Unknown value fails fast at startup naming the valid values. Omit for today's tools/list, byte-for-byte. See Tool Visibility Presets.
IRIS_TOOLS_DISABLE(unset)Optional. Comma-separated tool names to hide from tools/list. Trailing-* wildcard supported (iris_doc_*); a bare * alone is rejected. Omit to hide nothing beyond the active preset. See Tool Visibility Presets.
IRIS_TOOLS_ENABLE(unset)Optional. Comma-separated tool names to force-show, overriding both the preset and IRIS_TOOLS_DISABLE (punches a hole in a hidden family). Omit for no overrides. See Tool Visibility Presets.
IRIS_SERVER_MANAGERoffOptional. off (default — today's behavior, no settings file is ever read) | auto (import connection definitions from the InterSystems Server Manager VS Code extension) | required (as auto, but fail startup if no definition is found). Unknown value fails fast at startup naming the valid values. See Server Manager connections.
IRIS_SM_SERVERS(unset — import all)Optional. Comma-separated allow-list of intersystems.servers names to import, so you get the two servers you want instead of your whole roster. A listed name that matches nothing warns (it fails only under IRIS_SERVER_MANAGER=required, where nothing would be imported at all). Only relevant when IRIS_SERVER_MANAGER is auto/required.
IRIS_SM_SETTINGS_PATHS(unset — normal discovery)Optional. Escape hatch: a ;-separated (Windows) / :-separated (macOS, Linux) list of settings.json paths that replaces discovery entirely. Only relevant when IRIS_SERVER_MANAGER is auto/required.
IRIS_SM_WORKSPACE(unset — the process CWD)Optional. Directory whose .vscode/settings.json is used as the highest-precedence source. Set it explicitly when the MCP client's working directory is not the workspace you mean. Only relevant when IRIS_SERVER_MANAGER is auto/required.
IRIS_CREDENTIAL_HELPER(unset)Optional. A command run with the Server-Manager profile name appended as its final argument; the command's trimmed stdout is the password. Because the name is always appended, point this at a small wrapper script that uses it (e.g. a script running op read "op://vault/$1/password" or pass show "iris/$1") rather than at a bare op read …/pass show …, which would reject the extra argument. Run without a shell, so on Windows point it at a real .exe (a .cmd/.bat shim needs cmd /c <your-helper.cmd>). Runs synchronously per password-less profile with a 10s timeout, so keep IRIS_SM_SERVERS tight if the helper can hang. Link 3 of the credential chain — see Server Manager connections. Only relevant when IRIS_SERVER_MANAGER is auto/required and a profile still lacks a password after the OS-keychain link.
IRIS_CREDENTIAL_NAME(unset — today's behavior)Optional. Names an iris-mcp keychain entry (service iris-mcp, account <name>, the same name iris-mcp-credentials set <name> stores under; also the argument IRIS_CREDENTIAL_HELPER receives). When set and IRIS_PASSWORD is unset or empty, the default profile takes its password from that entry (OS keychain, then IRIS_CREDENTIAL_HELPER), and each IRIS_PROFILES entry without a password looks up its own profile name the same way (a miss keeps the inherited password and logs one warning). A non-empty IRIS_PASSWORD still wins, and an exhausted chain fails startup naming this variable and iris-mcp-credentials set <name>. Unset, empty or blank: nothing changes, IRIS_PASSWORD stays required, and no keychain is consulted. IRIS_USERNAME stays required. A value with a control character fails startup. The value is used verbatim, like the name iris-mcp-credentials set stores, so surrounding spaces are part of the name. The IRIS MCP Launcher extension sets it in the definitions it provides to Copilot-harness sessions.

Single-server installs need no changes. IRIS_PROFILES, IRIS_GOVERNANCE, IRIS_GOVERNANCE_PRESET, IRIS_GOVERNANCE_FILE, IRIS_AUDIT_LOG, IRIS_AUDIT_LOG_MAX_MB, IRIS_AUDIT_LOG_PARAMS, IRIS_SQL_MAX_ROWS, IRIS_SQL_TIMEOUT, IRIS_SQL_READ_ONLY (unset: nothing forced read-only), IRIS_SQL_MAX_ROWS_AFFECTED (unset: no ceiling), IRIS_TEST_TIMEOUT, IRIS_DATA_POLICY (unset: redact), IRIS_AUTO_INSTALL (unset: on, except under the read-only preset), IRIS_TOOLS_PRESET, IRIS_TOOLS_DISABLE, IRIS_TOOLS_ENABLE, IRIS_SERVER_MANAGER, IRIS_SM_SERVERS, IRIS_SM_SETTINGS_PATHS, IRIS_SM_WORKSPACE, IRIS_CREDENTIAL_HELPER, and IRIS_CREDENTIAL_NAME are all optional and additive. With none set, the suite behaves exactly as it always has — the six IRIS_* variables above are all you need — with one deliberate exception: the default data policy redact changes what the iris_message_resend preview shows of a message body (see PHI data policy; IRIS_DATA_POLICY=allow restores today's output). (The one behavior that did change for single-server installs is startup against an unreachable instance: it no longer exits. See Backward Compatibility.)

Server Manager connections (optional)

If you already curate IRIS connections in the InterSystems Server Manager VS Code extension, set IRIS_SERVER_MANAGER=auto and the suite reads those intersystems.servers definitions straight out of your VS Code settings files — no re-typing host/port/username into every MCP client config. Each imported definition becomes a named profile you address with the server parameter, exactly like an IRIS_PROFILES entry.

⚠️ Read this first — Server Manager import is ADDITIVE, and the keychain covers your base credentials only with IRIS_CREDENTIAL_NAME.

The six base variables are still required (IRIS_PASSWORD may be left unset or empty when IRIS_CREDENTIAL_NAME is set; see below). IRIS_HOST, IRIS_PORT, IRIS_USERNAME, IRIS_PASSWORD, IRIS_NAMESPACE and IRIS_HTTPS configure the reserved default profile, and default is built before any Server Manager import. Setting IRIS_SERVER_MANAGER=auto does not let you omit them — the server fails at startup with IRIS_USERNAME environment variable is required (then IRIS_PASSWORD…) if you try. Server Manager adds extra addressable profiles; it does not replace your primary connection.

The OS keychain serves Server-Manager-discovered profiles, and the base credentials only when you opt in. iris-mcp-credentials set <name> stores a password that the credential chain uses for an imported definition that has none. It is not consulted for IRIS_PASSWORD unless you set IRIS_CREDENTIAL_NAME=<name> (and leave IRIS_PASSWORD unset or empty): then the default profile takes its password from the entry stored under <name>, so the keychain can remove IRIS_PASSWORD from your client config. Without that variable, storing an entry named default has no effect, because loadConfig reads the base credentials from the environment and never calls the chain.

Worked example: with IRIS_HOST/IRIS_USERNAME/IRIS_PASSWORD set for default, IRIS_PROFILES adding sademo, IRIS_SERVER_MANAGER=auto importing local (inline password) and localhost2 (keychain, via iris-mcp-credentials set localhost2), all four resolve and route — but removing IRIS_PASSWORD breaks startup for all of them, unless IRIS_CREDENTIAL_NAME names a stored entry for default.

  • Default is off. Nothing is read, nothing is imported, and no settings file is touched unless you opt in.
  • Discovery order (highest precedence first), mirroring VS Code's own folder > workspace > user scope ranking: (1) the workspace .vscode/settings.json (from IRIS_SM_WORKSPACE, else the process working directory); (2) every *.code-workspace file directly inside that same directory, sorted by filename — multi-root workspaces commonly keep intersystems.servers only there; (3) each product's user settings — Code, Code - Insiders, VSCodium, Cursor (%APPDATA%\<Product>\User\settings.json on Windows, ~/Library/Application Support/<Product>/User/settings.json on macOS, $XDG_CONFIG_HOME/<Product>/User/settings.json then ~/.config/<Product>/User/settings.json on Linux); (4) on Linux only, Flatpak sandboxes — ~/.var/app/{com.visualstudio.code,com.visualstudio.code.insiders,com.vscodium.codium}/config/<Product>/User/settings.json. The first file to define a name wins. A name already defined by IRIS_* or IRIS_PROFILES always wins over a Server Manager definition.
  • Linux specifics. VS Code is Electron, whose Linux config root is $XDG_CONFIG_HOME or ~/.config — so both are searched, XDG first. A Flatpak install cannot write ~/.config at all (Flatpak redirects the app's XDG_CONFIG_HOME into its sandbox), so the three published Flathub apps are searched too, after the native paths. Cursor is not published on Flathub and therefore has no Flatpak entry; use IRIS_SM_SETTINGS_PATHS for any install layout not listed here, including VS Code portable mode.
  • Both settings-file shapes are understood. A settings.json holds intersystems.servers at the top level; a .code-workspace file nests every setting under a settings key. Either works, including when named explicitly in IRIS_SM_SETTINGS_PATHS.
  • Passwords are not readable directly, but a credential chain completes them. Server-Manager-saved passwords live in VS Code SecretStorage and are cryptographically unreachable from outside VS Code — by design, with no supported extraction path. For any imported definition that lacks a password, the suite tries, in order: (1) the OS keychain (Windows Credential Manager / macOS Keychain / libsecret), service iris-mcp, account <name> — set with the iris-mcp-credentials CLI below; (2) IRIS_CREDENTIAL_HELPER. A definition carrying a legacy inline password still works too (with a deprecation warning), provided it also declares its own username — see the next bullet. If every link is exhausted, the profile is excluded at startup with a log line naming the remediations; under IRIS_SERVER_MANAGER=required this fails startup instead.
  • IRIS_PROFILES replaces a Server Manager definition — it does not complete one. If a name exists in both, the environment wins and the Server Manager definition is discarded entirely, host and username included (a warning names the collision). So an IRIS_PROFILES entry that supplies only a password will quietly give you a profile pointed at your local IRIS_HOST/IRIS_USERNAME, not at the Server Manager host. To supply a password for a Server Manager definition, use the OS keychain or IRIS_CREDENTIAL_HELPER; use IRIS_PROFILES only when you are defining the whole connection there.
  • A Server-Manager entry needs its own username. An entry that omits username (relying on the local default's username) is not imported at all — a warning names the file and the fix. Pairing an inherited username with a password destined for a different remote host risks repeated authentication failures that can lock out the account there. Add "username" to the intersystems.servers entry to opt in. (Changed in this release: such an entry previously imported successfully when it carried an inline password.)
  • The same name in two settings files. The first (highest-precedence) file wins, always. If that definition has no password of its own and a lower-precedence file's definition carries an inline password, the lower-precedence definition — including its inline password — is ignored, and a warning names both hosts. Store a password for the name (iris-mcp-credentials set <name>) to complete the winning definition, unless it comes from a workspace-scope file, which never gets a stored password (see "A workspace-defined server never gets a stored password" below).
  • auto reads the working directory. Because the workspace candidate defaults to the process CWD, a repository you have merely cloned can contribute connection definitions. Set IRIS_SM_WORKSPACE explicitly, or pin IRIS_SM_SERVERS, when working in repositories you do not control.
  • A workspace-defined server never gets a stored password (DW-761). The OS keychain and IRIS_CREDENTIAL_HELPER look a password up by server name, so a definition from the workspace .vscode/settings.json or a *.code-workspace file (the files a repository's author controls) is never paired with one: the server is left out of the roster with a warning that names the file (IRIS_SERVER_MANAGER=required fails startup instead). A workspace definition that carries its own inline password in that same file still uses it, and files you list in IRIS_SM_SETTINGS_PATHS count as yours when you name them by absolute path (a relative entry resolves against the working directory, usually the repository, so it counts as workspace scope). A server defined in your user settings is unchanged unless a workspace file defines the same name: that file wins (first file wins), so the server is refused. To use a stored password for such a server, define it in your user settings under a name no workspace file uses.
  • Changes require a restart, exactly like the IRIS_* environment variables.
  • See where every profile came from. iris_server_profiles (the discovery tool) reports a source field on every roster entry — "env" (from IRIS_*/IRIS_PROFILES) or "server-manager" (imported from a settings file) — plus sourceFile, the exact settings file a Server-Manager-sourced profile came from. Both are attribution only: they never affect which actions governance allows, only where you look to change a connection's host/port/username. The optional IRIS_AUDIT_LOG audit trail (see Compliance & Auditability) likewise records profileSource per call, for the same reason.
  • sourceFile is a local path, and your AI client sees it. It never contains a password — but it is a real filesystem path, so when a profile comes from a user-scope settings file it includes your OS account name (e.g. C:\Users\jsmith\AppData\Roaming\Code\User\settings.json), and when it comes from a workspace it includes that directory. Because the roster is returned to the connected MCP client, that path is visible to the model. This is deliberate: a bare filename would be useless — every candidate file is called settings.json, so the folder is the whole point. If you would rather not disclose local paths, leave IRIS_SERVER_MANAGER off and use IRIS_PROFILES (a definition from a workspace-scope file gets no stored password, see above).

Where do Server Manager passwords come from? (the canonical answer)

Short version: a Server Manager password is never readable outside VS Code, by design — but the suite can still get one from you through three other doors.

VS Code's Server Manager extension stores passwords in its own encrypted SecretStorage (backed by the OS's safeStorage/keychain, app-bound to VS Code itself). There is no supported API, file, or database an external process — including this suite — can read to recover that value. If you set IRIS_SERVER_MANAGER=auto/required and a Server-Manager-sourced profile still shows no password at startup, this is why, and it is expected. Complete it one of these three ways instead:

  1. OS keychain (recommended). Run iris-mcp-credentials set <name> once per machine (see the CLI below) — it stores the password in the same class of OS-native secure storage (Windows Credential Manager / macOS Keychain / libsecret) that VS Code itself uses, just under this suite's own service name (iris-mcp). This is the credential chain's link 2 and needs no config file.
  2. IRIS_CREDENTIAL_HELPER. Point this environment variable at a command (e.g. a wrapper around op, pass, or your organization's secret manager) that prints the password to stdout when given the server name. Useful when you already have a secrets tool and don't want a second, suite-specific store.
  3. IRIS_PROFILES — but only as a full replacement, never a patch. An IRIS_PROFILES entry for the same name does not "add a password" to the Server Manager definition; it replaces it entirely, including host/port/username. Use this only when you want to define the connection outside Server Manager altogether.

If none of the three is set up, the profile is excluded at startup (a log line names all three remediations) rather than started with a missing or wrong credential; under IRIS_SERVER_MANAGER=required this fails startup instead of degrading silently.

iris-mcp-credentials CLI

A small command-line tool — ships as a bin in @iris-mcp/shared, built to packages/shared/dist/cli/credentials-cli.js — for the one-time per-machine setup referenced above: storing, listing, testing, and removing IRIS passwords in the OS keychain, so the OS-keychain link of the credential chain never needs a hand-edited config file containing a password. Run it through npx; the -p form names the bin:

bash
npx -y -p @iris-mcp/shared@1 iris-mcp-credentials set myserver
CommandEffect
set <name>Store a password for <name> in the OS keychain. Interactive by default — prompts with echo suppressed; --stdin reads the password from a pipe or file instead (a leading UTF-8 BOM and a single trailing newline are stripped) for scripted/CI use. --stdin is refused when stdin is a terminal, because reading a TTY does not suppress echo and the password would appear in cleartext. A password is never accepted as a command-line argument — it would land in shell history and any same-user process listing.
delete <name>Remove the stored password for <name>. A missing entry is exit code 1, not an error.
list [--json]List stored server names only — no password value is ever printed, logged, or serialized. (The native findCredentials(service) API returns {account, password} pairs and offers no account-only entry point, so passwords do transit process memory during enumeration; the CLI discards them at the first opportunity and never touches them again.) Enumeration is verified against the Windows Credential Manager; macOS Keychain and libsecret back-ends may enumerate differently. set, delete and test are unaffected.
test <name> [--connect] [--json]Run the real credential chain for <name> (env → OS keychain → credential helper) and report which link resolved it. --connect additionally performs a live Atelier HEAD /api/atelier/ check against the mapped profile, reusing the same health-check path the servers use at startup. --connect needs <name> to map to a connection profile in the shell running the CLI — i.e. IRIS_SERVER_MANAGER=auto (or an IRIS_PROFILES entry), plus IRIS_USERNAME/IRIS_PASSWORD for the reserved default profile. Without them the credential check still reports correctly and only the connectivity half fails, naming this remedy.

A <name> that is empty, whitespace-only, or contains a newline or control character is rejected (exit 2) before the keychain is touched. Use -- to address a name that begins with -, e.g. iris-mcp-credentials delete -- --json.

Every password is stored under OS-keychain service iris-mcp, account <name> — the exact key the credential chain's OS-keychain link (link 2, above) reads, so a name you set here is immediately usable once IRIS_SERVER_MANAGER=auto/required is set (default off — see the variable table above).

Exit codes are consistent across all four commands: 0 success · 1 not found / credential unresolved / OS keychain unavailable (or a failed --connect check) · 2 usage or input error (unknown command, missing or extra argument, unknown option, invalid server name, empty password, aborted prompt).

--json output is available on list and test. Its contract: an operational outcome (exit 0 or 1) always writes exactly one JSON object to stdout — on failure that is {"error": "..."} for list, and an error field alongside the usual fields for test. Usage errors (exit 2) are always plain text on stderr, because the flags themselves were not understood. Human-readable failures always go to stderr, so ... --json 2>/dev/null | jq works while a human still sees the error.

Every output path — human text, --json, --help, and error/failure messages, including a failed --connect — is secret-free: known secrets are substring-redacted, and a secret too short to redact safely causes the whole message body to be withheld. Unlike the credential chain's own OS-keychain link (which silently skips to the next link when the native keychain module is unavailable), this CLI's set/delete/list fail loudly with a non-zero exit and an actionable message, since operating on the OS keychain is the whole point of the command. Run npx -y -p @iris-mcp/shared@1 iris-mcp-credentials --help for full usage.

iris-mcp-governance CLI

A small command-line tool — ships as a second bin in @iris-mcp/shared, built to packages/shared/dist/cli/governance-cli.js — for validating, inspecting, and editing a governance file with the SAME engine the servers enforce with: every parse goes through the server's own loader (so validate prints the exact error text a server would fail startup with), and effective/diff compose the shared cascade functions directly rather than reimplementing them. Opt-in and agent-agnostic — with no file configured, the servers are unaffected. A governance file guards the agent, not the IRIS account: see What the safety settings protect. Run it through npx; the -p form names the bin:

bash
npx -y -p @iris-mcp/shared@1 iris-mcp-governance validate --file C:\governance\iris-policy.json
CommandEffect
validate [--file <path>] [--json]Parse and validate the file with the same loader the servers use at startup. Exit 1 (the server's exact error text, naming IRIS_GOVERNANCE_FILE + the path) when invalid.
get <key> [--profile <name>] [--json]Print the key's explicit value in the file (true/false/unset) — the file's own layer, not the cascade.
set <key> true|false [--profile <name>]Write the key into the file (creating the file when missing). Atomic write (temp + rename in the same directory), existing key order preserved, the written file automatically re-validated with rollback on failure. Reserved keys (__proto__ etc.) are rejected; a key outside the frozen baseline warns on stderr but is still written (post-foundation keys like iris_env_promote:execute are legitimate).
unset <key> [--profile <name>]Remove the key from the file. Exit 1 when the key is not set (the iris-mcp-credentials delete not-found convention).
preset read-only|fullPrint the env-level wiring for IRIS_GOVERNANCE_PRESET — writes nothing: the servers source the preset from their process environment only, never from a governance file.
effective [--profile <name>] [--json]Render the SAME cascade the servers compute (env.profile ?? env.global ?? file.profile ?? file.global ?? inheritedDisable ?? dataPolicySeed ?? presetSeed ?? defaultSeed) for the CLI's own environment plus the resolved file, with the per-key configSource (env|file|parent|dataPolicy|preset|default). It renders the frozen baseline's keys only (and, under the block data policy, the covered raw-read and code-execution keys, disabled with source dataPolicy; the text header then adds (data policy: block) and the --json object gains "dataPolicy": "block", as in universe; both are absent under redact and allow), and no baseline key has a parent, so an inherited disable (source parent) shows only in universe.
diff [--json]Compare every key the file sets against its default-seed value.
universe [--profile <name>] [--root <path>] [--json]Render the full governed-key universe — the frozen baseline ∪ the five server packages' registered tool keys (derived from their built dist, the same derivation the suite's cross-package tests use) ∪ the framework iris_server_profiles tool — with the real mutates/default-enabled classifications, per-key effective value, and configSource. This is the render a running server's iris_server_profiles computes over its own registered subset; post-foundation write keys seed default-DISABLED here (unlike effective/diff). When the profile's data policy is block, the covered keys render false with configSource dataPolicy, the text header adds (data policy: block) and the --json object gains "dataPolicy": "block" (absent under redact and allow). Needs the packages' built dist locatable: --root names a monorepo root (or package container dir); otherwise auto-detected from the CLI's own install location.
check [--file <path>] [--root <path>] [--json]Check every key in IRIS_GOVERNANCE and in the resolved file against the full governance-key universe (the keys universe lists). A key that is none of them has no effect on any server: a typo such as iris_doc_putt, a bare name for a per-action tool, an action on a single-operation tool, or an action a tool does not have. One message per such key on stderr, then a summary; exit 1 when any key matches nothing. A server only warns about these keys at startup, and only for the tools it registers, so check is the suite-wide check. Needs the same built dist as universe (--root works the same way).

Default file resolution — --file <path> wins; otherwise IRIS_GOVERNANCE_FILE from the environment. Explicit path only: the CLI never discovers or searches for a file (architecture decision J1). Exit codes: 0 success · 1 operational failure (file unreadable/invalid per the server loader, a key not set for unset, a key that matches nothing for check) · 2 usage error. --json on the read commands (validate, get, effective, diff, universe, check) always emits exactly one parseable JSON object to stdout on an operational outcome — including failures; usage errors (exit 2) are always plain text on stderr.

One caveat: the full governance-key universe is the frozen baseline plus each server's registered tool keys, which validate/get/set/unset/effective/diff cannot enumerate (importing a server package would be a circular dependency). effective/diff therefore render over the baseline plus keys mentioned in any config layer — a post-foundation key mentioned nowhere renders with the read-default seed (enabled) even when a real server would seed it disabled. The universe command closes that gap by deriving the registered half from built dist, and iris_server_profiles on a running server remains the authoritative render. Run npx -y -p @iris-mcp/shared@1 iris-mcp-governance --help for full usage.

3. Configure Your MCP Client

The Claude Code plugin and the VS Code extension configure themselves (step 1). For every other client the iris-mcp-clients CLI writes the entry for you, and the manual snippets below show what it writes.

📖 MCP client configuration index — copy-pasteable config for 15 clients (Claude Code, VS Code/Copilot, Cline, Kimi Code, Kimi CLI, Codex CLI, Cursor, Claude Desktop, Devin Desktop (formerly Windsurf), Roo Code, Gemini CLI, Zed, Goose, Pi, JetBrains Junie), a format/root-key matrix (three formats and four different root keys between them), and the two credential caveats above restated where you need them.

The manager: iris-mcp-clients

The @iris-mcp/client-config package ships the iris-mcp-clients CLI — one tool that wires any of the 15 supported clients for you instead of hand-editing config files: it detects which clients are installed, previews the exact edit, writes through a backup-on-write engine, toggles entries, rolls back, and diagnoses the result. Run it through npx; the -p form names the bin:

bash
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients detect                    # which clients are installed
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients diff --client cursor --servers iris-dev-mcp
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients apply --client cursor --servers iris-dev-mcp
npx -y -p @iris-mcp/client-config@1 iris-mcp-clients doctor                    # env refs, parseability, drift, backups, stashes, plugin duplicates

apply prints the pending diff first and requires confirmation (--yes to skip); every successful write takes a timestamped backup and prints the client's restart hint. From 1.1.0, a project-scope write (--scope project) is refused when the project directory is your home directory, because the project file would then be a user-level file; open a project folder, or use --scope user. iris-mcp-clients skills install also installs the skills pack into a project: see The skills pack.

The zero-secrets end state — three composable pieces, each covering a different secret class:

  1. Server Manager + OS keychain (Epic 31): --mode server-manager writes entries carrying IRIS_SERVER_MANAGER=auto — connections come from your InterSystems Server Manager profiles, passwords from the OS keychain via iris-mcp-credentials set <name>; nothing secret in the config file.
  2. Governance file (Epic 32): --mode governance-file writes entries carrying IRIS_GOVERNANCE_FILE=<path> — one shared policy file governs every server's tool surface; the file holds no credentials.
  3. Environment references on VS Code (Copilot) (default env-reference mode): the password is never stored — the manager writes ${IRIS_PASSWORD} into ~/.copilot/mcp-config.json (or the workspace .mcp.json), which VS Code resolves from the environment it was started with, so start VS Code from a shell that has IRIS_PASSWORD exported. The Copilot harness has no password prompt; use item 1 where you would rather keep the password in the OS keychain.

Which clients/config surfaces are proven: the adapter certification table (Claude Code, VS Code, Cline and Kimi Code are certified-live as of 2026-07-28; the rest carry explicit fixture-only-with-residual-risk dispositions, and the clients that need a person at the GUI carry a human-only marker — re-provable anywhere with node packages/client-config/scripts/certify.mjs run <client> --real-config from a checkout).

The manual per-client snippets below remain as the fallback (and as the reference for what the manager writes).

Claude Code (.mcp.json)

Create a .mcp.json file in your project root:

json
{
  "mcpServers": {
    "iris-dev-mcp": {
      "command": "npx",
      "args": ["-y", "@iris-mcp/dev@1"],
      "env": {
        "IRIS_HOST": "localhost",
        "IRIS_PORT": "52773",
        "IRIS_USERNAME": "_SYSTEM",
        "IRIS_PASSWORD": "SYS",
        "IRIS_NAMESPACE": "USER"
      }
    }
  }
}

Note: Replace "SYS" with your actual IRIS password. Avoid committing real credentials to version control.

Claude Desktop (claude_desktop_config.json)

Add to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "iris-dev-mcp": {
      "command": "npx",
      "args": ["-y", "@iris-mcp/dev@1"],
      "env": {
        "IRIS_HOST": "localhost",
        "IRIS_PORT": "52773",
        "IRIS_USERNAME": "_SYSTEM",
        "IRIS_PASSWORD": "SYS",
        "IRIS_NAMESPACE": "USER"
      }
    }
  }
}

To add more servers, include additional entries under mcpServers using the same pattern. For example, to add admin tools:

json
{
  "mcpServers": {
    "iris-dev-mcp": {
      "command": "npx",
      "args": ["-y", "@iris-mcp/dev@1"],
      "env": { "IRIS_USERNAME": "_SYSTEM", "IRIS_PASSWORD": "SYS" }
    },
    "iris-admin-mcp": {
      "command": "npx",
      "args": ["-y", "@iris-mcp/admin@1"],
      "env": { "IRIS_USERNAME": "_SYSTEM", "IRIS_PASSWORD": "SYS" }
    }
  }
}

The five servers are @iris-mcp/dev, @iris-mcp/admin, @iris-mcp/interop, @iris-mcp/ops and @iris-mcp/data; each is launched as npx -y @iris-mcp/<name>@1.

4. Verify

Ask your AI assistant:

"List the IRIS namespaces" (with @iris-mcp/admin)

or

"Show me the globals in the USER namespace" (with @iris-mcp/dev)

If the assistant returns results from your IRIS instance, you are connected.

Optional: Install the IRIS-Side Classes with IPM

Skip this section unless the automatic install cannot run. By default the first server to connect deploys the ExecuteMCPv2 classes itself and upgrades them when a newer release connects (see Shared Instances), and most users need nothing else. Use IPM only where that cannot happen:

  • The connecting user cannot upload or compile classes in the namespace. The server records Deploy failed or Compile failed in its startup report, and the REST service does not come up.
  • The connecting user lacks %Admin_Manage. The classes deploy, but the web application cannot be created, so the server logs a warning that web application registration requires %Admin_Manage privileges, with manual instructions (a later start by a user who has %Admin_Manage repairs it, and so does running Do ##class(ExecuteMCPv2.Setup).Configure("<namespace>") in %SYS). An administrator who prefers one step runs the IPM install instead.
  • Your change control does not allow a client to deploy code to the instance. An administrator installs the package once.

An administrator then runs, in the target namespace, as a user with %Admin_Manage, with IPM 0.10 or later installed in that namespace:

zpm "install iris-execute-mcp-v2 <version>"

<version> is the version of the suite you run: the @iris-mcp/shared semver, which is the part of the version marker before the +. When zpm "repo -list" shows no registry, add the community registry to that namespace first with zpm "repo -r -n registry -reset-defaults". The IPM package is published to the IPM registry from 1.1.0, the first release with the IPM channel; before that the command finds nothing, and the server's own bootstrap installs the classes.

  • IPM then owns the classes in that namespace, and the server never redeploys them. The package carries a class, ExecuteMCPv2.InstallGuard, that only IPM installs. A server that finds it writes nothing there (no upload, no compile, no web application or mapping change) and logs one [WARN] line that names the zpm command. So every upgrade of the classes must go through zpm "install iris-execute-mcp-v2 <version>" too: a newer server release does not update them on its own. A server that was already deploying when IPM installed the classes finds the guard just before compiling: it compiles and configures nothing, and the documents it had uploaded stay until the package is reinstalled. zpm "uninstall iris-execute-mcp-v2" in that namespace hands it back to the server (restart a running server): with the automatic install on, it installs its own classes again the next time it connects, which is how you return to the automatic install. With the automatic install off (IRIS_AUTO_INSTALL=false, a profile's autoInstall: false, or the read-only preset) the server installs nothing, so an uninstalled instance stays uninstalled and its custom-REST tools are refused with IRIS_SIDE_NOT_INSTALLED.
  • The install cannot downgrade a newer deployment. At the start of every install the guard orders the marker of the ExecuteMCPv2.Setup already in the namespace against the package's own marker, with the same ordering as the server (semver first, then sequence). It refuses to install over a newer one, over dev or another foreign marker, or over a Setup whose marker cannot be read, and nothing is installed. To install the package deliberately over such a deployment, delete the class ExecuteMCPv2.Setup in the namespace and run the install again. An older deployment, or none, installs. The manifest sets CheckStatus on the guard's invoke, because IPM 0.10.0 to 0.10.4 ignore a returned error status without it; the CI proof runs on the IPM 0.10.5 that ships with the IRIS images it uses, and the earlier versions are not tested. IPM 0.10.5 marks CheckStatus deprecated, because it checks a returned %Status by default, but still reads it, and the CI proof checks that the manifest inside the built archive still carries it.
  • Install with zpm "install ..." only, never with -dev. A developer-mode load of a refused version keeps IPM's record at the version it refused.
  • The package configures the /api/executemcp/v2 web application and the %ALL package mapping through ExecuteMCPv2.Setup.Configure, with no application roles: handlers run with the connecting user's own privileges.
  • A failed IPM install may leave %ALL and the ExecuteMCPv2 mapping in place, consistent (from 1.3.0). IPM runs the package's configuration inside a transaction and rolls it back when a later step fails. From 1.3.0, ConfigureMapping creates the %ALL namespace, the mapping and their install-record entries with transactions suspended when it runs inside a transaction (the previous suspension state is restored before it returns), so that rollback leaves them in place together, and Setup.Uninstall() removes them. Before 1.3.0, the rollback undid %ALL and the mapping in Config.Namespaces and Config.MapPackages but not in iris.cpf and the running configuration, and the namespace table then refused every new namespace (iris session iris -U <namespace> exited 233, and Atelier answered 500 for it). For an instance that an earlier release's failed install left in that state, run Do ##class(Config.Namespaces).ActivateAll() in %SYS.
  • zpm "uninstall iris-execute-mcp-v2" removes the classes and nothing else. The web application, the %ALL mapping and the %ALL namespace stay. To take the IRIS side away completely, run the uninstall command first and zpm "uninstall iris-execute-mcp-v2" second: see Removing the IRIS Side.

This adds no tool and no governed action. CI builds the package archive and installs it, with no network, on iris-community and irishealth-community (the ipm job below).

Removing the IRIS Side

One documented command in an IRIS terminal takes away what the install added, and leaves what it did not add. It is not a tool, not a CLI command and not a REST route, and it is not an SQL procedure, so no SQL client and no agent can call it through iris_sql_query or iris_sql_execute.

Before you run it, stop the servers that use the instance, or turn their automatic install off. A server whose automatic install is on puts the IRIS side back the next time it starts, or the first time it uses this instance. Stop the servers, or set IRIS_AUTO_INSTALL=false (or a profile's autoInstall: false) in the client configuration, run the command, and restart the servers only afterwards. With the automatic install off, a restarted server installs nothing, and its custom-REST tools answer IRIS_SIDE_NOT_INSTALLED until someone reinstalls.

Run, in an IRIS terminal, in any namespace that sees the ExecuteMCPv2.Setup class (normally the namespace the suite was installed in):

Do ##class(ExecuteMCPv2.Setup).Uninstall()

It needs an account with %Admin_Manage and write access to the databases of the namespaces that hold the classes. A repeat run removes nothing more while a copy of the Setup class remains (a copy left for IPM, or a foreign one); after a full removal the class is gone, so there is nothing to run. It prints one line per thing it did: Removed: ..., Left: ... (why). To remove it by hand: ... and Failed: ...: <IRIS's own text>. Its last line repeats the warning above about running servers.

If the command fails with <CLASS DOES NOT EXIST>, the uninstall already finished in that namespace and nothing is left to do. To confirm it, run this line in the same namespace (it needs access to %SYS, which the uninstall needed too); it prints record=0 webapp=0 when the install record of that namespace and the /api/executemcp/v2 web application are both gone:

Set ns=$NAMESPACE Write "record=",$Data(^ExecuteMCPv2.InstallRecord) Set $NAMESPACE="%SYS" Write " webapp=",##class(Security.Applications).Exists("/api/executemcp/v2"),! Set $NAMESPACE=ns

What it removes, in this order:

  1. the /api/executemcp/v2 web application;
  2. the ExecuteMCPv2 package mapping in the %ALL namespace (whoever made it: only this package uses it);
  3. the %ALL namespace, only when the install created it and nothing else is mapped in it;
  4. ^UnitTestRoot in each namespace where the install set it, only while its value is the one the install set;
  5. the ExecuteMCPv2 classes, in every namespace that holds a copy of its own, shadowed copies included (the instance has one web application and one mapping, but each namespace the suite was installed in has its own classes). The whole package goes, so a class someone added to ExecuteMCPv2 there goes with it (the report counts it). A namespace whose copy this install did not deploy (a dev copy loaded by hand, or a copy with no release marker) is left alone and named, with the command to remove it, even where an install record exists. A namespace where IPM installed the classes is left too, because IPM owns them: the report names zpm "uninstall iris-execute-mcp-v2". The classes go only when every step before them succeeded, because the Setup class that runs the command is among them;
  6. the install records, last, only when no step failed.

The install record. From 1.3.0 a new install writes down what it created, in the global ^ExecuteMCPv2.InstallRecord of each namespace where one of its steps ran: whether it created %ALL and the mapping, the value it set ^UnitTestRoot to, and the marker of the classes it deployed. The bootstrap and IPM's Configure and ConfigureMapping write it alike. %ALL that existed before the install, a mapping someone else added to %ALL, a ^UnitTestRoot that was set before the install or has changed since are never removed; the report says Left: and why for all of them except a preset ^UnitTestRoot in a namespace whose own install record exists, which it does not mention, because the install never touched it there. A ^UnitTestRoot in a namespace that h

Similar modules

Browse Databases