Liongard MCP OAuth 2.0 Sign-In
Liongard MCP OAuth 2.0 Sign-In
Overview
OAuth 2.0 sign-in lets you connect an MCP client to Liongard's Model Context Protocol (MCP) server with a browser sign-in and a one-click approval, instead of creating, copying, and pasting a static Bearer Token into your AI tools. It works the same way as connecting an AI client to Google Drive or GitHub.
Access is tied to your own Liongard identity, whether you sign in with a password or SAML SSO. Each connection respects MFA and your environment scope, and refreshes automatically so it stays connected.
Bearer Tokens Still WorkOAuth 2.0 is an additional, preferred way to connect. Existing Bearer Token connections created in Admin > AI Preferences continue to work with no changes. See the Liongard MCP Server Integration Guide for Bearer Token setup. ChatGPT is the exception: it supports OAuth 2.0 only.
Feature Highlights
-
No Copied Bearer Tokens
You can sign in through the browser and approve the client. There is no static token to create, paste into config files, or rotate by hand. -
SSO and MFA Aware
Consent runs on your existing Liongard login, so SAML SSO users connect with no extra setup. MFA can be required at consent. -
Automatic Tenant and Environment Scoping
Your tenant comes from your Liongard session, and your environment scope is applied at consent. -
Least-Privilege Scopes
Clients request only themcp.readandmcp.writescopes, which are shown on the consent screen with Approve and Deny options. -
Zero-Config Client Setup
Clients register themselves and discover Liongard's OAuth 2.0 settings automatically. You only need the MCP server URL. -
Stays Connected
Clients use short-lived access tokens with rotating refresh tokens, so the connection stays active without signing in again. Access can be revoked at any time.
Prerequisites
-
Liongard MCP Subscription
An active LiongardIQ and Liongard MCP subscription. -
OAuth 2.0 Enabled for Your Tenant
OAuth 2.0 sign-in is enabled per service provider. Contact your Account Manager if you don't see the consent screen when you authenticate. -
Liongard User Account
A Liongard login (password or SAML SSO). The connection uses your account's existing environment access. -
An MCP Client That Supports OAuth 2.0
For example, Claude, ChatGPT, Claude Code, OpenAI Codex, Zed, or Microsoft Copilot Studio. -
Custom Connector Access (Claude and ChatGPT)
Claude and ChatGPT may require a specific plan, or an organization admin, to enable custom connectors. If the option to add one is missing, check with your admin.
How to Use
-
Add the Liongard MCP server to your MCP client using your tenant's URL:
https://[server].app.liongard.com/api/mcpReplace
[server]with your tenant prefix. -
Choose Authenticate (or Connect) in your client. The client discovers Liongard's OAuth 2.0 settings and registers itself automatically.
-
A browser window opens to Liongard. Log in if prompted, review the client name and requested scopes, and click Approve (or Deny).
-
Return to your client and ask it to "List the Liongard MCP tools" to confirm the connection.
The client stays connected and refreshes its token automatically.
Don't Add an Authorization HeaderDon't add an
Authorizationheader or Bearer Token to the client configuration when using OAuth 2.0. If one is present, the client skips OAuth 2.0 sign-in and never offers to authenticate.
Supported Clients
| Client | How It Connects |
|---|---|
| Claude (Web and Mobile) | Settings > Customize > Add > Add custom connector, then Connect |
| Claude Code | claude mcp add --transport http ..., then /mcp > Authenticate |
| ChatGPT (Web) | chatgpt.com/plugins > Add > Add custom MCP server, with OAuth authentication |
| ChatGPT (Desktop) | Settings > Plugins > Add MCP server (Streamable HTTP), then Authenticate |
| Microsoft Copilot Studio | Tools > Add a tool > Model Context Protocol, with OAuth 2.0 and Dynamic discovery |
| OpenAI Codex | Settings > Plugins > MCPs > Add MCP server (Streamable HTTP), then Authenticate |
| Zed | Settings > MCP Servers > Add Remote Server, then Authenticate |
Claude (Web and Mobile)
Add the connector once on claude.ai. It's then available in the Claude web, desktop, and mobile apps for the same account.
-
In claude.ai, go to Settings > Customize.
-
Click + Add > Add custom connector.
-
Enter the following:
- Name: Enter a name for the connector.
- MCP server URL:
https://[server].app.liongard.com/api/mcp
-
Click Continue. If the URL is valid, a confirmation screen appears. You can leave the default settings.
-
Click Add.
-
Click Connect. A browser window opens to Liongard. Click Approve.
-
Start a new chat and ask Claude to "List the Liongard MCP tools" to confirm the connection.
Claude Code
-
Open Claude Code in your terminal.
-
Register the Liongard MCP server:
claude mcp add --transport http liongard https://[server].app.liongard.com/api/mcpAdd
--scope userto make the server available in all of your projects. -
Run
/reload-plugins. -
Enter
/mcpto list your MCP servers. -
Use the arrow keys to select the Liongard MCP server, press Enter, then select Authenticate.
-
A browser window opens. Click Approve. Claude Code displays a confirmation once authorization completes.
-
Close the browser tab and return to Claude Code. Ask Claude to list the tools available from the Liongard MCP to confirm the connection.
ChatGPT (Web)
ChatGPT supports OAuth 2.0 only.
-
Go to chatgpt.com/plugins.
-
Click Add > Add custom MCP server.
-
Enter the following:
- Icon (optional): Upload a Liongard logo.
- Name: Enter a unique name for the connection.
- Description (optional): Describe the purpose of the connection.
- Connection:
https://[server].app.liongard.com/api/mcp - Authentication: Select OAuth.
- Trust confirmation: Select the checkbox. This is required to continue.
-
Click Create as a plugin.
-
An authorization window appears. Click Continue. Depending on your workspace, your admin may have already approved the app.
-
A browser window opens to Liongard. Click Approve.
-
The app appears in the Plugins menu. Start a new chat, enable the Liongard plugin, and ask ChatGPT to "List the Liongard MCP tools" to confirm the connection.
ChatGPT (macOS Desktop)
-
Click the gear icon in the bottom-left corner and select Settings.
-
Under Integrations, select Plugins.
-
Click Add > Add MCP server.
-
Enter the following:
- Name: Enter a unique name for the MCP server.
- Type: Select Streamable HTTP.
- URL:
https://[server].app.liongard.com/api/mcp
-
Click Save. ChatGPT returns you to the Plugins list, where the new server shows that it requires authentication.
-
Click Authenticate. A browser window opens to Liongard. Click Approve.
-
Return to ChatGPT. The server now shows as authenticated in the Plugins list.
-
Start a new chat and ask ChatGPT to "List the Liongard MCP tools" to confirm the connection.
Microsoft Copilot Studio
Copilot Studio setup depends on which agent builder your Microsoft licenses support. Both guides include the OAuth 2.0 steps.
- Microsoft 365 Copilot licenses only: Microsoft Copilot Studio (Standard builder)
- Copilot Studio capacity or pay-as-you-go billing: Microsoft Copilot Studio (Default builder)
When you approve access, the Liongard window shows Credential Manager as the client; that's how Copilot Studio appears to Liongard.
OpenAI Codex
-
Open Settings from the bottom-left menu, then go to Plugins > MCPs.
-
Click Add > Add MCP server.
-
Enter the following:
- Name: Enter a name for the Liongard MCP server connection.
- Type: Select Streamable HTTP.
- URL:
https://[server].app.liongard.com/api/mcp
-
Leave the remaining fields blank and click Save.
-
Codex returns you to the server list with the new connection enabled. Click Authenticate.
-
A browser window opens. Click Approve. When you see Authentication complete. You may close this window., return to Codex.
-
Start a new conversation and ask Codex to "List the Liongard MCP tools" to confirm the connection.
Zed
-
Click your avatar in the top-right corner and select Settings.
-
Scroll to MCP Servers and click Configure.
-
Click + Add Server and select Add Remote Server.
-
Enter a server name and your URL:
https://[server].app.liongard.com/api/mcp -
Click Save. Zed returns you to the Configured Servers list.
-
Click Authenticate. A browser window opens. Click Approve.
-
Close the browser tab and return to Zed. The server now shows Logout instead of Authenticate.
-
Open an Agent Thread from the sparkle icon in the footer and ask Zed to list the available tools from the Liongard MCP.
Use Cases
-
Onboard a Technician in Under a Minute
A new technician connects their AI client with a single browser approval, with no Bearer Token to create, store, or rotate. -
Meet SSO and MFA Requirements
Partners who mandate SAML SSO and MFA no longer need a static Bearer Token exception for MCP access. -
Attribute MCP Activity to a Person
Tokens carry the user's identity, tenant, and environment scope, so MCP activity is tied to a user rather than a shared token. Offboarding a user removes their access path.
Security Notes
-
Token Lifetime
Access tokens are short-lived. Refresh tokens expire after 30 days and rotate each time they are used. -
Local Token Storage
Your MCP client stores an access token and a refresh token on your machine, in a keychain or credentials file depending on the client. Exposure is limited because tokens are scoped, short-lived, and revocable, but a copied refresh token works until it expires or is revoked. -
Debug Logging
Some clients log the Authorization header when running in debug mode. Avoid sharing debug logs. -
No Permission Expansion
Tokens are limited tomcp.readandmcp.writeand your existing environment scope. -
Disconnecting
To revoke a client's access, remove or log out of the Liongard server in that client. To reconnect, use the client's Authenticate or Connect option.
Troubleshooting
-
The Client Never Offers to Sign In
Remove anyAuthorizationheader or Bearer Token from the client configuration. -
Registration Fails or "Redirect URI Not Allowed"
Note the client name and the exact redirect URI it used, then contact Liongard Support. The URI may need to be allowlisted. -
The Client Connects but Lists 0 Tools
Remove and re-add the server so the client requests themcp.readandmcp.writescopes, and make sure you clicked Approve on the consent screen. -
You Keep Returning to the Consent Screen
Log out of Liongard in your browser, then retry the connection and approve once. -
"Authorization Succeeded, Action Discovery Failed" (ChatGPT)
Confirm the URL ends with/api/mcp, then retry.
Current Limitations
- OAuth 2.0 does not replace Bearer Tokens. Static Bearer Token access remains supported in clients that accept custom headers, but not in ChatGPT.
- OAuth 2.0 does not change how you log in to Liongard. Consent uses your existing login.
- OAuth 2.0 is user-delegated and interactive. It is not a service-account or unattended authentication method. Use a Bearer Token for unattended automations such as n8n workflows.
Updated 14 days ago

