MCP Server
OL Terminal includes an MCP server at /api/v1/mcp. External AI tools such as ChatGPT, Claude and Cursor connect to it as MCP clients to open and drive terminal sessions. It is separate from the in-app AI Chat, which has its own setting and is not affected by this switch. It needs an Enterprise license and is on by default.
Turning MCP on or off
In the admin panel, open Settings and use the MCP Server (external AI tools) card, then click Save MCP Settings. The choice is saved in the OL Terminal database and read once, when OL Terminal starts.
Restart required. A change takes effect only after OL Terminal is restarted. Until then MCP keeps the state it started with, and the card shows that a restart is pending. Turning MCP off ends any open MCP terminals at the restart.
While MCP is off, AI tools see an error instead of staying on "Connecting": an MCP call to /api/v1/mcp gets a JSON-RPC error (code -32000) saying MCP is turned off on this server. Any other request under /api/v1/mcp* (its sign-in and /api/v1/mcp-embed) returns 403 with {"error": "MCP_DISABLED"}.
Environment variable
| Variable | Values | Meaning |
|---|---|---|
OL_MCP_ENABLED | true / false (also 1/0, yes/no, on/off) | Overrides the admin setting. When set, the card is read-only. It also needs a restart, like any environment variable. |
Admin API
# Read the switch
GET /api/v1/admin/mcp-settings
# {"enabled": true, "running": true, "licensed": true,
# "restartRequired": false, "setByEnvironment": false}
# Save it (applied at the next restart)
POST /api/v1/admin/mcp-settings {"enabled": false}
MCP App
The MCP server can open an interactive terminal view. Set mcp.app.publicMcpUrl (or OL_MCP_APP_PUBLIC_URL) to the public MCP endpoint, for example https://terminal.example/api/v1/mcp. Set mcp.app.embedOrigin (or OL_MCP_APP_EMBED_ORIGIN) to this terminal's public origin when the view should be allowed to embed the full emulation page. The embed ticket exchange, POST /api/v1/mcp-embed/exchange, is public because the ticket is the credential. It works once and expires after 60 seconds.
Turn the MCP server for external AI tools on or off, and set up the MCP App terminal view.