Connect Gemini Spark / Custom Apps¶
Gemini's custom connected apps feature (previously described as Spark) lets an eligible Gemini user connect a remote MCP server. LSM can provide the MCP endpoint. This is an alternative client connection to the unified web workspace, ChatGPT and other MCP clients; it does not replace or deploy the LSM Controller.
Google currently restricts custom apps to users aged 18 or older in the United States, signed in with a personal Google Account and Keep Activity enabled. The feature is available in English. Connections must be created on the Gemini web app, although connected apps can later be used on mobile. Availability and UI labels may change; consult the official Gemini custom apps instructions.
Before connecting¶
- Start an LSM runtime, for example with Docker Compose, and verify its health.
- Expose its MCP endpoint over publicly reachable HTTPS and keep OAuth enabled.
- Know the Controller's authentication details and approve only scopes you need.
- Use a constrained workspace or container. Gemini may request operations with real effects on files, machines and terminals.
The endpoint to enter in Gemini is:
Do not enter the web UI (/ui), the LibreChat URL or the site origin without /mcp. Public deployments should not disable authentication to work around connection errors.
Connect in Gemini¶
- On a computer, open Gemini and sign in with an eligible personal account.
- Open Settings & help → Connected Apps. Depending on the current interface, it may be under Personal Intelligence → Connected Apps.
- Under Custom apps, select Add a custom app or use the custom-app URL field.
- Paste the LSM HTTPS
/mcpURL, then choose Next. - Complete the OAuth and consent flow with the LSM Controller. LSM supports OAuth discovery and dynamic client registration. If Gemini requests manual OAuth client credentials instead, check its advanced options and your LSM OAuth setup before proceeding.
- In a Gemini conversation, type
@and select the connected custom app to request an LSM tool.
Start with: “Use the connected LSM app to inspect the environment and list workspace files. Do not modify anything.” Check the tool results and Controller audit before attempting write operations.
Limits and troubleshooting¶
- No Custom apps option: confirm account, region, age, language and Keep Activity eligibility. This is a Gemini-side availability restriction, not an LSM configuration error.
- URL is rejected: use an externally reachable HTTPS
/mcpendpoint; check OAuth discovery and your reverse proxy. - OAuth fails: check the LSM authorization screen, client registration, callback URL and granted scopes. Do not publish an unauthenticated MCP endpoint.
- A tool is missing or fails: client-side MCP tool/schema support can differ. Try a simple read-only call and inspect LSM audit and logs; full compatibility with every Gemini client feature is not guaranteed.
- Disconnecting: go back to Connected Apps to disable, unlink or remove LSM when it is no longer needed.
Google's official guide describes the latest Custom Apps flow and availability. For a local CLI-based Gemini integration instead, see Gemini CLI's MCP documentation. The LSM ChatGPT connector tutorial remains available independently.