MCP Integration
AtomIQ exposes a built-in MCP (Model Context Protocol) server so AI coding assistants (Cursor, Claude Desktop, and other MCP clients) can read and modify workspace data programmatically. The MCP tools mirror the same REST API and event-bus actions the web UI uses, with no duplicate business logic. The MCP service name is atomiq.
For the REST API itself, see the interactive reference at /openapi on your running instance. If you reach AtomIQ through OL Hub, the reference does not fully work through the Hub's /atomiq/ path. Ask your administrator for AtomIQ's direct address.
Setup
- Start AtomIQ. Run the server (default port 8091). Override the port with
APP_PORTif needed. - Verify the endpoint. MCP is mounted at
/api/mcpon the same host and port as the REST API (for examplehttp://<atomiq-host>:8091/api/mcp, withlocalhostas the host when you run it on your own machine). On z/OS, IBM i, or behind a proxy, setOL_MCP_BASE_URLto the URL clients should use. Anywhere other than your own machine, put TLS in front of AtomIQ (for example a reverse proxy) and give clients thehttps://URL: the sign-in in step 4 sends your legacy host credentials. - Configure your MCP client. Add an HTTP/SSE MCP server pointing at that URL (use the
https://address for a remote server). For Cursor, add it to the user-levelmcp.jsonin your.cursorfolder, or to the project MCP settings:
{
"mcpServers": {
"atomiq": {
"url": "http://<atomiq-host>:8091/api/mcp"
}
}
}
-
Sign in. Connecting opens an OAuth sign-in page in your browser that checks your legacy host credentials. Choose OL AtomIQ (z/OS) or OL AtomIQ (AS/400) to sign in to the server and pick a workspace from your assistant afterwards (checked against the host in the application settings), or pick one workspace to sign in to it directly (checked against that workspace's host).
-
Authentication scope. The MCP endpoint is excluded from host-auth gating (
/api/mcp) and has its own sign-in above. WhenOL_HOST_AUTH=true, MCP remains reachable without a browser session, so protect network access accordingly in production. -
Mainframe tools. Tools such as
list-datasets,import-source, andimport-cics-transactionsuse workspace settings (RSE/JZOS URL, CICS CMCI URL, mainframe credentials). Configure these in the AtomIQ UI under workspace settings before calling them. -
AI-assisted tools.
identify-operations(modeai) andsuggest-operationsrequire an AI provider in workspace settings.
Smoke test. After connecting, call current-workspace to confirm the sign-in and see the selected workspace (if none is selected, call list-workspaces, then select-workspace). Then call query-workspace-app-data (no arguments) to confirm the server returns JSON workspace data, or graph-stats to see the workspace graph's size and apps before a graph walk.
Workspace context
Every tool works in the selected workspace of your MCP sign-in. Tools take no workspace argument. Choose, change, or create one without signing in again:
list-workspaces: every workspace on the server, marking the selected one and those of the other platform.select-workspace: switch by id or name. A workspace on a legacy host your sign-in has not used yet is checked once with your sign-in credentials. If that host rejects them it is not tried again in that sign-in (so your account is not locked out) and the current workspace stays selected. A workspace with no legacy host is selectable, but dataset and CICS tools will not work in it. A workspace whose only legacy endpoint is CICS, with no RSE and not running on z/OS, cannot be selected, because nothing can check your credentials before they reach that CICS host.create-workspace: create an empty workspace for your sign-in's platform (settings copied from the application settings) and select it. If the copied host rejects your sign-in credentials, the workspace is still created but left unselected. Sign in again choosing it rather than creating it again.current-workspace: which workspace is selected.
Credentials are for one platform: to work in an AS/400 workspace after signing in for z/OS, sign in again and choose AS/400. The selection belongs to the sign-in, so chats that share one sign-in switch together.
Common parameter patterns:
| Parameter pattern | Meaning |
|---|---|
resources | JSON array of {"appId","resourceId"} refs |
resourceNames + sourceAppId | Resolve resources by display name within a source app |
dependency / dependencies | JSON object or array matching the UI dependency shape (from, to, ...) |
See MCP Tools and Agent Workflows for the tool reference.
Connect AI assistants to AtomIQ's MCP server, sign in, and pick a workspace.