Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ai/model-context-protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
The MCP search tool supports optional parameters that AI applications use to control and refine search results.

- **`pageSize`**: Number of results to return, between 1 and 50. Defaults to 10.
- **`scoreThreshold`**: Minimum relevance score between 0 and 1. Only returns results at or above this threshold. Use this to filter out low-relevance matches.

Check warning on line 47 in ai/model-context-protocol.mdx

View check run for this annotation

Mintlify / Mintlify Validation (mintlify) - vale-spellcheck

ai/model-context-protocol.mdx#L47

Use 'preceding' instead of 'above'.
- **`version`**: Filter results to a specific documentation version. For example, `'v0.7'`. Only returns content tagged with the specified version or content available across all versions.
- **`language`**: Filter results to a specific language code. For example, `'en'`, `'zh'`, or `'es'`. Only returns content in the specified language or content available across all languages.

Expand Down Expand Up @@ -135,18 +135,19 @@
```
</CodeGroup>

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.
</Step>
<Step title="Connect to the MCP server">
Use the access token as a bearer token when connecting to the `/authed/mcp` endpoint.
Expand Down
Loading