# Connect to Relyance MCP

Connect an AI assistant to Relyance with the Model Context Protocol (MCP). The assistant can discover and call Relyance tools on your behalf, such as listing open risks. Tool access depends on your workspace and your Relyance permissions.

## Before you begin

- Have an active Relyance account in the workspace you want to connect. Contact your Relyance account team if you need help confirming access.
- Use a client that supports remote MCP over Streamable HTTP and OAuth 2.1. Your organization may need to allow custom connectors in the client.
- Use the server URL for the region where Relyance hosts your workspace. Ask your Relyance account team if you are unsure of the region.

| Workspace region | MCP server URL |
| --- | --- |
| US | `https://beta.api.relyance.ai/mcp` |
| EU | `https://beta.api.eu1.relyance.ai/mcp` |

## Set up Claude

1. In Claude, open **Customize → Connectors**, select **+ Add**, then **Add custom connector**. In a managed Claude organization, an authorized admin starts instead at **Organization settings → Connectors → Add → Custom → Web**.
2. Name the connector **Relyance** and enter the MCP server URL for your region, including `/mcp`. Continue to the authentication settings.
3. Choose **Sign in now** if Claude asks when to authenticate. For the OAuth client, keep **Use Claude’s published identity**. Leave request headers empty and select **Add**.
4. Follow the sign-in prompt. If an admin added the connector for you, open **Customize → Connectors** and select **Connect** next to **Relyance**. [Sign in to Relyance](#sign-in-to-relyance) to finish connecting.
5. Start a chat. Open **+ → Connectors** to enable **Relyance** for the conversation.

For Claude plan and admin settings, see [Anthropic’s custom connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).

## Set up ChatGPT

Use ChatGPT on the web in a workspace that allows custom MCP plugins.

1. Open [ChatGPT Plugins](https://chatgpt.com/plugins), select **+**, then **Add custom MCP server**.
2. Name the plugin **Relyance** and enter the MCP server URL for your region under **Connection**.
3. Select **OAuth** and choose **Dynamic Client Registration (DCR)** for OAuth client registration. Leave the client ID and secret empty.
4. Review the connection prompt and select **Create as a plugin**. Install **Relyance** in your workspace before using it in a conversation.
5. Start a chat, type `@`, and select **Relyance**. [Sign in to Relyance](#sign-in-to-relyance) when prompted.

For workspace permissions and plugin settings, see [OpenAI’s custom MCP server guide](https://developers.openai.com/api/docs/guides/custom-mcp-server).

## Set up GitHub Copilot in VS Code

Use a Copilot session in VS Code. If your organization manages Copilot, its policy must allow custom MCP servers.

1. Open the Command Palette and run **MCP: Add Server**.
2. Choose **HTTP**, enter the MCP server URL for your region, and use `relyance` as the server ID.
3. For a personal connection, select **Global**, then **Copilot Global** when prompted.
4. Review the server trust prompt and [sign in to Relyance](#sign-in-to-relyance) when prompted. If setup does not prompt you to sign in, [try a read-only request](#try-the-connection) in your Copilot session to start sign-in.

For configuration options and tool controls, see [Microsoft’s MCP setup guide for VS Code](https://code.visualstudio.com/docs/agent-customization/mcp-servers).

## Set up Microsoft Copilot Studio

Use an agent that runs on the standard harness.

1. Open your agent and go to **Tools → Add a tool → New tool → Model Context Protocol**.
2. Name the server **Relyance**, describe the Relyance tools the agent can use, and enter the MCP server URL for your region.
3. Select **OAuth 2.0**, then **Dynamic discovery**. Select **Create**, then **Next**.
4. Choose **Create a new connection**, [sign in to Relyance](#sign-in-to-relyance) when prompted, then select **Add to agent**.
5. [Try a read-only request](#try-the-connection) in the agent’s test chat.

For the setup wizard and publishing steps, see [Microsoft’s MCP setup guide for Copilot Studio](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-add-existing-server-to-agent) and [how to make an agent available in Microsoft 365 Copilot](https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-add-bot-to-microsoft-teams).

## Set up another MCP client

Add a remote MCP server using the URL for your region and choose OAuth authentication. Your client needs to support OAuth discovery and the authorization code flow with PKCE (S256). Relyance supports public clients using OAuth Client ID Metadata Documents or Dynamic Client Registration. [Sign in to Relyance](#sign-in-to-relyance) when prompted.

## Sign in to Relyance

1. On **Select your workspace**, enter your Relyance workspace subdomain. For example, if your workspace URL is `https://your-workspace.relyance.ai`, enter `your-workspace`.
2. Select **Continue** and sign in to your Relyance workspace.
3. If **Authorize access** appears, review the client, workspace, and requested access. Select **Allow** to finish connecting.

## Try the connection

Ask a read-only question such as “Use Relyance to list up to five open risks in this workspace, with their titles and severities.” Check that the client used the Relyance connector and returned records from the intended workspace. You need permission to read risks for this example.

Review the details before asking an assistant to change a record. Use the tool approval controls in your client to manage when it can act.

## How OAuth authorization works

1. Your client discovers the regional Relyance authorization server from the MCP endpoint and opens the sign-in flow in your browser.
2. You select a workspace, sign in to Relyance, and approve the connection. Relyance binds the approval to your account, the client, and that workspace.
3. Your client exchanges the authorization code for a short-lived access token and sends it with MCP requests. Relyance checks the permissions required by each tool. If you approve offline access, a client that supports refresh can renew its access without prompting you to sign in each time.

To use a different workspace, authorize a connection for that workspace.

## Revoke access

In the connected Relyance workspace, open **Connected apps** by adding `/#/oauth/sessions` to the workspace URL.

- Select **Disconnect** to revoke one session.
- Select **Revoke all sessions for this app** to revoke all your sessions for that client in this workspace.

To require a fresh approval when reconnecting, select **Forget consent** before revoking the session. To reconnect, start a new sign-in from your MCP client.

## Troubleshoot the connection

| What you see | What to check |
| --- | --- |
| The client cannot connect or start sign-in. | Check that you used the regional HTTPS URL with the `/mcp` path. Confirm that the client supports remote MCP with OAuth and that your organization allows custom connectors. |
| Relyance does not let you authorize the workspace. | Check the workspace subdomain, region, and the Relyance account you signed in with. Ask your workspace admin to confirm your access. |
| You are connected but a tool reports a permission error. | Check that the feature is available in your workspace and that your Relyance role allows you to perform the same action there. |
| A previously working connection asks you to sign in. | Reconnect from your client and complete the Relyance sign-in and consent prompts. |
