> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Genie Code - Make StackOne Available

> Allow your users to connect to work systems with StackOne.

![An IT admin adds StackOne to the Databricks workspace, bringing Linked Accounts from many providers. Each user then connects with their own accounts: a data engineer uses Genie Code with GitHub, Jira and Slack, and an analytics lead uses Genie Code with Salesforce, Confluence and Linear.](https://mintcdn.com/stackone-60/_mdzTkgimebpEkMa/images/ai-platforms/databricks/admin-setup.svg?fit=max\&auto=format\&n=_mdzTkgimebpEkMa\&q=85\&s=27c19f941b8568c098ca869c07c1a33b)

Make StackOne available as an external MCP server in your Databricks workspace for Genie Code. Each person then signs in with their own StackOne login and reaches only the systems they've been given access to in StackOne.

Databricks registers MCP services inside a Unity Catalog catalog and schema. If your organization uses more than one Unity Catalog metastore, repeat these steps in each workspace that needs StackOne.

## Before you start

In Databricks, you need:

* A Unity Catalog-enabled workspace in a [region that supports Model Serving](https://docs.databricks.com/aws/en/resources/feature-region-support#model-serving-aws).
* **Partner-powered AI features** enabled for both the account and the workspace so Genie Code's agentic capabilities are active.
* The **Workspace access** entitlement. Users with **Consumer access** can't register an MCP.
* `USE CATALOG` and `USE SCHEMA` on the target catalog and schema, `CREATE SERVICE` on the schema, and `CREATE CONNECTION` on the schema (or `USE CONNECTION` on an existing HTTP connection).

Databricks asks you to sign in to StackOne when loading tools during registration. In StackOne:

* A StackOne [project](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md) you are a member of.
* A [connector profile](https://docs.stackone.com/connect/managing-connectors/connector-profiles.md) in the project for each provider the client should reach, with the actions you want exposed enabled.
* (Optional) A [linked account](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md) for each provider. Accounts can also be linked during the consent flow.

## Add StackOne to your workspace

**1. Register StackOne as an external MCP server**

1. In your Databricks workspace, open **Unity Gateway**, select **MCPs**, and click **+ MCP**.

2. Choose **Connect an existing MCP server**.

3. Choose a **Catalog** and **Schema**, and enter an MCP name, for example `stackone`. The name can't be changed after creation.

4. Select an existing HTTP connection, or click **Create new connection** and set the following:

   * **MCP server URL**:

     ```text theme={null}
     https://mcp.stackone.com/mcp
     ```

     If the form asks for separate connection fields instead of a single URL, set **Host** to `https://mcp.stackone.com`, **Port** to `443`, and **Base Path** to `/mcp`.
   * **Authentication method**: choose **Dynamic Client Registration**. Databricks discovers StackOne's OAuth endpoints and registers itself automatically, so there's no client ID or secret to enter, and each user signs in with their own StackOne login. Leave **OAuth scope** blank so StackOne applies its default scopes.

5. Click **Create & load tools**.

> [!WARNING]
>
> **Avoid shared authentication methods such as Bearer token or OAuth User to Machine Shared.** With a shared credential, everyone who calls the MCP service works in StackOne under one shared login rather than their own access.

> [accordion] Use a static OAuth client instead of Dynamic Client Registration
>
> If your workspace policy requires pre-registered OAuth credentials instead of **Dynamic Client Registration**, create a static OAuth client in StackOne first:
>
> 1. In the StackOne dashboard, go to **Project Settings → MCP OAuth Clients → Create OAuth Client**.
>
> 2. Set **Name** to `Databricks Genie Code`, leave **Client type** set to `Confidential`, and add your workspace's callback URL under **Redirect URIs**:
>
>    ```text theme={null}
>    https://<workspace-hostname>/login/oauth/http.html
>    ```
>
> 3. Click **Generate**, then copy the **Client ID** and **Client secret**. The secret is shown only once.
>
> 4. In Databricks, select **OAuth User to Machine Per User**, choose **Manual Configuration**, and enter:
>
>    | Field | Value |
>    | - | - |
>    | **Authorization endpoint** | `https://idp-api.stackone.com/api/auth/oauth2/authorize` |
>    | **Token endpoint** | `https://idp-api.stackone.com/api/auth/oauth2/token` |
>    | **Client ID** | The client ID from StackOne |
>    | **Client secret** | The secret from StackOne |
>    | **OAuth scope** | `mcp offline_access` |
>
> For more on static OAuth clients, see [Clients requiring Client ID and Secret](https://docs.stackone.com/ai-platforms/mcp-server.md#clients-requiring-client-id-and-secret).

**2. Sign in and load tools**

1. Under **Tools**, click **Login** when prompted and sign in to StackOne with your own login. This sign-in is only for setup so Databricks can load StackOne's tools. With per-user OAuth, each user still connects with their own StackOne login.

   Sign in, pick the project and the [linked accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md) the connector should reach, then **Authorize**.

   > [accordion] Walk through the consent screen
   >
   > 1. **Sign in to StackOne.** If you are already signed in to the dashboard you skip straight to the next step.
   > 2. **Check where the connection returns.** The line under the client's logo shows where it goes after you approve. If it names localhost or an app on this device, only continue if you started the connection from that client.
   > 3. **Select a project.** Select the project you would like to associate the connection with. If you belong to one project, this step is skipped.
   > 4. **Select accounts and access.** Select the linked accounts the client can use, and choose how much it can do in each: read, write, full access, or pick individual actions. To link a new account, click **Link account**. When the project has [MCP Events](https://docs.stackone.com/connect/mcp-events.md) on, each account also lists its events, and all of them are granted unless you untick some.
   > 5. **(Optional) Load tools when needed.** On by default, and the toggle that puts the connection into [Advanced Tool Search](https://docs.stackone.com/optimize/advanced-tool-search.md). Leave it on for large action sets. Turn it off to hand the agent every selected action up front.
   > 6. **Authorize.** Completes the connection; you can return to your client.
   >
   > ![StackOne authorization screen listing organizations, with a project selected inside one of them](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-project.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=69d4694c8ea854c52ec62fc1bbe0825a)
   >
   > Select a project
   >
   > ![StackOne authorization screen showing two linked accounts, Linear and Open-Meteo, both selected, above the Load tools when needed toggle](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-accounts.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=66ef4eb4d8bf6e5246e5f01ec959c187)
   >
   > Select accounts
   >
   > ![An expanded linked account showing individual actions with toggles, descriptions, and category tags](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-actions.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=c86b615e0f55cd43236e38142c1ebca5)
   >
   > Toggle actions
   >
   > > [!NOTE]
   > >
   > > If you see a sentence where the **Load tools when needed** toggle should be, an admin has already settled it for the whole project. See [project settings](https://docs.stackone.com/optimize/advanced-tool-search.md#setting-it-for-a-whole-project).

   Leave **Load tools when needed** on.

2. Back in Databricks, leave all StackOne tools exposed so [Advanced Tool Search](https://docs.stackone.com/optimize/advanced-tool-search.md) can discover and run actions as needed.

3. Click **Create MCP Service**.

**3. Grant access to your users**

Callers need `EXECUTE` on the MCP service, plus `USE CATALOG` and `USE SCHEMA` on its parent catalog and schema:

1. In **Unity Gateway** > **MCPs**, open the StackOne MCP service and select the **Permissions** tab.
2. Click **Grant**, select the users or groups who should use StackOne in Genie Code, select **EXECUTE**, and click **Grant**.
3. In **Catalog**, grant those users or groups `USE CATALOG` on the parent catalog and `USE SCHEMA` on the parent schema.

Do not grant end users `USE CONNECTION` on the underlying HTTP connection. Reserve `USE CONNECTION` for MCP authors and administrators because it allows direct use of the connection outside the MCP service's tool selection and policies.

## If your workspace restricts outbound network access

Calls from Unity Gateway to external MCP servers run on serverless compute. If serverless egress control for your workspace uses **Restricted access**, add `mcp.stackone.com` and `idp-api.stackone.com` to **Allowed domains** in your workspace network policy. With **Full access**, check that neither domain is explicitly blocked.

## Roll it out

StackOne is now available for your users in Genie Code. Make sure the following is ready before rolling out:

* **Add users.** Invite or provision users via SSO/SCIM. See [Manage Team](https://docs.stackone.com/secure/identity-and-access/manage-team/overview).
* **Create groups.** Organize teams into [groups](https://docs.stackone.com/secure/identity-and-access/roles-and-groups/groups.md) to control which systems each team reaches.
* **Set up connectors.** Define [Connector Profiles](https://docs.stackone.com/connect/managing-connectors/connector-profiles.md) to scope provider actions for specific functions.
* **Link accounts.** Link shared company accounts, or let users link their own accounts. See [Linking Accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md).

Check that each user is assigned to the workspace and has `EXECUTE` on the MCP service along with `USE CATALOG` and `USE SCHEMA` on its parent catalog and schema. Share the full MCP service name (`<catalog>.<schema>.<service>`) so users know which service to pick in Genie Code.

Then send users this guide:

> [card] [Genie Code Organization User Setup](https://docs.stackone.com/ai-platforms/databricks/genie-code/organization-user-setup.md)
>
> For people in your workspace connecting StackOne in Genie Code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.