Connect an MCP server with each person's own account
Let the coding agents on a workstation use a remote MCP server, such as Linear's or Notion's, as the person who owns the workstation.
Let the coding agents on a workstation use a remote MCP server, such as Linear’s or Notion’s, as the person who owns the workstation. Use this when the server signs people in with OAuth and you don’t want anyone to create or paste a key.
Prerequisites
- Ringleader installed. Everyone who connects an account is signed in, as Sign in to your organization shows.
- Admin rights in your Ringleader organization, to create the provider and the Integration.
- The address of an MCP server that signs people in with OAuth. The service’s documentation gives it.
- Workstations in the namespace
acme, labeledteam: platform. Each runs on its owner’s computer on vz, qemu or hcs, or on a cloud provider where the namespace has an Edge. - A coding agent on those workstations that takes an MCP server from an Integration. MCP server registration by agent lists them.
- The examples use an organization named
acmeand Linear’s server. Replace the names and the address with yours.
Create a provider for the server
A provider tells Ringleader which server people connect to. An org admin creates it once:
Save this file as
linear-provider.yaml. The provider’s name must start with your organization’s name and a hyphen:apiVersion: core.ringleader.dev/v1 kind: OrgCredentialProvider metadata: name: acme-linear spec: org: acme mcpServer: url: https://mcp.linear.app/mcpApply the file:
rl apply -f linear-provider.yamlList the providers you can connect to. The output includes
OrgCredentialProvider/acme-linear:rl userauthorization mcp-providers
An org admin can also create the provider in the Ringleader console, with Add MCP provider on the MCP providers page.
Register the server with the coding agents
An Integration registers the server with the coding agents. It also tells Ringleader to add the token of the workstation’s owner to each request as it leaves the workstation, so the token is never on the workstation. An org admin creates it once:
Save this file as
linear.yaml.mcp.urlmust be the same address as the provider’surl:apiVersion: workstations.ringleader.dev/v1 kind: Integration metadata: name: linear namespace: acme spec: type: httpProxy selector: matchLabels: team: platform mcp: name: linear url: https://mcp.linear.app/mcp credentialSource: provider: kind: OrgCredentialProvider name: acme-linear userAuthorization: boxOwnerApply the file:
rl apply -f linear.yaml
Someone who is not an org admin needs the use right on the provider to apply this file.
Use right on a provider
shows how to give it.
Programs on the workstation can act as its owner
scopes in the provider
before anyone connects, as
mcpServer describes.Connect your account
Each person connects their own account once. Connecting needs no admin rights, only membership of the organization. Start the connection, which opens the service’s approval page in your browser:
Use the application
- In Workstations, open your workstation’s card and click View details.
- Click the Tools tab. Under MCPs, the server says Needs approval once the workstation has the Integration’s rules.
- In the server’s menu, click Review connection.
- Click Connect account. The Account connections panel then opens.
- Click Connect acme-linear.
Use the command line
Run rl userauthorization connect OrgCredentialProvider/acme-linear.
Then approve the connection in the browser:
- On the service’s page, sign in to your account there.
- Approve Ringleader. The browser then returns to a Ringleader page named Connect account.
- If that page asks you to sign in, click Sign in and use the Ringleader account that started the connection.
- Check that the page names you and the provider.
- Click Connect. The application or the command then says that your account is connected.
If nobody has created an Integration for the server, you can connect and create one for your own
workstations together, with the use right on the provider. On the Credentials page of the
Ringleader console or the application, click Add credential, then Connect an MCP server.
Check that the agents reach the server
On the workstation, run the agent’s own command for listing MCP servers, such as claude mcp list.
Check that an injected MCP server gets its key
says what each agent prints.
Use your own OAuth app
Some servers accept only an OAuth app that you registered with them. The connect command then says that the server “accepts neither a client ID metadata document nor dynamic registration”. An org admin registers an app and names it in the provider:
Read the provider’s callback address,
status.oauthCallbackURL:rl orgcredentialprovider get acme-linear -o yamlAt the service, register an OAuth app with that address as its redirect URL. The service gives you a client ID, and usually a client secret.
Store the client secret so that only Ringleader can read it, as Ringleader-only Secrets explains:
rl secret create linear-oauth -n acme --ringleader-only --from-string client-secret=<your-client-secret>Add the client ID and the Secret to
mcpServerinlinear-provider.yaml. Leave outclientSecretRefif the service gave you no secret:mcpServer: url: https://mcp.linear.app/mcp clientId: <your-client-id> clientSecretRef: namespace: acme name: linear-oauth key: client-secretApply the file again:
rl apply -f linear-provider.yaml
Anyone who connected before the provider named your app connects again.
Keep your account connected
Ringleader renews your token for you. If the service refuses to renew it, or gives tokens that cannot be renewed, your workstations stop getting a token when it expires. Run the connect command again, or connect again in the application.
To list your connections, and to remove one:
rl userauthorization get
rl userauthorization delete <name>Deleting a connection removes it from Ringleader, and revokes it at the service if the service offers a way to.
Troubleshoot
When the token is not added, requests still reach the server without it, and the server usually
answers 401. The Credential injection section of rl workstation describe <name> says what is
wrong for that workstation. The same section of rl integration describe linear -n acme says what is
wrong for every workstation the Integration selects.
- If it says the workstation’s owner has not connected the provider, the owner runs the connect
command it names. The reason is
AuthorizationRequired. - If it says the provider refused to renew the owner’s authorization, the owner runs the connect
command again. The reason is
ConsentExpired. - If it says the provider does not exist or is not reachable, check the kind and name in the
Integration. The reason is
ProviderNotFound. - If it says the Integration’s author no longer has the
useright, give it back, or have someone who has it apply the Integration. The reason isProviderUseDenied. - If it says the workstation’s provider cannot carry a token that expires, create the workstation on
vz, qemu or hcs. If it says the Edge’s agent cannot ask for a fresh token, update the Edge. The
reason is
EdgeCannotRenewfor both. - If it says the token service did not hand out a token, wait a few minutes. If it still says so, ask
whoever runs your Ringleader deployment. The reason is
TokenUnavailable. - If the connect command says “this provider cannot be connected: it does not exist, or you may not use it”, check the provider’s name, and that you are a member of its organization.
- If the connect command says “this device connects only GlobalCredentialProvider/github”, you are
signed out. Run
rl auth login, and then the connect command again. - If the browser page says “This connection has expired or was started by another account”, sign in to the Ringleader console with the account that ran the command, and start again.
- If
rl applysays thatspec.mcp.url“must match the provider’s spec.mcpServer.url”, copy the address from the provider. - If the host’s reason is
HostContested, another Integration names the same host for the same workstation. Remove one of the two.
Next steps
- MCP servers for coding agents says which agents get an MCP server, and shows a server with a key in a Secret.
- CredentialProvider lists the fields of a provider, who may name one, and the flags of the connect command.
- Credential providers explains what a provider does.
- Connect workstations to GitHub with the Ringleader GitHub App does the same for Git and the GitHub API.