> ## 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.

# Snowflake CoWork - Make StackOne Available

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

![An IT admin adds StackOne to the Snowflake account, bringing Linked Accounts from many providers. Each user then connects with their own accounts: an HR manager uses Snowflake CoWork with Workday, Greenhouse and BambooHR, and a sales manager uses Snowflake CoWork with Salesforce, HubSpot and Gmail.](https://mintcdn.com/stackone-60/_mdzTkgimebpEkMa/images/ai-platforms/snowflake/admin-setup.svg?fit=max\&auto=format\&n=_mdzTkgimebpEkMa\&q=85\&s=fc230205b0290ea8edd71d6318f70023)

Make StackOne available to Cortex Agents in Snowflake CoWork (formerly Snowflake Intelligence). Each user signs in with their own StackOne login and reaches only the systems they've been given access to in StackOne.

> [!WARNING]
>
> **Creating an external MCP server needs the `ACCOUNTADMIN` role**, or a custom role with `CREATE INTEGRATION` on the account and `CREATE EXTERNAL MCP SERVER` on the target schema. Adding the server to a Cortex Agent also requires `MODIFY` or `OWNERSHIP` on that agent. MCP Connectors are not available in Snowflake accounts hosted in the People's Republic of China.

## Add StackOne to your Snowflake account

**1. Create the API integration**

Create an API integration with `API_PROVIDER = external_mcp` (unquoted) to store the StackOne MCP endpoint and OAuth configuration. Snowflake supports Dynamic Client Registration (DCR) and standard OAuth 2.0 with a static client ID and secret.

> [tab] Dynamic Client Registration (Recommended)
>
> Snowflake registers itself with StackOne automatically, so there is no client ID or secret to create. Run this SQL in a Snowsight worksheet:
>
> ```sql theme={null}
> CREATE API INTEGRATION stackone_mcp_api_integration
>   API_PROVIDER = external_mcp
>   API_ALLOWED_PREFIXES = ('https://mcp.stackone.com/mcp')
>   API_USER_AUTHENTICATION = (
>     TYPE = OAUTH_DYNAMIC_CLIENT
>     OAUTH_RESOURCE_URL = 'https://mcp.stackone.com/mcp'
>   )
>   ENABLED = TRUE;
> ```

> [tab] Standard OAuth 2.0
>
> Use this option if your organization requires a static OAuth client instead of Dynamic Client Registration.
>
> 1. In the StackOne dashboard, as a **Project Admin**, go to **Project Settings → MCP OAuth Clients → Create OAuth Client**.
>
> 2. Set the following:
>
>    * **Name**: `Snowflake CoWork`.
>    * **Client type**: `Confidential`.
>    * **Redirect URIs**:
>
>      ```text theme={null}
>      https://identity.snowflake.com/oauth2/callback
>      ```
>
>      If your account uses PrivateLink, run `SELECT SYSTEM$ALLOWLIST_PRIVATELINK();`, take the entry starting with `app.<region>.privatelink.snowflakecomputing.com`, and append `/oauth/complete-secret` as the redirect URI instead.
>
> 3. Click **Generate**, then copy the **Client ID** and **Client secret**. The secret is shown only once. See [Clients requiring Client ID and Secret](https://docs.stackone.com/ai-platforms/mcp-server.md#clients-requiring-client-id-and-secret) for details.
>
> 4. Run this SQL in a Snowsight worksheet with your client ID and secret:
>
>    ```sql theme={null}
>    CREATE API INTEGRATION stackone_mcp_api_integration
>      API_PROVIDER = external_mcp
>      API_ALLOWED_PREFIXES = ('https://mcp.stackone.com/mcp')
>      API_USER_AUTHENTICATION = (
>        TYPE = OAUTH2
>        OAUTH_CLIENT_ID = '<your_client_id>'
>        OAUTH_CLIENT_SECRET = '<your_client_secret>'
>        OAUTH_AUTHORIZATION_ENDPOINT = 'https://idp-api.stackone.com/api/auth/oauth2/authorize'
>        OAUTH_TOKEN_ENDPOINT = 'https://idp-api.stackone.com/api/auth/oauth2/token'
>        OAUTH_CLIENT_AUTH_METHOD = CLIENT_SECRET_BASIC
>        OAUTH_ALLOWED_SCOPES = ('mcp', 'offline_access')
>        OAUTH_REFRESH_TOKEN_VALIDITY = 7776000
>      )
>      ENABLED = TRUE;
>    ```
>
> `OAUTH_REFRESH_TOKEN_VALIDITY` sets how long Snowflake keeps refresh tokens in seconds (`7776000` is 90 days, matching StackOne's grant lifetime; minimum `3600`). Leaving it unset defaults to `0`, which Snowflake treats as a refresh token that never expires.

> [!WARNING]
>
> **Snowflake does not validate OAuth settings when you create the API integration.** A misconfigured client ID, client secret, redirect URI, or endpoint fails only on the first user connection or tool call. Test the connection yourself in the last step before rolling it out to users.

**2. Create the external MCP server**

Create an `EXTERNAL MCP SERVER` object in your chosen database and schema pointing to the API integration. `DISPLAY_NAME` is the label users see in Snowflake CoWork.

```sql theme={null}
CREATE EXTERNAL MCP SERVER <database>.<schema>.stackone_mcp_server
  WITH DISPLAY_NAME = 'StackOne'
  URL = 'https://mcp.stackone.com/mcp'
  API_INTEGRATION = stackone_mcp_api_integration;
```

Replace `<database>.<schema>` with the database and schema where your account stores external MCP servers. You cannot create an external MCP server against a disabled API integration.

**3. Grant role access**

Grant `USAGE` on both the external MCP server and its underlying API integration to each Snowflake role that will use StackOne (along with `USAGE` on the database and schema if the role does not already have it):

```sql theme={null}
GRANT USAGE ON DATABASE <database> TO ROLE <role_name>;
GRANT USAGE ON SCHEMA <database>.<schema> TO ROLE <role_name>;
GRANT USAGE ON EXTERNAL MCP SERVER <database>.<schema>.stackone_mcp_server TO ROLE <role_name>;
GRANT USAGE ON INTEGRATION stackone_mcp_api_integration TO ROLE <role_name>;
```

Users see only external MCP servers their active Snowflake role has `USAGE` on. Access is per-user OAuth, so each person still signs in to StackOne with their own login.

**4. Add StackOne to a Cortex Agent**

Attach the external MCP server to each Cortex Agent that users interact with in Snowflake CoWork.

> [tab] Snowsight UI
>
> 1. In Snowsight, go to **AI & ML → Agents** and select your agent.
> 2. Select **MCP Connectors**.
> 3. Under **Available Connectors**, select **StackOne**.
> 4. Review the connector details and select **Add to agent**.

> [tab] SQL
>
> Run `ALTER AGENT` to attach the external MCP server to the agent:
>
> ```sql theme={null}
> ALTER AGENT <database>.<schema>.<agent_name>
>   ADD MCP_SERVER = '<database>.<schema>.stackone_mcp_server';
> ```

Make sure the agent is added to your account's Snowflake CoWork object (`SNOWFLAKE_INTELLIGENCE_OBJECT_DEFAULT`) and that user roles hold `USAGE` on the agent and on the Snowflake CoWork object. If your account revoked `SNOWFLAKE.CORTEX_USER` from `PUBLIC`, grant `SNOWFLAKE.CORTEX_AGENT_USER` to those roles as well.

**5. Verify the connection before rollout**

Because Snowflake checks OAuth settings only when a user connects for the first time, test the flow yourself before inviting users:

1. Open [Snowflake CoWork](https://ai.snowflake.com) (or your PrivateLink URL) and select the agent.
2. Open the sources panel, select **Connectors**, and select **Connect** next to **StackOne**.
3. Complete the StackOne sign-in and send `Which of my Linked Accounts can you reach through StackOne?`.

If sign-in or tool discovery fails, inspect the server and integration with `DESCRIBE EXTERNAL MCP SERVER <database>.<schema>.stackone_mcp_server;` and `DESCRIBE INTEGRATION stackone_mcp_api_integration;`.

## Roll it out

StackOne is now available for your users in Snowflake CoWork. 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).

Then send users this guide:

> [card] [Snowflake CoWork Organization User Setup](https://docs.stackone.com/ai-platforms/snowflake/organization-user-setup.md)
>
> For people in your organization connecting StackOne in Snowflake CoWork.

## Disable or remove StackOne

Disable StackOne temporarily by disabling its API integration. Disabling immediately invalidates all user tokens and triggers a call to StackOne's revocation endpoint while keeping the configuration intact:

```sql theme={null}
ALTER API INTEGRATION stackone_mcp_api_integration SET ENABLED = FALSE;
```

When you re-enable the integration (`SET ENABLED = TRUE`), users must sign in to StackOne again.

To remove StackOne permanently, drop the external MCP server first, then drop the API integration (which permanently deletes stored OAuth configuration and secrets):

```sql theme={null}
DROP EXTERNAL MCP SERVER <database>.<schema>.stackone_mcp_server;
DROP API INTEGRATION stackone_mcp_api_integration;
```


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