@iris-mcp/admin
IRIS Administration MCP Server -- Namespace, database, user, role, resource (incl. SQL privileges), web application, SSL/TLS, OAuth2, service, LDAP, X.509, and audit management via the Model Context Protocol.
Part of the IRIS MCP Server Suite.
Installation
Or run directly without installing:
Configuration
All servers use the same environment variables:
Multiple servers & the server parameter
Optionally, set IRIS_PROFILES (a JSON map of named IRIS instances) and IRIS_GOVERNANCE (a JSON tool-action policy) to target several instances from one server and restrict which actions are allowed. Every tool accepts an optional server parameter (a profile name from IRIS_PROFILES) that selects which instance the call targets; omit it to use the default profile. It composes with the existing per-call namespace override. Both variables are optional and additive — omit them and this server behaves exactly as a single-instance, fully-enabled install. Full model, escaping, and worked examples: Multiple Servers & Governance.
Optionally, set IRIS_GOVERNANCE_FILE to the path of a JSON file of the same shape as IRIS_GOVERNANCE to load policy from a file shared across several MCP clients instead of inline JSON. Optional and additive — unset (the default) means inert: no file is ever read and behavior is byte-for-byte unchanged. An IRIS_GOVERNANCE env value always wins over the file. Details: Governance file.
Tool Visibility (IRIS_TOOLS_PRESET)
Set IRIS_TOOLS_PRESET=core to trim this server's tools/list to a 13-tool runtime roster (12 package tools + iris_server_profiles) — the everyday admin loop (namespaces, databases, users, webapps, permission checks); no mapping/role-security/SSL/OAuth/service/LDAP/X509/audit management. IRIS_TOOLS_PRESET=developer trims to 11 runtime tools (10 + iris_server_profiles) — only what a developer self-serves (namespace/database/mapping/webapp config plus permission checks), hiding ALL user/security administration. Omit (or set "full") for today's behavior — every tool visible, byte-for-byte. IRIS_TOOLS_DISABLE/IRIS_TOOLS_ENABLE hide/force-show individual tools independent of the preset. This is orthogonal to IRIS_GOVERNANCE above (visibility = does the agent know a tool exists; governance = is an already-visible call allowed). Full model, exact per-tool roster, and the payload-size measurements: Tool Visibility Presets.
Prompt-pack limitation. The audit-security-posture prompt calls iris_user_get, iris_role_list, iris_service_manage, iris_ssl_list, and iris_audit_manage — under core, iris_service_manage/iris_ssl_list/iris_audit_manage are hidden (the prompt cannot complete steps 4-6); under developer, ALL FIVE tools it calls are hidden (the prompt cannot run at all). The provision-project-environment prompt calls iris_user_manage, which is hidden under developer (step 4 fails). Both prompts need full, or IRIS_TOOLS_ENABLE naming the specific tool(s) they use.
Audit Logging (IRIS_AUDIT_LOG)
For regulated deployments, set IRIS_AUDIT_LOG=/path/to/audit.jsonl to record every MCP tool call this server handles — success, error, or governance denial — as one secrets-free JSON line (session, sequence, tool, action, outcome, redacted parameter keys). It is off by default (unset ⇒ a mechanical no-op, zero filesystem writes) and framework-wide — the same interceptor covers every tool on this server. IRIS_AUDIT_LOG_MAX_MB (default 50) sets the single-generation rotation size; IRIS_AUDIT_LOG_PARAMS=true additionally records (redacted) parameter values. Because it is server-side configuration — not a governed tool action — an AI client cannot disable its own audit trail; only an operator with server-environment access can. Full record shape, redaction rules, and how it differs from IRIS's own iris_audit_manage security-audit tool: Compliance & Auditability.
Server Manager connections (IRIS_SERVER_MANAGER)
Set IRIS_SERVER_MANAGER=auto to import IRIS connection definitions straight from the InterSystems Server Manager VS Code extension's intersystems.servers settings — one curated roster instead of re-typing host/port/username into every MCP client's config. IRIS_SERVER_MANAGER is framework configuration, not a tool — it applies identically across all five servers in the suite. Omit (or set "off", the default) for today's behavior: no settings file is ever read. A password-less imported definition is completed via an OS-keychain / IRIS_CREDENTIAL_HELPER credential chain (see the iris-mcp-credentials CLI — Server Manager passwords themselves are never readable outside VS Code, by design); iris_server_profiles reports where each profile's connection fields came from via source ("env"/"server-manager") and sourceFile. The companion variables are all optional, each with its own default: IRIS_SM_SERVERS (unset — import all), IRIS_SM_SETTINGS_PATHS (unset — normal discovery), IRIS_SM_WORKSPACE (unset — the process CWD) and IRIS_CREDENTIAL_HELPER (unset). Full model, discovery precedence, and the SecretStorage boundary explained plainly: Server Manager connections.
MCP Client Configuration
Claude Code (.mcp.json)
Claude Desktop (claude_desktop_config.json)
Cursor
Note: Replace "SYS" with your actual IRIS password. Avoid committing real credentials to version control.
Tool Reference
Framework Tools
Provided by the shared framework and available on every suite server (Epic 19).
iris_server_profiles is a read tool, enabled by default. It reports in-memory config and does not connect to IRIS. Use it to choose the right server profile and avoid governance-disabled actions before invoking other tools.
Namespace & Database Tools
Namespace Mapping Tools
User & Security Tools
Role & Resource Tools
Web Application Tools
SSL/TLS Tools
OAuth2 Tools
OAuth2 server creation notes:
supportedScopes — accepts a space- or comma-separated string (e.g., "openid profile email" or "openid,profile,email"). The tool splits the string into an array before sending to IRIS.
customizationNamespace — IRIS namespace containing OAuth2 customization classes (required by IRIS; defaults to "" when omitted).
customizationRoles — roles granted to the customization code (required by IRIS; defaults to "" when omitted).
OAuth2 discovery and client registration notes:
sslConfiguration — name of an IRIS SSL/TLS client configuration used for the discovery connection. Required for https issuer URLs (IRIS rejects the connection with ERROR #6159 otherwise). Inspect existing configurations with iris_ssl_list; create one with iris_ssl_manage (action: "create").
discover saves an OAuth2.ServerDefinition keyed by the exact issuer URL — it is a write, not a read.
- Client registration (
create + entity: "client") requires a prior successful discover for the issuer: serverName is the exact issuer URL string that was discovered (the match is exact; there is no user-chosen server name). The client record inherits the server definition's SSL configuration. If the issuer publishes no dynamic registration endpoint (Google, for example), the local client record is still created and saved, and the response carries the clean "no registration endpoint" error — matching the Management Portal's configure-then-register semantics.
SQL Privilege Tools
iris_resource_manage also manages SQL object privileges (schema/table/column GRANT/REVOKE) via three additional actions. Unlike the security-resource actions (which run in %SYS), these execute in the target namespace (the namespace? parameter, defaulting to the configured default).
Governance: grant and revoke are classified write (denied by default under an IRIS_GOVERNANCE policy until explicitly allowed); listPrivileges is a read (enabled by default). SQL privileges are namespace-scoped.
listPrivileges bounding (Story 35.4): a grantee holding %All (e.g. _SYSTEM) is granted every SQL privilege on every object via a derived SuperUser cross-product — live-measured at 15,341 rows / 2,900,478 characters for _SYSTEM, which overruns the client transport limit. listPrivileges now omits those derived (GRANTED_VIA=SuperUser) rows automatically, adding a reason string and a superUserPrivilegesOmitted count to the response; any REAL non-derived grant is still listed, and the omitted count stays exact even when maxRows truncates the real rows. The omission is decided per row, from the GRANTED_VIA value the query itself reports — the handler never resolves the grantee's roles — so it holds however the grantee acquired %All, including through a deeply nested role chain. (An instance-wide sweep of all 46 users and roles found SuperUser rows emitted if and only if the principal effectively holds %All; powerful non-%All accounts such as Admin return 0 derived rows and are therefore untouched.)
maxRows bounds the response further (default 100; values above 1000 are clamped) — it is an OUTPUT-only bound on the server's fetch loop, not a bound on the underlying privilege scan, and therefore not timeout protection; a capped response carries rowsCapped: true. Pagination is opt-in: pass maxRows or cursor and the response is paged 50 rows at a time (the suite-wide default page size) within the maxRows ceiling; pass neither and every row the server returned comes back unpaged, exactly as before Story 35.4. Resend the same maxRows alongside each cursor — every page re-runs the server query and the cursor offset is positional. The cursor never crosses the maxRows ceiling and maxRows is itself capped at 1000, so a grantee with more than 1000 real grants cannot be fully enumerated through this action. All three new fields (rowsCapped, reason, superUserPrivilegesOmitted) are present ONLY when actually triggered, so a caller who passes no new parameters, fits under the cap, and does not hold %All sees the exact pre-35.4 response shape.
Service Tools
LDAP Tools
X.509 Certificate Tools
Auditing Tools
Note: iris_audit_manage configures auditing and manages the audit log. It is distinct from @iris-mcp/ops's read-only iris_audit_events, which only queries audit events.
Governance defaults (service / LDAP / X.509 / audit): the write actions of these tools are classified write and are disabled by default under an IRIS_GOVERNANCE policy until explicitly allowed — iris_service_manage:enable/:disable/:set, iris_ldap_manage:create/:modify/:delete, iris_x509_manage:import/:delete, and iris_audit_manage:enable/:disable/:configureEvent/:purge/:export. Their read actions are enabled by default — :list/:get/:test/:status/:view. (iris_resource_manage:grant/:revoke follow the same rule; see the SQL-privilege governance note above.)
Human confirmation (Story 43.3): iris_audit_manage action purge (a write, default-disabled) also asks the person before it deletes audit-log records, when the MCP client declares form elicitation; any other client keeps today's confirm: true contract, and declining ends the call with CONFIRMATION_DECLINED and changes nothing. A Claude Code Elicitation hook can answer the dialog for the person, which is the user's choice and removes the person from the loop. See Human confirmation (elicitation).
Prompts
Workflow-shaped MCP prompts (Epic 25) served via prompts/list/prompts/get. Prompts are a separate protocol capability from tools — they carry no governance key and do not change this server's tool count.
Also installable as Agent Skills.
Tool Examples
iris_namespace_manage -- Create a namespace
Input:
Output:
iris_namespace_list -- List namespaces
Input:
Output:
iris_database_manage -- Create, modify, or delete a database
Input (create):
Input (modify):
Output:
Config/SYS routing: Database properties split across two IRIS classes.
- Configuration props (route to
Config.Databases): directory, resource, mountRequired, mountAtStartup, readOnly, globalJournalState.
- Runtime props (route to
SYS.Database): size, maxSize, expansionSize. These control the physical database file and are not accessible via Config.Databases. create uses SYS.Database.CreateDatabase() to create the physical file, then Config.Databases.Create() for CPF registration. modify routes runtime props through SYS.Database.%OpenId(directory).%Save().
Delete caveat: action:"delete" removes the database from the IRIS configuration (CPF) but does NOT cancel pending background work (e.g., extent-index rebuilds) that may have been scheduled against the deleted directory. The IRIS console may log alerts for such operations post-delete; these are informational and do not indicate tool failure.
iris_database_list -- List databases
Input:
Output:
The size, maxSize, and expansionSize fields (all in MB) are populated
from SYS.Database (runtime state) rather than Config.Databases (static
configuration), since the latter does not carry those properties. Unmounted
or inaccessible databases fall back to 0 without raising an error.
iris_mapping_manage -- Create a global mapping
Input:
Output:
Subscript-level (SLM) mappings. Supply subscript to map a single
subscript node or range, leaving the base global mapping untouched. The
subscript is appended to name to form the mapped global, and the returned
name echoes that full node:
→ creates %SYS("HealthShare") -> HSSYS and returns "name": "%SYS(\"HealthShare\")";
the base %SYS mapping keeps its default. subscript accepts a single node
(("HealthShare")) or a range ((1):(100)) and is validated server-side.
Delete a subscript node the same way — pass the same subscript so only that
node is removed.
⚠️ %-prefixed system globals. Creating a base mapping (no
subscript) for a %-prefixed global such as %SYS is refused unless
force: true is passed, because remapping a base %-global silently shadows
its system default and can corrupt system-config access. To map a node under
a system global, pass a subscript (no force needed). Pass force: true
only to deliberately remap the base global itself.
iris_mapping_list -- List mappings
Input:
Output:
iris_user_manage -- Create a user
Input:
Output:
iris_user_get -- Get user details
Input (single user):
Output (single user):
Note: Single-user lookups echo the name argument back in the
response (Security.Users.Get in IRIS uses name as a lookup key
and does not populate it in the returned property array).
Input (list mode): omit name:
Output (list mode):
Note: The IRIS Security.Users:List ROWSPEC only exposes
Name, Enabled, Roles, LastLoginTime, Flags. List mode backfills
fullName, namespace, comment, expirationDate, and
changePasswordOnNextLogin via per-row Security.Users.Get() so
responses carry the full set the schema advertises.
iris_user_roles -- Add role to user
Input:
Output:
iris_user_password -- Change or validate password
Change password (basic):
Change password with force-change-on-next-login flag:
The optional changePasswordOnNextLogin boolean (default: leave existing flag unchanged) sets the Security.Users.ChangePassword flag in the same Security.Users.Modify() call as the password change. When true, IRIS will require the user to set a new password on their next login.
Change password output:
Validate password:
Validate output (includes active password policy):
The policy block reflects the active IRIS system password policy (Security.System.PasswordPattern). minLength is extracted from the leading quantifier of the pattern string. When no policy is configured, pattern is null and a comment field explains the absence.
Note: When Security.Users.Modify() fails (policy violation,
missing user, permission error, etc.), the underlying IRIS error
text is propagated via the Details: suffix of the tool's error
response. Examples: User NonExistent does not exist,
Password does not meet complexity requirements. The password
value itself is never embedded in IRIS error text for this path.
iris_permission_check -- Check permission
Input:
Output (target holds %All super-role — short-circuit path):
Output (regular path — explicit resource:permission pair match):
Note: The %All role is special-cased by the IRIS security
subsystem — Security.Roles.Get("%All", .tProps) returns empty
Resources even though the role grants everything. The handler
short-circuits to granted: true with grantedPermission: "RWU"
and emits an extra reason field when the target IS the %All
role OR when a user target's role list contains %All. The
reason field is omitted on the regular path.
iris_role_manage -- Create a role
Input:
Output:
iris_role_list -- List roles
Input:
Output:
Note: resources is a comma-separated list of
resource:permission pairs (e.g., %DB_USER:RW,%Ens_Code:R).
The %All super-role always returns resources: "" because
IRIS special-cases it — its grant coverage is not stored as
explicit pairs. Use iris_permission_check to test effective
permissions for a %All-holder.
iris_resource_manage -- Create a resource
Input:
Output:
iris_resource_list -- List resources
Input:
Output:
iris_webapp_manage -- Create a web application
Input:
Output:
iris_webapp_get -- Get web application
Input:
Output:
iris_webapp_list -- List web applications
Input:
Output:
iris_ssl_manage -- Create SSL config
⚠️ Breaking (pre-release): the protocols bitmask was removed
in favor of separate tlsMinVersion and tlsMaxVersion integer
fields, which reflect the real IRIS properties
(Security.SSLConfigs.TLSMinVersion / TLSMaxVersion). The
deprecated Protocols property it replaced was never actually
wired up through the handler, so removing it is a clean break
with no data-loss risk. Clients that wrote protocols: 24 now
write tlsMinVersion: 8, tlsMaxVersion: 16 (or
tlsMinVersion: 16, tlsMaxVersion: 32 for TLS 1.2 through TLS 1.3
explicitly). See Story 11.2 in _bmad-output. The TypeScript Zod
schema now uses these same field names (tlsMinVersion /
tlsMaxVersion) per Story 11.4 — writes are validated client-side
and passed through verbatim on the wire.
TLS version value mapping (IRIS
Security.Datatype.TLSVersion VALUELIST):
2 = SSLv3, 4 = TLS 1.0, 8 = TLS 1.1, 16 = TLS 1.2,
32 = TLS 1.3.
Input:
Output:
iris_ssl_list -- List SSL configurations
Input:
Output:
⚠️ Breaking (pre-release): protocols was replaced by
tlsMinVersion + tlsMaxVersion — see the iris_ssl_manage
note above for the TLS version value mapping.
iris_oauth_manage -- Create an OAuth2 server definition
Input:
supportedScopes and customizationRoles are required by IRIS for a server definition; customizationNamespace defaults to the request namespace when omitted. The issuer URL is parsed into the server's endpoint (host/port/prefix/SSL).
Output:
iris_oauth_manage -- OIDC discovery
Input:
Output (captured live against IRIS 2026.1):
Discovery requires an outbound TLS connection to the issuer, which needs a configured SSL/TLS client configuration on the IRIS instance — pass its name as sslConfiguration for https issuers (inspect with iris_ssl_list, create with iris_ssl_manage). Omitting it on an https issuer returns a validation error naming this prerequisite. A successful discover saves a server definition keyed by the exact issuer URL; that URL is the serverName a later client registration references.
iris_oauth_list -- List OAuth2 configurations
Input:
Output: (a configured server; empty arrays when none exist)
Namespace Scoping
Security note: Most admin tools operate in the %SYS namespace on the IRIS server, regardless of the configured default namespace. This is because IRIS security and configuration classes (Config.*, Security.*) only exist in %SYS.
The following tools do not accept a user-specified namespace parameter (they always execute in %SYS):
- All namespace, database, mapping, user, role, resource (security-resource actions), permission, SSL, OAuth, service, LDAP, X.509, and audit tools
Exception — SQL privileges: iris_resource_manage's grant / revoke / listPrivileges actions execute in the target namespace (the optional namespace? parameter, defaulting to the configured default), because SQL object privileges are namespace-scoped.
The iris_webapp_list tool optionally accepts a namespace parameter to filter web applications by namespace.
The iris_webapp_manage tool accepts a namespace parameter to set the target namespace for the web application being created/modified.
Error Handling
Common Errors
Error Response Format
Passwords are never included in error messages or responses (NFR6 security requirement).
Back to IRIS MCP Server Suite