Skip to the content
DevelopersSwitched on by HeyServo

OAuth apps and service clients

Give your own servers machine access to HeyServo's MCP tools with a service client, or register your own app that signs people in with their HeyServo account.

Where
Workspace menuDeployDevelopersMCP & OAuth
Permission
Needs Manage keys and webhooks
Requires
HeyServo switches the MCP server on for your account
Time
6 min read
Markdown
01 / 05New service client. On DevelopersMCP & OAuth, under Service clients, click New service client.
  1. New service client. On DevelopersMCP & OAuth, under Service clients, click New service client.
  2. Name it and pick a role. It acts as one of your custom roles. Make a role with only what the job needs.
  3. Tick the scopes. Scopes are a ceiling on top of the role. Here: see and change boards.
  4. Copy the secret once. The client id and secret, and the command to get a token.
  5. It is in the list. Rotate its secret or remove it from its row.

Which one you need

HeyServo signs apps in with OAuth 2.1, the same way it signs in AI apps like Claude. Most people never need this page: Claude, ChatGPT and Cursor register themselves. Use it when you build something of your own.

Service clientOAuth app
ForYour own server, with no person signed inYour own app that people sign in to with their HeyServo account
Acts asOne of the workspace's custom rolesThe person who signs in and approves it
Grantclient_credentialsAuthorization code with PKCE
SecretAlways, shown onceOnly if Confidential is on
ReachesThe MCP tools that do not need a personEvery MCP tool the person and the approved scopes allow

Service clients

A service client is a client id and secret that act as one of the workspace's custom roles, with no person signed in. Your server exchanges them for an access token, then uses the token with the MCP server.

GoalA client id and secret stored on your server.

  1. 1

    Create a custom role for the job

    On Roles and permissions, make a role with only what the server needs, for example Order sync with Work tickets. Built-in roles cannot be used: they are for people.

  2. 2

    Open DevelopersMCP & OAuth and click New service client

  3. 3

    Fill in Name, Acts as and Scopes

    The scopes are a ceiling on top of the role.

  4. 4

    Click Create and copy the secret

    Copy the client secret now shows the Client ID, the secret and a Get a token command. The secret is shown only once.

New service client4 controls
NameText
Your label, for example Order sync.
Acts asChoice
Custom roles only; the built-in ones are for people. With none: "This workspace has no custom roles yet. Create one on Roles first." and Open Roles.
ScopesList
A ceiling: the client holds the role's permissions under these scopes, and never more than you hold yourself. The scope names are on MCP server.
CreateButton
Makes the client and shows its secret once.
  • Like a console key, a service client needs you to reach every assistant, and it can never hold more than your own role.
  • It has no person behind it, so tools that act as a person (knowledge, contacts, the team and others) are hidden from it. It reaches what a console key could: conversations, leads, calls, tickets, usage and the like.

Get a token

curl -X POST https://app.heyservo.ai/oauth/token \
  -u YOUR_CLIENT_ID:YOUR_CLIENT_SECRET \
  -d grant_type=client_credentials
Copy the exact command from the dialog: it has your token endpoint and client id.

The access token lasts 60 minutes by default. Ask for a new one when it runs out. Connect your MCP client library to the Server URL from DevelopersMCP & OAuth with the token as a Bearer token.

Rotate or remove

Row actions2 controls
Rotate secretButton
The old secret stops working at once; update whatever uses it. You see New secret ready.
RemoveButton
Anything using this client stops working at once. This can't be undone.

OAuth apps

An OAuth app is your own app that signs people in through HeyServo, with redirect URIs of its own. Each person sees the same consent screen as for Claude, approves it, and the app then acts as them.

GoalA client id your app can sign people in with.

  1. 1

    Open DevelopersMCP & OAuth and click New OAuth app

  2. 2

    Give it a Name and its Redirect URIs

    One per line. https, or http on localhost for a desktop app.

  3. 3

    Decide on Confidential

    On for a server-side app that can keep a client secret. Off for a desktop, mobile or browser app.

  4. 4

    Click Create

    A public app: "OAuth app created. Its client id is in the list." A confidential app opens Copy the client secret now with its client id and secret, shown once.

New OAuth app3 controls
NameText
What people see on the consent screen.
Redirect URIsList
Where HeyServo may send people back after they approve. They must match exactly, except that a localhost or 127.0.0.1 address may use any port.
Limit 20
ConfidentialSwitch
A server-side app that can keep a client secret. Leave off for a desktop, mobile or browser app.
Default Off
OAuth apps list4 controls
Redirect URIsShown
Where it may send people back.
TypeShown
Confidential or Public.
{n} people connectedShown
How many people have approved it.
Rotate secret, RemoveButton
As for service clients.

The sign-in flow

HeyServo is a standard OAuth 2.1 authorization server. Most OAuth libraries need only its discovery address.

  1. Your app reads /.well-known/oauth-authorization-server on the HeyServo base address for the endpoints.
  2. It sends the person to /oauth/authorize with your client id, a redirect URI, the scopes, a state and a PKCE challenge (S256 only). Ask for offline_access to get a refresh token.
  3. The person signs in if needed and answers the consent screen. They can untick scopes, never add.
  4. HeyServo redirects back with code, state and iss. The code lasts ten minutes and works once.
  5. Your app exchanges the code at /oauth/token with the PKCE verifier (and the secret, if confidential).
  6. It calls the MCP server with Authorization: Bearer <access token>.
  7. When the access token runs out, it uses the refresh token at /oauth/token. Each use gives a new refresh token; using an old one twice ends the connection.
EndpointUse
/.well-known/oauth-authorization-serverDiscovery: every endpoint and what the server supports
/oauth/authorizeSend the person here to sign in and approve
/oauth/tokenExchange a code, refresh a token, or get a service client token
/oauth/revokeRevoke a token
/oauth/registerDynamic registration for public clients
/.well-known/jwks.jsonThe keys tokens are signed with

Kinds of client

LabelWhat it is
Published appAn app that publishes its own client document, such as Claude.
Self-registered appAn app that registered itself when it first connected, such as Cursor.
Registered hereAn OAuth app made on this page.
Service clientA service client made on this page.

Connected apps

Everyone sees the apps they let in under their account menu's Connected apps, with the workspaces, access and tool profile each has, and can Disconnect any of them. See MCP server.

Questions people ask

Keep going
OAuth apps and service clients · HeyServo Docs