This is an automated email from the ASF dual-hosted git repository.
bharos pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino-mcp-gateway.git
The following commit(s) were added to refs/heads/main by this push:
new 2c62fdd [MINOR] docs: Describe admin and user tasks through the REST
API and CLI (#10)
2c62fdd is described below
commit 2c62fdd9e27fadf225fb6d2f57760609481585c7
Author: Bharath Krishna <[email protected]>
AuthorDate: Wed Nov 18 20:28:48 2026 -0800
[MINOR] docs: Describe admin and user tasks through the REST API and CLI
(#10)
The web UI pages aren't part of this repository, so the docs now give the
REST API call or CLI command for each task: registering servers,
reviewing access requests, reading the audit log, registering service
accounts and requesting access.
---
README.md | 13 +--
docs/gravitino-mcp-gateway.md | 197 ++++++++++++++++++++----------------------
2 files changed, 99 insertions(+), 111 deletions(-)
diff --git a/README.md b/README.md
index c132cbb..ae30029 100644
--- a/README.md
+++ b/README.md
@@ -55,8 +55,8 @@ design.
- **Audit and metrics.** The calls the gateway passes on, the ones it refuses
for want of access, and admins' changes
are written to the audit log. Prometheus metrics are served at `/metrics`.
-- **Gravitino's web UI** manages the gateway: servers, access requests, service
- accounts and the audit log.
+- **Admin API.** Admins manage servers, access requests, service accounts and
+ the audit log over the gateway's REST API.
- **CLI** (`gravitino-mcp`). Signs in, configures installed AI clients, and
runs
a local proxy on port 8001 that adds the user's token to each MCP call.
@@ -144,7 +144,6 @@ export GATEWAY_API_SCOPES=gravitino
export GRAVITINO_MCP_URL=http://localhost:8100/mcp
export GRAVITINO_URI=http://localhost:8090 # alice, Gravitino's
service admin, is an admin
export USER_ID_CLAIM=preferred_username # the first of Gravitino's
principalFields
-export CORS_ALLOWED_ORIGINS=http://localhost:3000 # Gravitino's web UI, run
with pnpm dev
# TOKEN_ENCRYPTION_KEY and JWT_SECRET_KEY as above
uvicorn mcp_gateway.main:app --port 8000
```
@@ -156,11 +155,6 @@ To have the gateway exchange tokens instead (RFC 8693), set
`GRAVITINO_MCP_AUDIENCE=gravitino`.
[setup-realm.sh](dev/keycloak/setup-realm.sh)
shows the Keycloak settings each needs.
-Gravitino signs in with Keycloak too, and points its web UI at the gateway. The
-UI in the Gravitino image predates the MCP pages; to see them, run the UI from
-this repository with `pnpm install && pnpm dev` in `web-v2/web`, then open
-http://localhost:3000 and sign in as alice.
-
`MCP_GATEWAY_KEYCLOAK_TEST=1 uv run pytest -m integration
tests/integration/test_keycloak.py`
tests the gateway against this setup.
@@ -180,7 +174,8 @@ and `autostart`; run `gravitino-mcp --help` for the full
list.
## Service accounts
Workloads on GKE, GCE, or EKS call the gateway with their platform identity
-token, once an admin has registered the service account in Gravitino's web UI:
+token, once an admin has registered the service account
+(`POST /api/admin/service-accounts`):
```python
from mcp_gateway_sdk import get_gateway_sa_token
diff --git a/docs/gravitino-mcp-gateway.md b/docs/gravitino-mcp-gateway.md
index e842875..ae0f47d 100644
--- a/docs/gravitino-mcp-gateway.md
+++ b/docs/gravitino-mcp-gateway.md
@@ -100,7 +100,7 @@ The main settings are:
| `JWT_AUDIENCE` | The audience that people's tokens must carry. Required. |
| `GATEWAY_API_SCOPES` | Scopes that put `JWT_AUDIENCE` in a token,
space-separated. MCP clients read them from the gateway's metadata, and the
gateway's own sign-in asks for them too. With `OIDC_PROVIDER=azure`,
`user_access` by default. |
| `GATEWAY_LOGIN_SCOPES` | Replaces the scopes of the gateway's own sign-in,
space-separated: by default `openid profile email offline_access` and
`GATEWAY_API_SCOPES`, or `<client ID>/.default` with `OIDC_PROVIDER=azure`. |
-| `GATEWAY_OAUTH_ADDITIONAL_CLIENT_IDS` | Other OAuth clients whose tokens the
gateway accepts, such as Gravitino's web UI. Comma-separated. |
+| `GATEWAY_OAUTH_ADDITIONAL_CLIENT_IDS` | Other OAuth clients whose tokens the
gateway accepts. Comma-separated. |
| `GATEWAY_OAUTH_ACCEPT_ANY_CLIENT` | Accept people's tokens for
`JWT_AUDIENCE` from any client of the identity provider, such as MCP clients
that register themselves (RFC 7591). They must still come from the configured
issuer and carry a verified email. |
| `JWT_SECRET_KEY` | Signs the gateway's sessions and sign-in states. At least
32 characters. Required. |
| `TOKEN_ENCRYPTION_KEY` | Encrypts the tokens and passwords the gateway
stores. Required, unless `TOKEN_ENCRYPTION_KEY_FILE` names a file that holds
it, or a cloud secret store holds it as `mcp-gateway-encryption-key`. |
@@ -111,7 +111,7 @@ The main settings are:
| `USER_ID_CLAIM` | The claim that names people, `email` by default. |
| `GRAVITINO_MCP_URL` | The Gravitino MCP server, registered as `gravitino`
and open to everyone. |
| `GRAVITINO_MCP_AUDIENCE` | The audience Gravitino expects, when it differs
from `JWT_AUDIENCE` and the gateway must exchange tokens. |
-| `CORS_ALLOWED_ORIGINS` | Origins that may call the gateway's API, such as
Gravitino's web UI. Comma-separated. |
+| `CORS_ALLOWED_ORIGINS` | Origins that may call the gateway's API from a
browser. Comma-separated. |
| `DATABASE_URL` | The database. MySQL connections use TLS:
`DATABASE_SSL_MODE` is `REQUIRED` by default, which doesn't check the server's
certificate; `VERIFY_CA` and `VERIFY_IDENTITY` do, and `DISABLED` turns TLS
off. Each replica keeps up to `DATABASE_POOL_SIZE` connections open and opens
`DATABASE_MAX_OVERFLOW` more when busy, 10 each by default. |
| `UPSTREAM_TLS_VERIFY` | `true`, `false`, or the path of a CA bundle, for MCP
servers and their authorization servers with private certificates. For an
identity provider with a private certificate, set `SSL_CERT_FILE` and
`REQUESTS_CA_BUNDLE` to a bundle that includes its CA. |
| `MCP_TOOL_FILTERS` | The tools each MCP server exposes. See [Tool
filters](#tool-filters). |
@@ -147,12 +147,11 @@ Also:
### Tokens and audiences
-People's tokens must carry `JWT_AUDIENCE` as their audience. The simplest
setup sets
-`JWT_AUDIENCE` to Gravitino's `gravitino.authenticator.oauth.serviceAudience`.
The tokens of
-Gravitino's web UI and of MCP clients then work for both, and the gateway
forwards them to
-Gravitino's MCP server without an exchange. Put that audience in tokens with a
scope, such as a
-Keycloak client scope with an audience mapper, and list the scope in
`GATEWAY_API_SCOPES`, or make
-it a default scope of every client that signs people in.
+People's tokens must carry `JWT_AUDIENCE` as their audience. The simplest
setup sets `JWT_AUDIENCE`
+to Gravitino's `gravitino.authenticator.oauth.serviceAudience`. MCP clients'
tokens then work for
+both, and the gateway forwards them to Gravitino's MCP server without an
exchange. Put that audience
+in tokens with a scope, such as a Keycloak client scope with an audience
mapper, and list the scope
+in `GATEWAY_API_SCOPES`, or make it a default scope of every client that signs
people in.
If the gateway has an audience of its own, set `GRAVITINO_MCP_AUDIENCE` to
Gravitino's, and the
gateway exchanges each person's token for one that Gravitino accepts (RFC
8693, or on-behalf-of
@@ -161,9 +160,9 @@ with Entra).
### Gravitino's MCP server
With `GRAVITINO_MCP_URL` set, the gateway registers Gravitino's MCP server as
`gravitino` at each
-start where no `gravitino` server exists. Later changes to these settings
don't update it; change
-it on **MCP > Manage Servers** instead. To remove it for good, unset
`GRAVITINO_MCP_URL` before
-you delete it, or deactivate it. Run the MCP server with `--transport http`,
and with
+start where no `gravitino` server exists. Later changes to these settings
don't update it; change it
+with `PATCH /api/admin/mcp/gravitino` instead. To remove it for good, unset
`GRAVITINO_MCP_URL`
+before you delete it, or deactivate it. Run the MCP server with `--transport
http`, and with
`--no-service-identity-fallback` if it also has a token or OAuth client
credentials of its own, so
that every call runs as the person making it, and with `--mcp-url
http://0.0.0.0:8000/mcp` in a
container, so that the gateway can reach it. Only Gravitino's read tools are
exposed, unless
@@ -196,68 +195,41 @@ Pick a claim that people cannot change themselves. The
names can still differ fr
Gravitino also maps principals (`principalMapper`), or if another account
already has the name,
in which case the gateway names the person by their email.
-## Use it from Gravitino's web UI
-
-Gravitino's web UI has an **MCP** section. People see the gateway's MCP
servers and their access
-to each, ask for access, connect to the servers that have their own sign-in,
and read the audit
-log of their calls. Admins register servers, review access requests, revoke
access, manage service
-accounts, and read everyone's audit log. The UI calls the gateway's API from
the browser with the
-person's Gravitino sign-in, so Gravitino's web UI must sign in with OIDC
-(`gravitino.authenticator.oauth.provider = oidc`) against the gateway's
identity provider.
-
-Tell the UI where the gateway is in `conf/gravitino.conf`, with an https URL,
or http on
-`localhost`: the browser sends the person's token there. If
`gravitino.server.visibleConfigs`
-already lists keys, add `gravitino.mcpGateway.uri` to the list.
-
-```text
-gravitino.mcpGateway.uri = https://mcp-gateway.example.com
-gravitino.server.visibleConfigs = gravitino.mcpGateway.uri
-```
-
-Then set the gateway up to accept the UI's calls:
-
-- The UI's tokens must carry the gateway's `JWT_AUDIENCE`.
-- The UI's OAuth client, `gravitino.authenticator.oauth.clientId`, must be in
- `GATEWAY_OAUTH_ADDITIONAL_CLIENT_IDS`, unless
`GATEWAY_OAUTH_ACCEPT_ANY_CLIENT` is set.
-- The UI's origin must be in `CORS_ALLOWED_ORIGINS`.
-- `GRAVITINO_URI` should point at Gravitino, so that Gravitino's service
admins manage the
- gateway too.
-
## Register MCP servers
-Admins register MCP servers on the web UI's **MCP > Manage Servers** page, or
with
-`POST /api/admin/mcp/`. A server's ID is part of the URL that MCP clients use,
-`https://mcp-gateway.example.com/mcp/<server ID>`, and cannot change later. It
has 3 to 100
-lowercase letters, digits, `.`, `_` and `-`, and starts with a letter or a
digit.
+Admins register MCP servers with `POST /api/admin/mcp/`. A server's ID is part
of the URL that MCP
+clients use, `https://mcp-gateway.example.com/mcp/<server ID>`, and cannot
change later. It has 3 to
+100 lowercase letters, digits, `.`, `_` and `-`, and starts with a letter or a
digit.
### How the gateway signs in to a server
Each server says how the gateway signs in to it for people, and how for
service accounts. For
people, the choices are:
-| In the web UI | In the API | What the MCP server receives |
-| --- | --- | --- |
-| OAuth, with **Single sign-on** on and the gateway's `JWT_AUDIENCE` or
`GATEWAY_OAUTH_CLIENT_ID` as the **Audience** | `"auth_type": "oauth"`,
`"auto_sso_enabled": true`, `"audience": "<JWT_AUDIENCE>"` | The person's own
token: the one stored at their latest sign-in to the gateway or the CLI, or
else the token on the call. Use it for servers that accept the same tokens as
the gateway, such as Gravitino's. The token is valid at the gateway too, so the
server could call the gateway as the [...]
-| OAuth, with **Single sign-on** on and another **Audience** | The same, with
the server's audience | A token for that audience, which the gateway exchanges
for the person's own (RFC 8693, or Entra's on-behalf-of flow). **Scopes**
(`oauth_scopes`) asks for particular scopes. |
-| OAuth, with **Single sign-on** off | `"auth_type": "oauth"`,
`"auto_sso_enabled": false` | A token from the server's own sign-in, which each
person connects once. |
-| A token from the gateway | `"auth_type": "passthrough"` | A token the
gateway signs for each call, with `iss` `gravitino-mcp-gateway`, `aud` the
server ID, `sub` the person's name, their `email`, `name` and
`preferred_username`, and `principal_type`, `person` or `service_account`. It
expires after 15 minutes. The server checks it against
`<gateway>/.well-known/jwks.json`. |
-| Basic, with the gateway's credentials | `"auth_type": "basic"`,
`basic_auth_username`, `basic_auth_password` | The same user name and password,
whoever calls. |
+| Settings | What the MCP server receives |
+| --- | --- |
+| `"auth_type": "oauth"`, `"auto_sso_enabled": true`, and the gateway's
`JWT_AUDIENCE` or `GATEWAY_OAUTH_CLIENT_ID` as `"audience"` | The person's own
token: the one stored at their latest sign-in to the gateway or the CLI, or
else the token on the call. Use it for servers that accept the same tokens as
the gateway, such as Gravitino's. The token is valid at the gateway too, so the
server could call the gateway as the person: give this audience only to servers
you trust as much as the ga [...]
+| The same, with the server's audience | A token for that audience, which the
gateway exchanges for the person's own (RFC 8693, or Entra's on-behalf-of
flow). `oauth_scopes` asks for particular scopes. |
+| `"auth_type": "oauth"`, `"auto_sso_enabled": false` | A token from the
server's own sign-in, which each person connects once. |
+| `"auth_type": "passthrough"` | A token the gateway signs for each call, with
`iss` `gravitino-mcp-gateway`, `aud` the server ID, `sub` the person's name,
their `email`, `name` and `preferred_username`, and `principal_type`, `person`
or `service_account`. It expires after 15 minutes. The server checks it against
`<gateway>/.well-known/jwks.json`. |
+| `"auth_type": "basic"`, `basic_auth_username`, `basic_auth_password` | The
same user name and password, whoever calls. |
For servers with their own sign-in, the gateway finds the server's
authorization server from the
-server's protected resource metadata (RFC 9728), or from the **Authorization
server metadata URL**
-(`oauth_metadata_url`). The authorization server must use https. Without a
**Client ID**
+server's protected resource metadata (RFC 9728), or from the authorization
server metadata URL
+(`oauth_metadata_url`). The authorization server must use https. Without a
client ID
(`oauth_client_id`), the gateway registers itself with that authorization
server (RFC 7591). To
register a client yourself, use
`<GATEWAY_BASE_URL>/portal/callback/mcp-oauth/<server ID>` as its
-redirect URI: each server has its own, so that a code can't come back as
another server's. A **Client secret** (`oauth_client_secret`) needs the
metadata URL, so that the secret goes
-only to an authorization server an admin named.
+redirect URI: each server has its own, so that a code can't come back as
another server's. A client
+secret (`oauth_client_secret`) needs the metadata URL, so that the secret goes
only to an
+authorization server an admin named.
For service accounts (`service_auth_type`), the choices are a token from the
gateway
(`passthrough`, the default), basic auth with the gateway's credentials
(`basic`), or a secret
that the service account's registration names (`credential_forward`, see
[Service accounts](#service-accounts)). Service accounts never reach a server
with OAuth.
-Both the web UI and the API create servers that require approval. Single
sign-on is on by default
-in the web UI, and off in the API. For example, a server that takes exchanged
tokens:
+New servers require approval unless `requires_approval` is false, and single
sign-on is off
+unless `auto_sso_enabled` is true. For example, a server that takes exchanged
tokens:
```shell
curl -X POST https://mcp-gateway.example.com/api/admin/mcp/ \
@@ -285,12 +257,12 @@ the admin's call, with secrets redacted.
### Who may use a server
-- **Requires approval** on: people ask for access, and an admin approves or
denies each request.
+- `requires_approval` true: people ask for access, and an admin approves or
denies each request.
Turning it on takes away the access that people got while the server was
open; access that an
admin approved stays.
-- **Requires approval** off: the server is open, and anyone signed in may use
it.
-- **Only admins see it**: other people can't see or call the server.
-- **Active** off: the server answers as if it didn't exist.
+- `requires_approval` false: the server is open, and anyone signed in may use
it.
+- `admin_only` true: other people can't see or call the server.
+- `is_active` false: the server answers as if it didn't exist.
Service accounts see and reach only the servers their registration lists, and
don't ask for
access.
@@ -309,42 +281,63 @@ MCP_TOOL_FILTERS={"gravitino": ["get_", "list_", "load_",
"metadata_"], "trino":
## Review access requests
-Requests appear on the web UI's **MCP > Access Requests** page, under
**Pending**. Approve a
-request with **Expires after (days)**, from 1 to 3650, to grant access for a
while, or leave it
-empty for access that doesn't expire. **Note to the user** explains a
decision: the person sees it
-on **My Servers** when they are denied, and can ask again. When two admins
review the same
-request, only the first decision counts. Under **Granted**, **Revoke** takes
access away. On an
-open server, revoking does nothing lasting: anyone may use it, and the gateway
grants access
-again at the next call.
+`GET /api/mcp-access/admin/pending` lists the pending requests, 25 to a page
unless `page_size`
+says otherwise, up to 100; `page` picks the page. An admin approves or denies
one with
+`POST /api/mcp-access/admin/review/<request ID>`:
+
+```shell
+curl -X POST https://mcp-gateway.example.com/api/mcp-access/admin/review/42 \
+ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \
+ -d '{"status": "approved", "expires_in_days": 30}'
+```
+
+`expires_in_days`, from 1 to 3650, grants access for a while; without it,
access doesn't expire.
+`admin_notes` explains a decision: a person who is denied sees it in
+`GET /api/mcp-access/my-requests`, and can ask again. When two admins review
the same request, only
+the first decision counts. `GET /api/mcp-access/admin/permissions` lists who
has access, paged the
+same way, and `DELETE /api/mcp-access/admin/permissions/<permission ID>` takes
it away. On an open
+server, revoking does nothing lasting: anyone may use it, and the gateway
grants access again at the
+next call.
## Read the audit log
-The **Audit Log** page lists the calls of people and service accounts: every
request the gateway
+`GET /api/audit/logs` lists the calls of people and service accounts: every
request the gateway
passes to a server, `tools/list` included, with the method as the tool name
for anything but a
tool call; every call to a server that it refuses for want of access, as
`unauthorized`; every
tool call whose client left before it finished, as `cancelled`, since it may
still have run; and
every change an admin makes to a server or a service account. Calls without a
valid token, and
calls to servers that don't exist for the caller, are not recorded.
-Each person sees their own calls; admins see everyone's, and can narrow the
list to one account.
-The page reaches back up to 30 days. Anyone can export what they see as CSV,
up to the latest
-10,000 calls. The log keeps each call's arguments, and with
`AUDIT_LOG_RESPONSES` its response,
-so admins can read them. Arguments whose names look like secrets, such as
`password`, `token` or
-`api_key`, are kept as `[redacted]`. Arguments or a response longer than
10,000 characters are
-kept as their first 1,000, with the original's size and SHA-256. The gateway
deletes calls older
-than `AUDIT_RETENTION_DAYS`, 90 days by default.
+Each person sees their own calls; admins see everyone's, and can narrow the
list to one account with
+its numeric `user_id`, as the log's entries give it. `service`, `tool_name`
and `status` (`success`,
+`error`, `unauthorized` or `cancelled`) narrow it further, `start_date` and
`end_date` bound the
+period, and `limit`, 100 by default and up to 1,000, and `offset` page through
it.
+`GET /api/audit/logs/export/csv` exports what the caller sees as CSV, with the
same filters, up to
+the latest 10,000 calls. The log keeps each call's arguments, and with
`AUDIT_LOG_RESPONSES` its
+response, so admins can read them. Arguments whose names look like secrets,
such as `password`,
+`token` or `api_key`, are kept as `[redacted]`. Arguments or a response longer
than 10,000
+characters are kept as their first 1,000, with the original's size and
SHA-256. The gateway deletes
+calls older than `AUDIT_RETENTION_DAYS`, 90 days by default.
## Service accounts
Workloads on GKE, GCE or EKS call MCP servers through the gateway with their
platform's identity
-token. An admin registers each one on the web UI's **MCP > Service Accounts**
page:
+token. An admin registers each one with `POST /api/admin/service-accounts`:
-- **Workload identity**: the GCP service account's email, or for EKS
- `<namespace>::<service account>::<cluster ID>`, where the cluster ID is the
part of the
- cluster's OIDC issuer URL after `/id/`.
-- **Servers it may call**: the only servers the service account reaches.
-- **Token issuer**: the issuer its tokens must come from, which replaces
`TRUSTED_ISSUERS` for
- this account. An EKS identity of the form `<namespace>::<service account>`
needs it.
+- `oauth_credentials.service_account_name`, its workload identity: the GCP
service account's
+ email, or for EKS `<namespace>::<service account>::<cluster ID>`, where the
cluster ID is the
+ part of the cluster's OIDC issuer URL after `/id/`.
+- `allowed_services`: the IDs of the only servers the service account reaches.
+- `additional_config.iss`: the issuer its tokens must come from, which replaces
+ `TRUSTED_ISSUERS` for this account. An EKS identity of the form
+ `<namespace>::<service account>` needs it.
+
+```shell
+curl -X POST https://mcp-gateway.example.com/api/admin/service-accounts \
+ -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" \
+ -d '{"name": "svc-etl", "provider": "google", "allowed_services": ["tools"],
+ "oauth_credentials": {"service_account_name":
"[email protected]"}}'
+```
The gateway trusts the issuers in `TRUSTED_ISSUERS`, comma-separated, such as
`https://accounts.google.com` and the EKS cluster's OIDC issuer URL. It finds
their signing keys
@@ -382,8 +375,8 @@ comma-separated. The gateway refuses a call without a
required header, and forwa
MCP servers and the audit log.
For a server whose `service_auth_type` is `credential_forward`, the
registration's
-**Other configuration (JSON)** names the secret to send, under the server's
ID, and the account
-must list the server under **Servers it may call**:
+`additional_config` names the secret to send, under the server's ID, and the
account must list
+the server in `allowed_services`:
```json
{"downstream_credentials": {"etl": {"secret_ref": "mcp-gateway-sa-etl",
"auth_header_type": "bearer"}}}
@@ -396,10 +389,11 @@ bearer token, or with `"auth_header_type": "basic"` and a
`username`, as basic a
## Connect an MCP client
-Find the servers on the web UI's **MCP > My Servers** page, with your access
to each and the URL
-that MCP clients use. For a server that requires approval, **Request access**
and say why; the
-page shows the request as **Pending approval** until an admin decides. Open
servers need no
-request.
+`gravitino-mcp services` lists the servers you can see. MCP clients reach each
one at
+`<gateway>/mcp/<server ID>`. For a server that requires approval, ask with
+`POST /api/mcp-access/request`: its `mcp_id` is the server's numeric `id` in
+`GET /api/catalog/mcps`, and `justification` says why. `GET
/api/mcp-access/my-requests` shows the
+request as pending until an admin decides. Open servers need no request.
### Clients that sign in themselves
@@ -453,18 +447,18 @@ in themselves instead. Keep `~/.gravitino-mcp/tokens` as
private as a password.
### Servers with their own sign-in
-On **My Servers**, **Connect** a server that has its own sign-in before using
it, or run
-`gravitino-mcp connect <server ID>`. **Disconnect** removes the connection.
Signing out of the
-gateway deletes your gateway token and the tokens the gateway got with it, but
not these
-connections, which you made yourself.
+Connect a server that has its own sign-in before using it, with
+`gravitino-mcp connect <server ID>`. `POST /portal/disconnect/<server ID>`
removes the
+connection. Signing out of the gateway deletes your gateway token and the
tokens the gateway got
+with it, but not these connections, which you made yourself.
### When a call fails
| The client reports | Do this |
| --- | --- |
-| `Access denied. You don't have permission to access <server>. Please request
access.` | Request access on **My Servers**. |
+| `Access denied. You don't have permission to access <server>. Please request
access.` | Request access with `POST /api/mcp-access/request`. |
| `Your permission to access <server> has expired.` | Request access again. |
-| `Not connected to <server>.` | For a server with its own sign-in,
**Connect** it on **My Servers**. For a server with single sign-on, the token
exchange failed: an admin checks the gateway's log, and the identity provider's
exchange permissions. |
+| `Not connected to <server>.` | For a server with its own sign-in, run
`gravitino-mcp connect <server ID>`. For a server with single sign-on, the
token exchange failed: an admin checks the gateway's log, and the identity
provider's exchange permissions. |
| `Tool '<tool>' is not available on <server>.` | The server's tool filter
hides the tool. |
| `Service '<server>' not found or inactive` | Check the server ID. The server
may also be inactive, or only for admins. |
@@ -480,16 +474,15 @@ The gateway uses Slack only when these settings are set:
- `SLACK_BOT_TOKEN` and `SLACK_APP_TOKEN`: people sign in to the gateway from
Slack with
`/gravitino-mcp login`, through the device flow, and out with
`/gravitino-mcp logout`. The bot
connects with Socket Mode, and installs with the `/gravitino-mcp` command.
-- `SLACK_USER_TOKENS_ENABLED=true`, with the bot's two tokens: a Slack app's
service account may
- ask for the gateway token of someone who signed in from Slack (`POST
/api/sa/user-tokens`). The
- person approves each request in Slack, which names the service account that
asks, and the
- approval lasts 30 minutes. The person's approval is what protects them: the
request's
- signature, made with the Slack app's own signing secret, proves no more than
the service
- account's token does. The service account's **Other configuration
- (JSON)** holds the Slack app's signing secret, and allows it:
+- `SLACK_USER_TOKENS_ENABLED=true`, with the bot's two tokens: a Slack app's
service account may ask
+ for the gateway token of someone who signed in from Slack (`POST
/api/sa/user-tokens`). The person
+ approves each request in Slack, which names the service account that asks,
and the approval lasts
+ 30 minutes. The person's approval is what protects them: the request's
signature, made with the
+ Slack app's own signing secret, proves no more than the service account's
token does. The service
+ account's `additional_config` holds the Slack app's signing secret, and
allows it:
`{"slack_signing_secret": "<secret>", "token_retrieval_services":
"slack_gateway"}`. The app can
- then act as the person until the token expires, so turn this on only for
Slack apps you trust
- with people's tokens.
+ then act as the person until the token expires, so turn this on only for
Slack apps you trust with
+ people's tokens.
## Limitations