@iris-mcp/admin
v1.1.0
Published
IRIS Administration MCP Server
Maintainers
Readme
@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
npm install -g @iris-mcp/adminOr run directly without installing:
npx -y @iris-mcp/admin@1Configuration
All servers use the same environment variables:
| Variable | Default | Description |
|----------|---------|-------------|
| IRIS_HOST | localhost | IRIS hostname or IP |
| IRIS_PORT | 52773 | IRIS 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) | IRIS password |
| IRIS_NAMESPACE | USER | Default IRIS namespace |
| IRIS_HTTPS | false | Use HTTPS instead of HTTP |
| IRIS_ACCEPT_LANGUAGE | en-US,en;q=0.9 | Optional. Accept-Language header sent on every request, pinning %Status error text to a predictable language instead of whatever locale an unspecified header resolves to. IRIS also chooses the message language per request, by matching this header against the languages the instance has, so a localized prefix can still appear when the header names one — existing prefix-stripping is unaffected. Details: suite README. |
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-postureprompt callsiris_user_get,iris_role_list,iris_service_manage,iris_ssl_list, andiris_audit_manage— undercore,iris_service_manage/iris_ssl_list/iris_audit_manageare hidden (the prompt cannot complete steps 4-6); underdeveloper, ALL FIVE tools it calls are hidden (the prompt cannot run at all). Theprovision-project-environmentprompt callsiris_user_manage, which is hidden underdeveloper(step 4 fails). Both prompts needfull, orIRIS_TOOLS_ENABLEnaming 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)
{
"mcpServers": {
"iris-admin-mcp": {
"command": "npx",
"args": ["-y", "@iris-mcp/admin@1"],
"env": {
"IRIS_HOST": "localhost",
"IRIS_PORT": "52773",
"IRIS_USERNAME": "_SYSTEM",
"IRIS_PASSWORD": "SYS",
"IRIS_NAMESPACE": "USER"
}
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"iris-admin-mcp": {
"command": "npx",
"args": ["-y", "@iris-mcp/admin@1"],
"env": {
"IRIS_HOST": "localhost",
"IRIS_PORT": "52773",
"IRIS_USERNAME": "_SYSTEM",
"IRIS_PASSWORD": "SYS",
"IRIS_NAMESPACE": "USER"
}
}
}
}Cursor
{
"iris-admin-mcp": {
"command": "npx",
"args": ["-y", "@iris-mcp/admin@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.
Tool Reference
Framework Tools
Provided by the shared framework and available on every suite server (Epic 19).
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_server_profiles | Call this first. Reports the configured server-profile roster (non-secret connection metadata — password is never included) and the effective governance policy (which actions are enabled/disabled). | profile?, allProfiles? | readOnly, idempotent |
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
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_namespace_manage | Create, modify, or delete a namespace | action, name, codeDatabase?, dataDatabase?, library?, tempGlobals? | destructive |
| iris_namespace_list | List all namespaces with DB associations | cursor? | readOnly, idempotent |
| iris_database_manage | Create, modify, or delete a database | action, name, directory?, size?, maxSize?, expansionSize?, readOnly?, resource? | destructive |
| iris_database_list | List all databases with size and mount status | cursor? | readOnly, idempotent |
Namespace Mapping Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_mapping_manage | Create or delete global/routine/package mappings | action, type, namespace, name, database?, collation?, lockDatabase?, subscript?, force? | destructive |
| iris_mapping_list | List mappings for a namespace by type | namespace, type, cursor? | readOnly, idempotent |
User & Security Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_user_manage | Create, modify, or delete a user account | action, name, password?, fullName?, roles?, enabled?, namespace? | destructive |
| iris_user_get | Get a user or list all users | name?, cursor? | readOnly, idempotent |
| iris_user_roles | Add or remove a role from a user | action, username, role | destructive |
| iris_user_password | Change or validate a password | action, username?, password, changePasswordOnNextLogin? | destructive |
| iris_permission_check | Check user/role permissions on a resource | target, resource, permission | readOnly, idempotent |
Role & Resource Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_role_manage | Create, modify, or delete a security role | action, name, description?, resources?, grantedRoles? | destructive |
| iris_role_list | List all security roles | cursor? | readOnly, idempotent |
| iris_resource_manage | Create/modify/delete a security resource, or grant/revoke/list SQL object privileges | action (create, modify, delete, grant, revoke, listPrivileges), name?, description?, publicPermission?, target?, privilege?, grantee?, namespace?, maxRows?, cursor? (both listPrivileges-only) | destructive |
| iris_resource_list | List all security resources | cursor? | readOnly, idempotent |
Web Application Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_webapp_manage | Create, modify, or delete a web application | action, name, namespace?, dispatchClass?, enabled?, authEnabled? | destructive |
| iris_webapp_get | Get a web application by path | name | readOnly, idempotent |
| iris_webapp_list | List all web applications | namespace?, cursor? | readOnly, idempotent |
SSL/TLS Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_ssl_manage | Create, modify, or delete SSL/TLS config | action, name, certFile?, keyFile?, caFile?, tlsMinVersion?, tlsMaxVersion?, verifyPeer?, type? | destructive |
| iris_ssl_list | List all SSL/TLS configurations | cursor? | readOnly, idempotent |
OAuth2 Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_oauth_manage | Create/delete OAuth2 servers/clients, OIDC discovery | action, entity?, issuerURL?, sslConfiguration?, name?, serverName?, clientName?, supportedScopes?, customizationNamespace?, customizationRoles? | destructive |
| iris_oauth_list | List all OAuth2 server definitions and clients | cursor? | readOnly, idempotent |
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 forhttpsissuer URLs (IRIS rejects the connection with ERROR #6159 otherwise). Inspect existing configurations withiris_ssl_list; create one withiris_ssl_manage(action: "create").discoversaves anOAuth2.ServerDefinitionkeyed 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:serverNameis 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).
| Action | Description | Key Parameters | Mutates |
|--------|-------------|----------------|---------|
| grant | Grant one or more SQL privileges on a schema/table/column to a user or role | target (schema, schema.table, or schema.table(col1,col2)), privilege (e.g. SELECT, INSERT,UPDATE, %ALTER), grantee, namespace? | write (default-disabled under governance) |
| revoke | Revoke SQL privileges from a user or role | target, privilege, grantee, namespace? | write (default-disabled under governance) |
| listPrivileges | List the current SQL grants held by a user or role | grantee, target? (omit for object-level listing; pass schema.table for a column-level listing; a bare schema or a schema. / .table fragment is rejected with a validation message), namespace?, system? (default false; true includes system tables), maxRows? (default 100, max 1000), cursor? | read (enabled by default) |
Governance:
grantandrevokeare classifiedwrite(denied by default under anIRIS_GOVERNANCEpolicy until explicitly allowed);listPrivilegesis aread(enabled by default). SQL privileges are namespace-scoped.
listPrivilegesbounding (Story 35.4): a grantee holding%All(e.g._SYSTEM) is granted every SQL privilege on every object via a derivedSuperUsercross-product — live-measured at 15,341 rows / 2,900,478 characters for_SYSTEM, which overruns the client transport limit.listPrivilegesnow omits those derived (GRANTED_VIA=SuperUser) rows automatically, adding areasonstring and asuperUserPrivilegesOmittedcount to the response; any REAL non-derived grant is still listed, and the omitted count stays exact even whenmaxRowstruncates the real rows. The omission is decided per row, from theGRANTED_VIAvalue 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 foundSuperUserrows emitted if and only if the principal effectively holds%All; powerful non-%Allaccounts such asAdminreturn 0 derived rows and are therefore untouched.)
maxRowsbounds 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 carriesrowsCapped: true. Pagination is opt-in: passmaxRowsorcursorand the response is paged 50 rows at a time (the suite-wide default page size) within themaxRowsceiling; pass neither and every row the server returned comes back unpaged, exactly as before Story 35.4. Resend the samemaxRowsalongside eachcursor— every page re-runs the server query and the cursor offset is positional. The cursor never crosses themaxRowsceiling andmaxRowsis 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%Allsees the exact pre-35.4 response shape.
Service Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_service_manage | List/inspect/toggle IRIS services and their authentication settings (Security.Services in %SYS) | action (list, get, enable, disable, set), name?, settings?, namespace?, cursor? | destructive |
LDAP Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_ldap_manage | List/inspect/create/modify/delete/validity-test IRIS LDAP configurations for delegated authentication (Security.LDAPConfigs in %SYS) | action (list, get, create, modify, delete, test), name?, settings?, cursor? | destructive |
X.509 Certificate Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_x509_manage | List/inspect/import/delete IRIS X.509 certificate credentials (%SYS.X509Credentials in %SYS) | action (list, get, import, delete), alias?, certificate?, privateKey?, privateKeyPassword?, namespace?, cursor? | destructive |
Auditing Tools
| Tool | Description | Key Parameters | Annotations |
|------|-------------|----------------|-------------|
| iris_audit_manage | Manage auditing configuration and the audit log: status, enable/disable, per-event configuration, view/export/purge the log (%SYS.Audit* in %SYS) | action (status, enable, disable, configureEvent, view, purge, export), source?, type?, event?, filter/confirm params | destructive |
Note:
iris_audit_manageconfigures auditing and manages the audit log. It is distinct from@iris-mcp/ops's read-onlyiris_audit_events, which only queries audit events.
Governance defaults (service / LDAP / X.509 / audit): the write actions of these tools are classified
writeand are disabled by default under anIRIS_GOVERNANCEpolicy until explicitly allowed —iris_service_manage:enable/:disable/:set,iris_ldap_manage:create/:modify/:delete,iris_x509_manage:import/:delete, andiris_audit_manage:enable/:disable/:configureEvent/:purge/:export. Their read actions are enabled by default —:list/:get/:test/:status/:view. (iris_resource_manage:grant/:revokefollow the same rule; see the SQL-privilege governance note above.)
Human confirmation (Story 43.3):
iris_audit_manageactionpurge(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'sconfirm: truecontract, and declining ends the call withCONFIRMATION_DECLINEDand changes nothing. A Claude CodeElicitationhook 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.
| Prompt | Description |
|---|---|
| provision-project-environment | Provisions a new project environment (two databases, a namespace, a user, a web application), verifying each step before the next, with rollback notes. |
| audit-security-posture | Audits users, roles, service authentication settings, SSL/TLS configs, and instance auditing status; reports default passwords, %All holders, and insecure services. |
Also installable as Agent Skills.
Tool Examples
Input:
{
"action": "create",
"name": "MYAPP",
"codeDatabase": "MYAPP-CODE",
"dataDatabase": "MYAPP-DATA"
}Output:
{
"action": "create",
"name": "MYAPP",
"status": "created"
}Input:
{}Output:
{
"namespaces": [
{ "name": "USER", "globals": "USER", "routines": "USER", "library": "IRISLIB", "tempGlobals": "IRISTEMP" },
{ "name": "%SYS", "globals": "IRISSYS", "routines": "IRISSYS", "library": "IRISLIB", "tempGlobals": "IRISTEMP" }
],
"count": 2
}Input (create):
{
"action": "create",
"name": "MYAPP-DATA",
"directory": "C:\\InterSystems\\IRIS\\mgr\\myapp-data",
"size": 100,
"maxSize": 1000,
"expansionSize": 50
}Input (modify):
{
"action": "modify",
"name": "MYAPP-DATA",
"maxSize": 2000,
"expansionSize": 100
}Output:
{
"action": "created",
"name": "MYAPP-DATA"
}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 viaConfig.Databases.createusesSYS.Database.CreateDatabase()to create the physical file, thenConfig.Databases.Create()for CPF registration.modifyroutes runtime props throughSYS.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.
Input:
{}Output:
{
"databases": [
{ "name": "USER", "directory": "C:\\InterSystems\\IRIS\\mgr\\user", "size": 11, "maxSize": 0, "expansionSize": 0, "mountAtStartup": true }
],
"count": 1
}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.
Input:
{
"action": "create",
"type": "global",
"namespace": "USER",
"name": "MyGlobal",
"database": "MYAPP-DATA"
}Output:
{
"action": "created",
"type": "global",
"namespace": "USER",
"name": "MyGlobal"
}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:
{
"action": "create", "type": "global", "namespace": "FHIRBRIDGE",
"name": "%SYS", "subscript": "(\"HealthShare\")", "database": "HSSYS"
}→ 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 (nosubscript) for a%-prefixed global such as%SYSis refused unlessforce: trueis 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 asubscript(noforceneeded). Passforce: trueonly to deliberately remap the base global itself.
Input:
{
"namespace": "USER",
"type": "global"
}Output:
{
"mappings": [
{ "name": "MyGlobal", "type": "global", "namespace": "USER", "database": "MYAPP-DATA" }
],
"count": 1
}Input:
{
"action": "create",
"name": "AppUser",
"password": "SecureP@ss123",
"fullName": "Application User",
"roles": "%Developer"
}Output:
{
"action": "create",
"name": "AppUser",
"status": "created"
}Input (single user):
{
"name": "_SYSTEM"
}Output (single user):
{
"name": "_SYSTEM",
"fullName": "SQL System Manager",
"enabled": true,
"namespace": "",
"roles": "%All",
"comment": "",
"expirationDate": "",
"changePasswordOnNextLogin": false
}Note: Single-user lookups echo the
nameargument back in the response (Security.Users.Getin IRIS usesnameas a lookup key and does not populate it in the returned property array).
Input (list mode): omit name:
{}Output (list mode):
{
"users": [
{
"name": "Admin",
"enabled": true,
"fullName": "Administrator",
"namespace": "",
"roles": "%Developer,%Manager",
"comment": "Built-in admin",
"expirationDate": "",
"changePasswordOnNextLogin": false
}
],
"count": 1
}Note: The IRIS
Security.Users:ListROWSPEC only exposesName, Enabled, Roles, LastLoginTime, Flags. List mode backfillsfullName,namespace,comment,expirationDate, andchangePasswordOnNextLoginvia per-rowSecurity.Users.Get()so responses carry the full set the schema advertises.
Input:
{
"action": "add",
"username": "AppUser",
"role": "%Operator"
}Output:
{
"username": "AppUser",
"roles": "%Developer,%Operator"
}Change password (basic):
{
"action": "change",
"username": "AppUser",
"password": "NewSecureP@ss456"
}Change password with force-change-on-next-login flag:
{
"action": "change",
"username": "AppUser",
"password": "NewSecureP@ss456",
"changePasswordOnNextLogin": true
}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:
{
"action": "changed",
"username": "AppUser",
"success": true
}Validate password:
{
"action": "validate",
"password": "candidate123"
}Validate output (includes active password policy):
{
"action": "validate",
"valid": false,
"message": "Password does not match length or pattern requirements",
"policy": {
"minLength": 3,
"pattern": "3.128ANP"
}
}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 theDetails: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.
Input:
{
"target": "_SYSTEM",
"resource": "%DB_USER",
"permission": "RW"
}Output (target holds %All super-role — short-circuit path):
{
"target": "_SYSTEM",
"targetType": "user",
"resource": "%DB_USER",
"permission": "RW",
"granted": true,
"grantedPermission": "RWU",
"reason": "target holds %All super-role"
}Output (regular path — explicit resource:permission pair match):
{
"target": "Admin",
"targetType": "user",
"resource": "%DB_USER",
"permission": "RW",
"granted": true,
"grantedPermission": "RW"
}Note: The
%Allrole is special-cased by the IRIS security subsystem —Security.Roles.Get("%All", .tProps)returns emptyResourceseven though the role grants everything. The handler short-circuits togranted: truewithgrantedPermission: "RWU"and emits an extrareasonfield when the target IS the%Allrole OR when a user target's role list contains%All. Thereasonfield is omitted on the regular path.
Input:
{
"action": "create",
"name": "MyAppRole",
"description": "Custom role for MyApp",
"resources": "%DB_USER:RW,%Development:U"
}Output:
{
"action": "create",
"name": "MyAppRole",
"status": "created"
}Input:
{}Output:
{
"roles": [
{ "name": "%All", "description": "The Super-User Role", "resources": "", "grantedRoles": "" },
{ "name": "%Developer", "description": "A Role owned by all Developers", "resources": "%DB_USER:RW,%Development:U,%Service_SQL:U", "grantedRoles": "" },
{ "name": "%EnsRole_Administrator", "description": "Interoperability Administrator", "resources": "%Ens_Code:R,%Ens_Jobs:W,%Ens_ProductionConfig:W", "grantedRoles": "%DB_ENSLIB,%EnsRole_Operator" }
],
"count": 3
}Note:
resourcesis a comma-separated list ofresource:permissionpairs (e.g.,%DB_USER:RW,%Ens_Code:R). The%Allsuper-role always returnsresources: ""because IRIS special-cases it — its grant coverage is not stored as explicit pairs. Useiris_permission_checkto test effective permissions for a%All-holder.
Input:
{
"action": "create",
"name": "MyAppResource",
"description": "Access control for MyApp",
"publicPermission": ""
}Output:
{
"action": "create",
"name": "MyAppResource",
"status": "created"
}Input:
{}Output:
{
"resources": [
{ "name": "%DB_USER", "description": "USER database resource", "publicPermission": "RW", "type": "database" }
],
"count": 1
}Input:
{
"action": "create",
"name": "/api/myapp",
"namespace": "USER",
"dispatchClass": "MyApp.REST.Dispatch",
"enabled": true
}Output:
{
"action": "create",
"name": "/api/myapp",
"status": "created"
}Input:
{
"name": "/csp/user"
}Output:
{
"name": "/csp/user",
"namespace": "USER",
"enabled": 1,
"dispatchClass": "",
"authEnabled": 32
}Input:
{
"namespace": "USER"
}Output:
{
"webapps": [
{ "name": "/csp/user", "namespace": "USER", "enabled": 1 },
{ "name": "/api/executemcp/v2", "namespace": "USER", "enabled": 1 }
],
"count": 2
}⚠️ Breaking (pre-release): the
protocolsbitmask was removed in favor of separatetlsMinVersionandtlsMaxVersioninteger fields, which reflect the real IRIS properties (Security.SSLConfigs.TLSMinVersion/TLSMaxVersion). The deprecatedProtocolsproperty it replaced was never actually wired up through the handler, so removing it is a clean break with no data-loss risk. Clients that wroteprotocols: 24now writetlsMinVersion: 8, tlsMaxVersion: 16(ortlsMinVersion: 16, tlsMaxVersion: 32for 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.TLSVersionVALUELIST):2 = SSLv3,4 = TLS 1.0,8 = TLS 1.1,16 = TLS 1.2,32 = TLS 1.3.
Input:
{
"action": "create",
"name": "MyTLS",
"tlsMinVersion": 16,
"tlsMaxVersion": 32,
"type": 0,
"verifyPeer": 1
}Output:
{
"action": "created",
"name": "MyTLS"
}Input:
{}Output:
{
"sslConfigs": [
{
"name": "BFC_SSL",
"description": "",
"certFile": "",
"keyFile": "",
"caFile": "",
"caPath": "",
"cipherList": "ALL:!aNULL:!eNULL:!EXP:!SSLv2",
"tlsMinVersion": 16,
"tlsMaxVersion": 32,
"verifyPeer": 0,
"verifyDepth": 9,
"type": 0,
"enabled": true
}
],
"count": 1
}⚠️ Breaking (pre-release):
protocolswas replaced bytlsMinVersion+tlsMaxVersion— see theiris_ssl_managenote above for the TLS version value mapping.
Input:
{
"action": "create",
"entity": "server",
"issuerURL": "https://auth.example.com/oauth2",
"supportedScopes": "openid profile email",
"customizationRoles": "%DB_IRISSYS"
}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:
{
"action": "created",
"entity": "server",
"issuerEndpoint": "https://auth.example.com/oauth2"
}Input:
{
"action": "discover",
"issuerURL": "https://accounts.google.com",
"sslConfiguration": "ISC.FeatureTracker.SSL.Config"
}Output (captured live against IRIS 2026.1):
{
"action": "discovered",
"issuerURL": "https://accounts.google.com",
"configuration": {
"issuerEndpoint": "https://accounts.google.com",
"authorizationEndpoint": "https://accounts.google.com/o/oauth2/v2/auth",
"tokenEndpoint": "https://oauth2.googleapis.com/token",
"userinfoEndpoint": "https://openidconnect.googleapis.com/v1/userinfo",
"revocationEndpoint": "https://oauth2.googleapis.com/revoke",
"jwksEndpoint": "https://www.googleapis.com/oauth2/v3/certs"
}
}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
sslConfigurationforhttpsissuers (inspect withiris_ssl_list, create withiris_ssl_manage). Omitting it on anhttpsissuer returns a validation error naming this prerequisite. A successful discover saves a server definition keyed by the exact issuer URL; that URL is theserverNamea later client registration references.
Input:
{}Output: (a configured server; empty arrays when none exist)
{
"servers": [
{
"id": "singleton",
"issuerEndpoint": "https://auth.example.com/oauth2",
"description": "Example authorization server",
"supportedScopes": ["email", "openid", "profile"],
"accessTokenInterval": 3600,
"authorizationCodeInterval": 60,
"refreshTokenInterval": 86400,
"signingAlgorithm": "RS256"
}
],
"clients": [],
"serverCount": 1,
"clientCount": 0
}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 | Cause | Resolution |
|-------|-------|------------|
| IRIS connection refused | IRIS web server not running or wrong host/port | Verify IRIS_HOST and IRIS_PORT settings |
| 401 Unauthorized | Invalid credentials or insufficient privileges | Check credentials; admin operations require %Admin_Manage, %Admin_Security, or %Admin_Operate resources |
| Namespace already exists | Attempting to create a namespace that exists | Use iris_namespace_list to check existing namespaces |
| Database directory not found | Invalid directory path for database creation | Ensure the directory path is valid and accessible to the IRIS instance |
| User does not exist | Referencing a non-existent user | Use iris_user_get without parameters to list all users |
| Role does not exist | Adding a non-existent role | Use iris_role_list to see available roles |
| Custom REST endpoint not found | Bootstrap has not completed | The server auto-bootstraps on first connection; save the web app via SMP if 404 persists |
Error Response Format
{
"content": [{ "type": "text", "text": "Error managing namespace 'MYAPP': <details>" }],
"isError": true
}Passwords are never included in error messages or responses (NFR6 security requirement).
