diff --git a/ai/model-context-protocol.mdx b/ai/model-context-protocol.mdx index 7ac5745ee..e7d1924f8 100644 --- a/ai/model-context-protocol.mdx +++ b/ai/model-context-protocol.mdx @@ -135,18 +135,19 @@ Client credentials authenticate against the `/authed/mcp` endpoint and return th ``` - The response includes an access token: + The response includes an access token and a refresh token: ```json { "access_token": "eyJhbGciOi...", "token_type": "Bearer", "expires_in": 1209600, + "refresh_token": "eyJhbGciOi...", "scope": "mcp:search" } ``` - Access tokens expire after 14 days. Request a new token when the current one expires. + Access tokens expire after the number of seconds specified in `expires_in`. Use the `refresh_token` to obtain a new access token when the current one expires. Use the access token as a bearer token when connecting to the `/authed/mcp` endpoint.