Skip to main content
LobeHub connects its agents to MCP servers as connectors. Mirage reaches it two ways: LobeHub keeps its own tools. Mirage sees only the calls to its seven tools.

Install

STDIO needs the LobeHub desktop app; the web app needs only a Mirage server it can reach.

Workspace

workspace.yaml

STDIO

In LobeHub, open Settings → Connectors, choose Add custom connector, and select Import JSON config:
Or pick the STDIO type, fill Command with mirage, and add mcp, -w and demo as three Arguments. The connector is available once Test connection passes. mirage mcp starts the Mirage server when it is not running and sends your saved login or the local token file. On macOS and Linux, LobeHub starts it with only HOME, LOGNAME, PATH, SHELL, TERM and USER, with PATH taken from your login shell; to pass MIRAGE_TOKEN, add it under MCP server env vars.

Streamable HTTP

Add a custom connector of the Streamable HTTP type: The Mirage server refuses a host name missing from its MIRAGE_ALLOWED_HOSTS, so add the one in your URL, here mirage.example.com. Create demo on that server: run the Workspace commands after mirage login https://mirage.example.com, or, on a server with a shared token, mirage login https://mirage.example.com --token - with the same key. Then mirage context use local points the CLI, and the STDIO connector, back at your computer. LobeHub sends the key as Authorization: Bearer. An imported JSON config carries only the URL, so set the key in the form. The web app connects from LobeHub’s server, which refuses private and loopback addresses: give it a public URL. A self-hosted LobeHub reaches a Mirage server on its own network when SSRF_ALLOW_PRIVATE_IP_ADDRESS or SSRF_ALLOW_IP_ADDRESS_LIST allows it. The desktop app connects from your computer, so it also reaches http://127.0.0.1:8765/v1/workspaces/demo/mcp with the token in ~/.mirage/auth_token.

Use it

Open the agent’s Agent Settings → Connectors, select mirage, and save. Each tool runs on Allow, Ask or Deny.