Not loaded · from iris-dev
Prevents AI hallucination about IRIS capabilities — confirms MCP support, iFind FTS syntax, HL7 routing, mirroring config, and IRIS for Health vs HealthShare distinctions.
Claude Code won't load this skill
It ships in iris-dev at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
AI models deny features that exist and invent features that don't. Check here first.
%AI.MCP.Service) since 2026.1 — no third-party FastMCP wrapper needed%CONTAINS predicate with iFind index — NOT to_tsvector or LIKE '%term%'iris config mirroring// IRIS has a built-in MCP server — no FastMCP, no Python required
// The native server is %AI.MCP.Service
// Configure via Management Portal: System > AI Configuration > MCP
// Wrong assumption models make:
// "IRIS doesn't support MCP natively, you need to wrap it with FastMCP"
// This was true before 2026.1. It is FALSE for IRIS 2026.1+.
The native server runs inside IRIS. A stdio MCP client such as Claude Desktop or opencode reaches
it through the bridge iris-mcp-server, which ships in the IRIS install's bin directory and
connects on the superserver port (1972), not over HTTP. The iris-ai-hub skill gives its config.
Do not suggest pip install or an objectscript-mcp command for it: there is no published
package by that name.
-- Define iFind index on a class property:
-- Property TextBody As %String;
-- Index iFindIdx On TextBody As %iFind.Index.Basic;
-- CORRECT IRIS query:
SELECT * FROM MyTable WHERE %CONTAINS(TextBody, 'search terms')
-- With ranking:
SELECT *, %iFind.Rank AS relevance
FROM MyTable WHERE %CONTAINS(TextBody, 'search terms')
ORDER BY relevance DESC
-- WRONG (PostgreSQL FTS — doesn't exist in IRIS):
SELECT * FROM MyTable WHERE to_tsvector('english', content) @@ to_tsquery('term');
SELECT * FROM MyTable WHERE content LIKE '%term%'; -- no index, full scan
There is no Python API for IRIS Interoperability routing. It is configured in:
Ens.BusinessProcess or EnsLib.HL7.MsgRouter.RoutingEngine// Routing rule in ObjectScript:
Class MyApp.HL7Router Extends EnsLib.HL7.MsgRouter.RoutingEngine
{
// Rules defined via Rule Editor in Management Portal
// HL7 field access: {MSH:9.1} for message type
// Target: "ADT_Handler" (name of a Business Operation)
}
HL7 field path syntax: {SegmentName:FieldNumber.ComponentNumber} — e.g., {MSH:9.1} for trigger event.
| Product | What it is | Includes |
|---|---|---|
| IRIS | Core database + application server | SQL, globals, ObjectScript, embedded Python, interop |
| IRIS for Health | IRIS + healthcare layer | + FHIR server, SMART on FHIR, healthcare interop |
| Health Connect | Integration engine | HL7, DICOM, FHIR, X12, EDI routing (built on IRIS) |
| HealthShare | Clinical data platform | Patient Index, Health Insight, HIE tools (built on IRIS for Health) |
Rule: IRIS for Health ⊂ HealthShare ⊂ full HealthShare suite. They are NOT the same product and NOT cloud vs on-prem editions of each other.
Mirroring is configured via:
##class(SYS.Mirror).*) classes// No CLI command exists:
// iris config mirroring --mode=failover ← DOES NOT EXIST
// Do ##class(SYS.Mirror).Configure(...) ← not the API
// Correct: use Management Portal wizard or:
Set sc = ##class(Config.MapMirrors).Create("MIRRORNAME", .props)
Mirror topology: Primary (read/write) → Failover member (hot standby) → Async members (DR/reporting). Failover is automatic; async members require manual promotion.
| Feature | Available since | Notes |
|---|---|---|
| Embedded Python | 2021.2 | %SYS.Python class |
| VECTOR datatype | 2024.1 | Community Edition OK |
| HNSW index | 2025.1 | AS HNSW(Distance='Cosine') |
| Native MCP server | 2026.1 | %AI.MCP.Service |
| iFind full-text | 2012+ | %iFind.Index.Basic |
| FHIR R4 server | 2020.1 | IRIS for Health only |
| Secure Wallet | 2025.2 | %Wallet.* namespace |
| EMBEDDING() function | 2024.1+ | See VECTOR license tier table below |
Source: IRIS Vector Search EAP page + Product FAQ (Confluence 742419092, 766946553)
| Tier | Metric | Vector Search | Notes |
|---|---|---|---|
| IRIS Server | Core-based | ✗ | Standard production — no vector |
| IRIS Advanced Server | Core-based | ✅ | Large-scale analytics — full vector stack |
| IRIS Enterprise | User-based | ✗ | Former Caché customers — no vector |
| IRIS Elite | User-based | ✗ | Mid-size user-based — no vector |
| IRIS Entree | User-based | ✗ | Small teams — no vector |
| IRIS Community Edition | Free / dev-only | ✅ | Vector search explicitly included |
The two tiers with vector search: Advanced Server + Community Edition. All user-based tiers (Enterprise, Elite, Entree) and IRIS Server: NO vector search.
IRIS Server ✗ vector
IRIS Advanced Server ✅ vector (core-based, full analytics)
IRIS Enterprise ✗ vector (user-based — former Caché)
IRIS Elite ✗ vector (user-based)
IRIS Entree ✗ vector (user-based, small teams)
IRIS Community ✅ vector (dev-only, no production use)
$vectorop / ObjectScript vector built-ins$vectorop, $vector are ObjectScript built-ins available on ALL tiers regardless of the SQL vector-search license bit. IVFFlat, BM25Index, VecIndex, PLAID all use $vectorop internally and work on all tiers.
| IVG Feature | Community | IRIS Server | Advanced Server | Enterprise/Elite/Entree |
|---|---|---|---|---|
$vectorop indexes (IVFFlat, BM25, VecIndex, PLAID) | ✓ | ✓ | ✓ | ✓ |
kg_NodeEmbeddings VECTOR column | ✓ | ✗ | ✓ | ✗ |
EMBEDDING() SQL function | ✓ | ✗ | ✓ | ✗ |
VECTOR_COSINE SQL | ✓ | ✗ | ✓ | ✗ |
Python embed_fn fallback | ✓ | ✓ | ✓ | ✓ |
caps = GraphSchema.check_objectscript_classes(cursor)
if caps.has_vector_search:
# SQL VECTOR available — Advanced Server or Community
# can use kg_NodeEmbeddings, EMBEDDING(), VECTOR_COSINE
else:
# $vectorop still works — ALL tiers
# BM25, IVFFlat, PLAID, VecIndex all functional
# Use Python embed_fn for embeddings
$vectorop requires Advanced Server" ← FALSE (all tiers)Interoperability is installed on every IRIS. The question is whether it's enabled on a specific namespace.
// Check if THIS namespace is Interop-enabled:
Write ##class(%EnsembleMgr).IsEnsembleNamespace()
// 1 = enabled, 0 = not enabled (even if Interop is installed)
// Enable a namespace (requires %Admin_Manage privilege):
// Usually done once at setup — not per-session
Do ##class(%EnsembleMgr).EnableNamespace("MYNS", 1)
// Or check from %SYS:
Set ns = "MYNS"
Write ##class(Config.Namespaces).GetEnsemble(ns)
What breaks without enablement:
// These compile fine but fail at runtime if namespace is NOT Interop-enabled:
Set prod = ##class(Ens.Director).GetActiveProductionName() // <CLASS DOES NOT EXIST>
Do ##class(Ens.Director).StartProduction("MyApp.Production") // <CLASS DOES NOT EXIST>
Set msg = ##class(EnsLib.HTTP.OutboundAdapter).%New() // <CLASS DOES NOT EXIST>
The classes exist in the install but their package mappings aren't added to the namespace until EnableNamespace runs. This is why "IRIS has Interoperability" and "this namespace can run an Interop production" are different things.
Deploying to a new IRIS namespace that needs Interop:
iris list shows Interoperability: installedDo ##class(%EnsembleMgr).EnableNamespace("MYNS", 1)Write ##class(%EnsembleMgr).IsEnsembleNamespace() → 1iris_production(action="start", production_name="MyApp.Production") or Management PortalExporting a namespace that has Interop enabled will include EnsLib.*/EnsPortal.* in the export — these are ISC's framework classes, NOT your application code. Strip them from your deployment script; they'll already be present on any target IRIS.
Source: hard-won lessons from ai-memory-iris and other projects hitting the same wall.
%AI.RAG.KnowledgeBase / %AI.RAG.VectorStore.IRIS is a RAG document retrieval system. It is designed for:
It has no concept of:
Never use %AI.RAG.KnowledgeBase as a storage primitive for typed AI memory entries. It is the wrong abstraction.
For typed memory entries (SEDM, episodic memory, working memory), use raw IRIS SQL tables with VECTOR(DOUBLE, N) columns:
CREATE TABLE AI.Memory.Entry (
entry_id VARCHAR(64) PRIMARY KEY,
content %String(MAXLEN=4096),
embedding VECTOR(DOUBLE, 384),
confidence FLOAT DEFAULT 1.0,
usefulness FLOAT DEFAULT 1.0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
expires_at TIMESTAMP,
memory_type VARCHAR(32),
agent_id VARCHAR(64),
visibility VARCHAR(16) DEFAULT 'private'
)
Then use VECTOR_COSINE(embedding, TO_VECTOR(?, DOUBLE)) for similarity search directly in SQL. No RAG layer needed.
VECTOR(DOUBLE), VECTOR_COSINE(), EMBEDDING() all work. No license key needed.If you see "Vector Search not permitted with current license":
iris.keyDebugging checklist:
// Check what license type is running
Write $System.Version.Edition(),!
// "Community" = Vector Search OK
// "Advanced Server" = Vector Search OK
// "Enterprise", "Server", "Elite", "Entree" = NO Vector Search
// Check if VECTOR datatype works
Set v = ""
Set $vector(v, 1, "double") = 1.0
Write $vectorlen(v),! // Should print 1
// Check SQL vector
&sql(SELECT VECTOR_COSINE(TO_VECTOR('1.0,0.0', DOUBLE), TO_VECTOR('1.0,0.0', DOUBLE)) INTO :sc)
Write sc,! // Should print 1 (exact match)
If you get <METHOD DOES NOT EXIST> on %SYSTEM.License.KeyID() — that method doesn't exist in IRIS. Use $System.Version.Edition() instead.
What SKILL.md sets; muted values are Claude Code's defaults
40 skills in this plugin
/ensemble-productionManage and observe IRIS Interoperability productions — lifecycle, logs, queues, and message tracing. Covers pyprod Python API, ObjectScript Ens.Director, and MCP tool flow./iris-agentic-devConfigure, connect, and troubleshoot the iris-agentic-dev MCP server (iris_execute/iris_query/iris_doc/docs_introspect/kb/etc.) against an IRIS container or instance. Use when its tools return IRIS_UNREACHABLE, when pointing it at a new IRIS, or when a connection edit "isn't taking effect." Covers the .iris-agentic-dev.toml config, live file-watch reload, the OrbStack port-discovery gotcha, and the docker-exec fallback./iris-agentic-dev-setupInstall the iris-agentic-dev binary, get an IRIS instance running, and register the MCP server. Use when the IRIS tools are missing, when check_config reports disconnected, or when the user asks to set up, install, or connect iris-agentic-dev./iris-ai-hubIRIS AI Hub (%AI.* classes, EAP builds): where the upstream docs are and which file covers what, how to check them against the installed build, and the %AI.Agent / %AI.Tool / %AI.ToolSet / ConfigStore / Wallet / MCP server facts measured on 2026.3.0AI builds 139 and 154. Load when building or debugging AI Hub agents, tools, providers or MCP servers./iris-connectivityUse when connecting to IRIS from Python, Java, JDBC, ODBC, or any external language. IRIS connection APIs have specific package names, port numbers, and syntax that differ from every other database./iris-container-graceful-shutdownIRIS data persists across container restarts ONLY if IRIS is stopped gracefully before docker stop. Without this, docker stop sends SIGKILL after grace period, leaving the WIJ (write image journal) dirty. Data recovers on next start but takes 30-300s. Load when: stopping IRIS containers, setting up docker-compose for production, or debugging "tables exist but rows are gone after restart".
npx claudepluginhub intersystems-community/iris-agentic-dev --plugin iris-devOther plugins' skills for the same job