You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contextual menu provides quick access to AI-optimized content and direct integrations with popular AI tools. When users select the contextual menu on any page, they can copy content as context for AI tools or open conversations in ChatGPT, Claude, Perplexity, or a custom tool of your choice with your documentation already loaded as context.
10
11
@@ -63,9 +64,7 @@ Create custom options in the contextual menu by adding an object to the `options
63
64
The description of the option. Displayed beneath the title when the contextual menu is expanded.
64
65
</ResponseField>
65
66
66
-
<ResponseFieldname="icon"type="string"required>
67
-
The icon of the option. Accepts any icon from the [Icons](/components/icons) collection.
The [llms.txt file](https://llmstxt.org) is an industry standard that helps LLMs index content more efficiently, similar to how a sitemap helps search engines.
9
+
The [llms.txt file](https://llmstxt.org) is an industry standard that helps LLMs index content more efficiently, similar to how a sitemap helps search engines. AI tools can use this file to understand your documentation structure and find content relevant to user queries.
10
10
11
-
Mintlify automatically hosts an `llms.txt` file at the root of your project that lists all available pages in your documentation. AI tools can use this file to understand your documentation structure and find relevant content to user prompts.
11
+
Mintlify automatically hosts an `llms.txt` file at the root of your project that lists all available pages in your documentation. This file is always up to date and requires zero maintenance. You can optionally add a custom `llms.txt` file to the root of your project.
12
12
13
13
View your `llms.txt` by appending `/llms.txt` to your documentation site's URL.
14
14
15
-
<PreviewButtonhref="https://mintlify.com/docs/llms.txt">Open the llms.txt for this site</PreviewButton>
16
-
17
-
Your site's `llms.txt` is always up to date and requires zero maintenance.
15
+
<PreviewButtonhref="https://mintlify.com/docs/llms.txt">Open the llms.txt for this site.</PreviewButton>
18
16
19
17
## llms.txt structure
20
18
21
19
An `llms.txt` file is a plain Markdown file that contains:
22
20
23
-
-**Site title** as an H1 heading. This is the only required section of an `llms.txt`.
24
-
-**Structured content sections** with descriptive links to key pages.
21
+
-**Site title** as an H1 heading.
22
+
-**Structured content sections** with links and a description of each page in your documentation.
25
23
26
24
```mdx Example llms.txt
27
25
# Example product docs
@@ -34,14 +32,18 @@ An `llms.txt` file is a plain Markdown file that contains:
34
32
-[API](https://example.com/docs/api): Endpoint list and usage
35
33
```
36
34
37
-
This structured approach allows LLMs to quickly process your documentation hierarchy and locate relevant content for user queries, improving the accuracy and speed of AI-assisted documentation searches.
35
+
This structured approach allows LLMs to efficiently process your documentation at a high level and locate relevant content for user queries, improving the accuracy and speed of AI-assisted documentation searches.
38
36
39
37
## llms-full.txt
40
38
41
-
The `llms-full.txt` file combines your entire documentation site into a single file as context for AI tools and is indexed by LLM traffic. Users can paste a single URL as context for AI tools for more relevant and accurate responses.
39
+
The `llms-full.txt` file combines your entire documentation site into a single file as context for AI tools and is indexed by LLM traffic.
42
40
43
41
Mintlify automatically hosts an `llms-full.txt` file at the root of your project. View your `llms-full.txt` by appending `/llms-full.txt` to your documentation site's URL.
44
42
45
-
<PreviewButtonhref="https://mintlify.com/docs/llms-full.txt">Open the llms-full.txt for this site</PreviewButton>
43
+
<PreviewButtonhref="https://mintlify.com/docs/llms-full.txt">Open the llms-full.txt for this site.</PreviewButton>
44
+
45
+
## Custom files
46
+
47
+
To add a custom `llms.txt` or `llms-full.txt` file, create an `llms.txt` or `llms-full.txt` file at the root of your project. Adding a custom file will override the automatically generated file of the same name. If you delete a custom file, the default file will be used again.
46
48
47
-
Your site's`llms-full.txt` is always up to date and requires zero maintenance.
49
+
Your custom`llms.txt` or `llms-full.txt`file must have a site title as an H1 heading. Other content is optional. See [Format](https://llmstxt.org/#format) in the `llms.txt` specification for more information on optional sections and best practices.
Copy file name to clipboardExpand all lines: ai/model-context-protocol.mdx
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ For example, Mintlify's MCP server is available at `https://mintlify.com/docs/mc
28
28
29
29
All MCP servers include the `search` tool by default, allowing users to query information from your docs in other tools.
30
30
31
-
If you have an OpenAPI specification, you can expose specific endpoints as MCP tools by using the `x-mcp` extension at either the file or endpoint level.
31
+
If you have an OpenAPI specification, you can expose specific endpoints as MCP tools by using the `mcp` object within the `x-mint` extension at either the file or endpoint level.
32
32
33
33
For example, the Mintlify MCP server includes tools to get status updates, trigger updates, and create assistant chats.
34
34
@@ -39,8 +39,10 @@ Enable MCP for all endpoints in an OpenAPI specification file:
39
39
```json
40
40
{
41
41
"openapi": "3.1.0",
42
-
"x-mcp": {
43
-
"enabled": true
42
+
"x-mint": {
43
+
"mcp": {
44
+
"enabled": true
45
+
}
44
46
},
45
47
// Other OpenAPI content
46
48
}
@@ -54,8 +56,10 @@ Enable MCP for specific endpoints only:
Copy file name to clipboardExpand all lines: ai/slack-app.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ icon: "slack"
8
8
The Slack app is available for [Pro and Enterprise plans](https://mintlify.com/pricing?ref=slack-app).
9
9
</Info>
10
10
11
-
The Slack app adds a bot to your Slack workspace that searches your documentation to answer users' questions. The bot responds to direct messages, @mentions, and to any questions in a channel specifically named `#ask-ai`.
11
+
The Slack app adds a bot named `@mintlify` to your Slack workspace that can search your documentation and answer users' questions. The bot responds to direct messages, @mentions, and to any questions in a channel specifically named `#ask-ai`.
12
+
13
+
The Slack app can incur costs: either using your AI chat credits or incurring overages.
Copy file name to clipboardExpand all lines: api-playground/openapi-setup.mdx
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ The `x-mint` extension is a custom OpenAPI extension that provides additional co
101
101
102
102
### Metadata
103
103
104
-
Override the default metadata for generated API pages by adding `x-mint: metadata` to any operation. You can use any metadata field that would be valid in `MDX` frontmatter except for `openapi`, `version`, or `deprecated`:
104
+
Override the default metadata for generated API pages by adding `x-mint: metadata` to any operation. You can use any metadata field that would be valid in `MDX` frontmatter except for `openapi`:
105
105
106
106
```json {7-13}
107
107
{
@@ -154,7 +154,7 @@ Add content before the auto-generated API documentation using `x-mint: content`:
154
154
155
155
The `content` extension supports all Mintlify MDX components and formatting.
156
156
157
-
### href
157
+
### Href
158
158
159
159
Change the URL of the endpoint page in your docs using `x-mint: href`:
160
160
@@ -183,6 +183,32 @@ Change the URL of the endpoint page in your docs using `x-mint: href`:
183
183
184
184
When `x-mint: href` is present, the navigation entry will link directly to the specified URL instead of generating an API page.
185
185
186
+
### MCP
187
+
188
+
Expose endpoints as MCP tools by using `x-mint: mcp`:
189
+
190
+
```json {6-10}
191
+
{
192
+
"paths": {
193
+
"/users": {
194
+
"post": {
195
+
"summary": "Create user",
196
+
"x-mint": {
197
+
"mcp": {
198
+
"enabled": true
199
+
}
200
+
},
201
+
"parameters": [
202
+
{
203
+
// Parameter configuration
204
+
}
205
+
]
206
+
}
207
+
}
208
+
}
209
+
}
210
+
```
211
+
186
212
## Auto-populate API pages
187
213
188
214
Add an `openapi` field to any navigation element in your `docs.json` to automatically generate pages for OpenAPI endpoints. You can control where these pages appear in your navigation structure, as dedicated API sections or with other pages.
@@ -337,7 +363,7 @@ This approach is useful when you need individual endpoints from different specs
337
363
338
364
## Create `MDX` files for API pages
339
365
340
-
For control over individual endpoint pages, you can also create `MDX` pages for each operation. This lets you customize page metadata, add content, omit certain operations, or reorder pages in your navigation at the page level.
366
+
For control over individual endpoint pages, create `MDX` pages for each operation. This lets you customize page metadata, add content, omit certain operations, or reorder pages in your navigation at the page level.
341
367
342
368
See an [example MDX OpenAPI page from MindsDB](https://github.com/mindsdb/mindsdb/blob/main/docs/rest/databases/create-databases.mdx?plain=1) and how it appears in their [live documentation](https://docs.mindsdb.com/rest/databases/create-databases).
- 10,000 requests per Mintlify organization per hour
11
+
- 10,000 requests per IP per day
12
+
13
+
## Suggested usage
14
+
15
+
For best results, use the [useChat hook from ai-sdk](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#usechat) to send requests and handle responses.
16
+
17
+
You can set `fp`, `threadId`, and `filter` in the `body` field of the options parameter passed to the hook.
0 commit comments