Skip to main content

Overview

Genesis runs an MCP server, so a coding agent on your laptop can list Genesis agents, open threads and ask them to do work. This page covers Claude Code, Claude Desktop, Cursor, VS Code and Snowflake Cortex Code on the two ways Genesis is deployed, and Codex and Databricks Genie Code on hosted Genesis:
Your Genesis already has these commands with your address filled in. Open Config → MCP Gateway, or click MCP in the top bar, or choose Connect your coding agent on the Launchpad. Pick your client’s tab and copy each step. The commands below use placeholders such as <genesis-url> and <snow_cli_profile> in the same places.
The examples below use the default server name, genesis. On a white-labelled deployment, use the product-name-based server name shown in generated setup instructions. See Branding for how generated MCP server names are chosen. To connect a coding client to Genesis Desktop over MCP, open Settings → Configuration → MCP Gateway → Use Genesis from your coding tools → Connect in the Desktop app for pre-filled setup instructions. Connect adds Genesis to VS Code’s user mcp.json as well as to the other tools it lists. When connected to Genesis Desktop, MCP thread access is checked as the signed-in person. The MCP tool key does not grant a coding client access to another person’s private threads.

Snowflake Native App (SPCS)

Before you start
  • <genesis-url> is the address you open Genesis at in the browser, for example https://<endpoint>.snowflakecomputing.app, with no trailing slash.
  • Your Snowflake role needs the Genesis app’s APP_PUBLIC application role. Without it the Snowflake ingress refuses the request.
  • You need one way to sign in to Snowflake: a Snow CLI connection in ~/.snowflake/connections.toml (<snow_cli_profile> is its name), or a key pair your administrator gave you (account, user, role and a private key file).
  • Claude Code, Claude Desktop, Cursor and VS Code run a small bridge on your machine with npx, so you need Node.js 20 or later. The bridge signs each request with your Snowflake credentials, so Genesis sees you as that Snowflake user. Cortex Code needs no bridge.
1. Add. Run this in your project directory, with your Snow CLI profile name:
Or, with the key pair your administrator gave you:
The key file stays on your machine; never paste it into a chat.2. Check. Run the connection check in a terminal.3. Confirm. Start Claude Code and run /mcp: genesis shows as connected.4. Try it. Send this prompt:

Check the bridge connection

Claude Code, Claude Desktop, Cursor and VS Code all run the same bridge, so one terminal check covers them. It signs in to Snowflake the same way your client will and reports Health and MCP status as OK when the connection works:
With a key pair, pass the same flags you used in the Add step:

Hosted Genesis with browser sign-in

On a Genesis deployment that signs users in with Auth0 or another OpenID Connect provider, the MCP server is at:
You sign in once through the browser. How each client is added depends on how your admin set up sign-in, which is why Config → MCP Gateway is the place to copy from: it shows only the variant your deployment needs, with the client ID filled in when one is needed. If a client cannot sign in yet, the page says so and what to fix.
1. Add. Run this in your project directory:
When the page shows an OAuth client ID, it gives you this form instead:
2. Sign in once. Start Claude Code (claude), type /mcp, pick genesis, choose Authenticate and finish in the browser tab that opens, then exit.3. Try it. Run this smoke test. It works only after step 2: claude -p runs without a window, so it cannot open a browser to sign you in.
For scripts or CI, create a personal access token under API Keys (profile menu) and send it as Authorization: Bearer <token> instead of signing in through the browser. See Personal Access Tokens.

Signing in when the client runs on another machine

Claude Code, Codex, Genie Code, Cursor and VS Code finish browser sign-in by opening a 127.0.0.1 address on the machine they run on. When the browser is on that same machine, the last sign-in page finishes on its own (or with one click on Finish sign-in on this computer) and tells you to return to your terminal. When the client runs somewhere else, for example on a server you reach over SSH, your laptop’s browser cannot reach that address. Sign in with a code instead. On the machine that runs the client:
The script starts the client’s sign-in in the background and prints a code and a link, https://<your-genesis-host>/device. Open the link in any browser, enter the code, and check what is asking: the client, its MCP server name, and the address it asked from. Choose Approve, sign in to Genesis as usual, and the script finishes the sign-in on the remote machine and prints Signed in to Genesis, with the MCP server name. The code works once and expires after 10 minutes. Only approve a code you started yourself: if someone sends you a link or a code to enter, choose Deny. The script works with Genie Code (genie, the default when it is installed) and Codex (codex). Name the client so it never picks the other one, and pick a server name other than genesis if you need one, with options:
It needs only curl and a POSIX shell (sh on Linux and macOS). On Windows, or anywhere with Node 20 or later, the npm package does the same:
Before it starts a client, genesis-connect checks that Genesis answered its sign-in metadata request; if Genesis is temporarily unavailable, it reports that and does not claim the client signed in. If it chooses an installed client automatically, it names that client and says how to choose another with --client. A client that finishes without asking for sign-in is reported as already signed in for this Genesis or not needing sign-in, rather than as a completed Genesis sign-in. The hosted code sign-in instructions also offer this as Or with Node (Windows too). It takes the same --client and --name options, and also signs in the genesis-room helper (--client genesis-room, with a genesis-room newer than v0.1). Any other tool that prints a sign-in link for your Genesis and then waits on 127.0.0.1 can be signed in by giving its command after --, for example npx -y @genesiscomputing/genesis-connect https://<your-genesis-host> -- mytool login. If you already started a sign-in on the remote machine, for example with genie mcp add or genie mcp login, or from inside Claude Code or Cortex Code (/mcp), which no command can start for you, the last sign-in page in your browser notices that it is on a different machine from the client. It shows one command, curl -s '<the client's sign-in address>', that finishes this sign-in now; the copy icon in the corner of the command copies it. Run it on the machine that runs the client within a few minutes, while the client is still waiting. The connect command above is folded away below it, under Next time, sign in with a code instead. If the page guessed wrong (a shared network can make two machines look alike), use its Not right? link to see the other option. No SSH tunnel is needed either way. The curl -s command carries a one-time authorization code. It works once, for a few minutes, and only for the client that started the sign-in, so don’t paste it anywhere else. Admins: the identity-provider settings and the one OAuth redirect URI to register are in Hosted MCP for Claude Code. The MCP Gateway page also shows them in its collapsed Admin setup (once per deployment) section.

Tool names follow your server name

Most clients put the name you gave the server in front of each Genesis tool. Claude Code, for example, shows the tunnel as mcp__genesis__call_tool when the server is added as genesis. Add or rename it as yacht and the same tool is mcp__yacht__call_tool; rename yacht to yacht-oauth and it becomes mcp__yacht_oauth__call_tool. Characters the client does not allow in a tool name, such as -, are replaced with _. So a script, a skill or an agent prompt should not hard-code a prefixed name. Have the agent discover the tools instead: list them with the client (/mcp in Claude Code, Cortex Code, Codex and Genie Code), then call help through call_tool to read what Genesis offers. help answers with a short map by default: the interface generation, which thread id goes where, and every action in one line. For one action’s parameters and examples call describe_action with its name, and for the whole guide (modes, examples, polling, parameter groups) pass response_profile: "full". Inside the server, the names stay the same: call_tool, ask_agent, search_data_context and the rest. To check which Genesis build answers, call version through call_tool. It returns the version, the commit, when the server started and which MCP interface generation it serves, without calling any other service.