npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iris-mcp/admin

v1.1.0

Published

IRIS Administration MCP Server

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/admin

Or run directly without installing:

npx -y @iris-mcp/admin@1

Configuration

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-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)

{
  "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 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).

| 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: 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

| 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_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.

| 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 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.

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 (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.

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 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):

{
  "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: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.

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 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.

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 %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.

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: 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.

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 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:

{
  "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): protocols was replaced by tlsMinVersion + tlsMaxVersion — see the iris_ssl_manage note 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 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.

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).


Back to IRIS MCP Server Suite