Enabling the Tool Gateway requires Helm chart version 0.18.0-rc.87 or later.
Enable the gateway
Set your hostname
The Tool Gateway runs inside the The chart routes
platform-backend service. The chart turns it on for every organization on the install. There is no separate enable step in the UI.Set config.hostname to the HTTPS hostname of your install. The chart builds the OAuth callback URL from it./api/v1/agent-auth/, /api/v1/managed-tools/, and /api/v1/agent-policies to platform-backend through the existing frontend. No separate Ingress is required.Allow MCP servers on your network (optional)
By default, LangSmith still requires HTTPS URLs, and still blocks cloud metadata endpoints, localhost, and
platform-backend blocks MCP server URLs that resolve to private IP addresses. To connect MCP servers that run inside your network, add this to your Helm values:*.svc.cluster.local hostnames.Apply and verify
Apply the chart with chart version 0.18.0-rc.87 or later. See Upgrade an installation for additional instructions.In the LangSmith UI, go to Tools, add an MCP server, and connect to it.
Find your callback URL
When a user connects an account to an MCP server that uses OAuth, the provider returns the browser to this URL. Add it as a redirect URL to every OAuth app that you register for the Tool Gateway.config.basePath, the URL becomes https://<your-hostname>/<basePath>/api/v1/agent-auth/oauth/callback.
Enable built-in tools (optional)
Built-in tools, such as Gmail, Outlook, and Slack, run on the built-in tool server. The chart deploys it by default, so you do not need to enable Fleet. Each provider that you enable needs one OAuth app.Set up built-in tools
Set up built-in tools
Before you start
- Tool server enabled: Keep
fleetToolServer.enabled: true, which is the default. If you set it tofalse, the Tools page lists no built-in tools. - Provider access: Permission to create an OAuth app with each provider, and administrator approval where the provider requires it.
Create the OAuth apps
Create an app only for the providers that you enable. Each app must allow the scopes that the Tool Gateway requests. If an app does not allow a requested scope, the provider rejects the consent request.- Google
- Microsoft
- Slack
- Linear
- LinkedIn
- Salesforce
- GitHub
Covers Gmail, Calendar, Drive, Docs, Sheets, Slides, Meet, and BigQuery.
- In the Google Cloud console, open APIs & Services > Credentials and create an OAuth client ID of type Web application.
- Under Authorized redirect URIs, add your callback URL.
- Under Enabled APIs & services, enable the APIs for the tools that you use.
-
On the OAuth consent screen, add these scopes:
openid,.../auth/userinfo.email,.../auth/userinfo.profile,.../auth/gmail.modify,.../auth/calendar.events,.../auth/calendar.freebusy,.../auth/calendar.calendarlist.readonly,.../auth/drive,.../auth/drive.file,.../auth/documents,.../auth/spreadsheets,.../auth/presentations,.../auth/meetings.space.created,.../auth/meetings.space.readonly,.../auth/bigquery - Set the consent screen to Internal for one Google Workspace organization, or publish it. In Testing mode, only listed test users can connect, and their access stops after seven days.
- Copy the Client ID and Client secret.
Add the credentials to your Helm values
platform-backend reads each app’s credentials from these environment variables. Set both variables for each provider that you enable. If either value is empty, the provider stays unavailable and Connect shows that it is not configured.GitHub also requires
FLEET_GITHUB_APP_STATE_JWT_SECRET. Without it, platform-backend logs an error and does not register the GitHub App callback and webhook routes.-
Create a Kubernetes Secret in the LangSmith namespace. Include only the providers that you enable, and keep the file out of version control.
-
Add one pair of entries for each provider to
platformBackend.deployment.extraEnv. Keep your existing entries.Do not addMANAGED_TOOLS_EMBEDDED,LANGSMITH_SIGNING_JWKS,API_KEY_SALT, orAGENT_BUILDER_ENCRYPTION_KEYthroughextraEnv. The chart already sets them, and a duplicate name fails the Helm render. -
Apply the chart. If you change only the Secret later, restart
platform-backend: - In the LangSmith UI, go to Tools, select a built-in tool, click Connect, and complete the consent screen.
Allow network access
platform-backend: Outbound HTTPS to each provider’s token endpoint, such asoauth2.googleapis.com,login.microsoftonline.com,slack.com,api.linear.app,www.linkedin.com,login.salesforce.com, andgithub.com.- Built-in tool server: Outbound HTTPS to the provider APIs that tools call, such as
gmail.googleapis.com,graph.microsoft.com, andslack.com. - Browser: Access to each provider’s sign-in page and to your callback URL.
fleet.egressProxy.url for the built-in tool server. For platform-backend, add HTTPS_PROXY and NO_PROXY to platformBackend.deployment.extraEnv, and include your cluster’s internal domains and your Postgres, Redis, and ClickHouse hosts in NO_PROXY. See Configure egress.Troubleshooting
- The Tools page lists no built-in tools: Check that
fleetToolServer.enabledistrue, that thelangsmith-fleet-tool-serverpod isRunning, and that your chart version is 0.18.0-rc.87 or later. - Adding an MCP server fails for an internal URL: Use an HTTPS URL that is not a
*.svc.cluster.localhostname, and setSSRF_ALLOW_PRIVATE_IPS_MCP_SERVERSonplatform-backend. See Allow MCP servers on your network. - Connect shows that the provider is not configured: Set both variables for that provider. Check the Secret keys and namespace, then restart
platform-backend. - The provider reports a redirect mismatch: The redirect URL in the app must match your callback URL exactly, including scheme, host, base path, and path.
platform-backenddoes not start after upgrade: Check that the Secret exists and contains every key thatextraEnvreferences.
Security notes
- LangSmith encrypts stored user tokens with
API_KEY_SALT. Keep it unchanged after users connect accounts. See Use an existing secret. - Store OAuth app secrets in a Kubernetes Secret and reference them with
secretKeyRef. Do not put secret values directly in your Helm values file. SSRF_ALLOW_PRIVATE_IPS_MCP_SERVERSlets workspace admins add MCP servers on private IP addresses. Turn it on only if your users need internal MCP servers.
Next steps
- Tool Gateway: learn how agents call tools through the gateway.
- Enable Fleet: build and run agents that use the Tool Gateway.
- Configure environment variables: see every variable the chart sets.
Connect these docs to your agent of choice via MCP for real-time answers.

