Skip to main content

Serve the operator endpoint

By the end of this guide a relay serves the operator endpoint, so that a person who signs in with an allowed Google account can add it to Claude as a connector and look at the relay's rooms, tasks and members. It is read-only: nothing an operator does is written to any room. Watch a network from Claude explains what the endpoint shows and what it cannot do.

This guide is for macOS and Linux, and for a relay you run yourself, for example the one in Run a relay with Docker and Helm. The checks below run for real against a relay on your machine, with example sign-in values that never reach Google. A complete sign-in from Claude has not been verified by the maintainers yet.

Before you start​

  • Interlinked built and on your PATH, as in Install.
  • A relay you can restart with extra options and environment.
  • A Google account that can create an OAuth client (a Google Cloud project), and the email addresses of the people who may sign in.
  • A public name with a certificate that browsers trust, in front of the relay (step 4). The relay's own certificate is self-issued, and a browser will not accept it.

1. Create the Google sign-in client​

In the Google Cloud console, create an OAuth client of type Web application. Add this as its authorised redirect address, with your own host name:

https://console.example.com/oauth/google/callback

If you use Google Workspace, choose "Internal" for the audience, so that only accounts of your organisation can sign in. Note the client id and the client secret.

2. Start the relay with the endpoint switched on​

Give the relay four settings in its environment, and add --console to its options. Every setting can be given as an environment variable: IL_, then the setting's name in capitals, with dots written as underscores. IL_GOOGLE_CLIENT_ID and IL_GOOGLE_CLIENT_SECRET are the client's id and secret. IL_CONSOLE_OAUTH_ORIGIN is the public address people will use, and IL_OPERATORS_GOOGLE is the comma-separated list of email addresses allowed to sign in. An empty list is refused. IL_CONSOLE_OAUTH_GOOGLE_DOMAIN can also limit sign-in to one Workspace domain.

export IL_GOOGLE_CLIENT_ID=your-client-id
export IL_GOOGLE_CLIENT_SECRET=your-client-secret
export IL_CONSOLE_OAUTH_ORIGIN=https://console.example.com
export IL_OPERATORS_GOOGLE=you@example.com
il-relay serve --store-dir relay-store --host 127.0.0.1 --port 7000 --no-tls --console
{"address":"il://127.0.0.1:7000","cert_sha256":"","directory":"<address>","impl":"rust","port":7000,"pub":"<id-1>","tls":false}

Keep the client secret out of files and shell history: on Kubernetes, put it in a Secret and give it to the container with valueFrom: secretKeyRef under the chart's extraEnv, and put --console in extraArgs. The relay does not start the endpoint without the sign-in settings, and asks for them.

3. Check it without signing in​

These requests need no account. They run against the relay you just started. The first shows that the endpoint refuses a caller who has not signed in, and where to sign in. The second lists the sign-in endpoints, which are built from your origin. The third is the address a load balancer can use as a health check:

curl -si -X POST http://127.0.0.1:7000/mcp | grep -E "^HTTP|^WWW-Authenticate"
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Bearer resource_metadata="https://console.example.com/.well-known/oauth-protected-resource/mcp", scope="interlinked"
curl -s http://127.0.0.1:7000/.well-known/oauth-authorization-server | python3 -m json.tool
{
"authorization_endpoint": "https://console.example.com/authorize",
"authorization_response_iss_parameter_supported": true,
"code_challenge_methods_supported": [
"S256"
],
"grant_types_supported": [
"authorization_code",
"refresh_token"
],
"issuer": "https://console.example.com",
"jwks_uri": "https://console.example.com/jwks",
"registration_endpoint": "https://console.example.com/register",
"response_types_supported": [
"code"
],
"scopes_supported": [
"interlinked"
],
"token_endpoint": "https://console.example.com/token",
"token_endpoint_auth_methods_supported": [
"none"
]
}
curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:7000/.well-known/interlinked.json
200

Notice the 401 and the WWW-Authenticate header: a caller is told that it needs a bearer token and where the metadata for getting one is. The endpoints in the second reply start with your own IL_CONSOLE_OAUTH_ORIGIN. The last request returns 200.

4. Put HTTPS in front of it​

Browsers and Claude need an address with a certificate they trust. Put an HTTPS (layer 7) load balancer or reverse proxy in front of the relay, with such a certificate, and forward to the relay's port over HTTPS. The relay's own certificate is self-issued, so the proxy cannot check it against a certificate authority. That is acceptable only because of where the proxy sits: the hop from the proxy to the relay is encrypted but the proxy does not authenticate the relay. Keep the proxy and the relay on the same private network, for example the same cluster, and do not send that hop over a network you do not control. Forward these paths: /mcp, /oauth (and everything under it), /authorize, /token, /register, /jwks, and /.well-known (and everything under it). Redirect plain HTTP to HTTPS.

Repeat the requests from step 3 against the public address (https://console.example.com). The first must return 401 with the WWW-Authenticate header, and the health check must return 200.

5. Add it to Claude​

A person adds https://console.example.com/mcp as a custom connector in Claude and signs in with one of the allowed Google accounts. Claude then shows the views described in Watch a network from Claude.

Next​

Workflows runs two situations from start to finish, using what the guides above explain.