Skip to content

Commit 9108d39

Browse files
authored
Merge branch 'main' into openapi-nav-updates
2 parents 39a3949 + 347f607 commit 9108d39

40 files changed

+810
-541
lines changed

.claude/CLAUDE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@
4343
- Make language more precise and contextual
4444
- Use [Lucide](https://lucide.dev) icon library
4545

46+
### Language and tone standards
47+
- Avoid promotional language. You are a technical writing assistant, not a marketer. Never use phrases like "breathtaking" or "exceptional value"
48+
- Reduce conjunction overuse. Limit use of "moreover," "furthermore," "additionally," "on the other hand." Favor direct, clear statements
49+
- Avoid editorializing. Remove phrases like "it's important to note," "this article will," "in conclusion," or personal interpretations
50+
- No undue emphasis. Avoid overstating importance or significance of routine technical concepts
51+
52+
### Technical accuracy standards
53+
- Verify all links. Every link, both internal and external, must be tested and functional before publication
54+
- Maintain consistency. Use consistent terminology, formatting, and language variety throughout all documentation
55+
- Valid technical references. Ensure all code examples, API references, and technical specifications are current and accurate
56+
57+
### Formatting discipline
58+
- Purposeful formatting. Use bold, italics, and emphasis only when it serves the user's understanding, not for visual appeal
59+
- Clean structure. Avoid excessive formatting. Never use emoji or decorative elements that don't add functional value
60+
4661
### Component introductions
4762
- Start with action-oriented language: "Use [component] to..." rather than "The [component] component..."
4863
- Be specific about what components can contain or do

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Mintlify Documentation
22

3-
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command
3+
Install the [Mint CLI](https://www.npmjs.com/package/mint) to preview the documentation changes locally. To install, use the following command
44

55
```
6-
npm i -g mintlify
6+
npm i -g mint
77
```
88

9-
Run the following command at the root of your documentation (where mint.json is)
9+
Run the following command at the root of your documentation (where docs.json is)
1010

1111
```
12-
mintlify dev
12+
mint dev
1313
```

ai/contextual-menu.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ icon: "square-menu"
55
---
66

77
import { PreviewButton } from "/snippets/previewbutton.jsx"
8+
import IconsRequired from "/snippets/icons-required.mdx";
89

910
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.
1011

@@ -63,9 +64,7 @@ Create custom options in the contextual menu by adding an object to the `options
6364
The description of the option. Displayed beneath the title when the contextual menu is expanded.
6465
</ResponseField>
6566

66-
<ResponseField name="icon" type="string" required>
67-
The icon of the option. Accepts any icon from the [Icons](/components/icons) collection.
68-
</ResponseField>
67+
<IconsRequired />
6968

7069
<ResponseField name="href" type="string | object" required>
7170
The href of the option. Use a string for simple links or an object for dynamic links with query parameters.

ai/llmstxt.mdx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@ icon: "file-code"
66

77
import { PreviewButton } from "/snippets/previewbutton.jsx"
88

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.
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.
1010

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.
1212

1313
View your `llms.txt` by appending `/llms.txt` to your documentation site's URL.
1414

15-
<PreviewButton href="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+
<PreviewButton href="https://mintlify.com/docs/llms.txt">Open the llms.txt for this site.</PreviewButton>
1816

1917
## llms.txt structure
2018

2119
An `llms.txt` file is a plain Markdown file that contains:
2220

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.
2523

2624
```mdx Example llms.txt
2725
# Example product docs
@@ -34,14 +32,18 @@ An `llms.txt` file is a plain Markdown file that contains:
3432
- [API](https://example.com/docs/api): Endpoint list and usage
3533
```
3634

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.
3836

3937
## llms-full.txt
4038

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.
4240

4341
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.
4442

45-
<PreviewButton href="https://mintlify.com/docs/llms-full.txt">Open the llms-full.txt for this site</PreviewButton>
43+
<PreviewButton href="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.
4648

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.

ai/model-context-protocol.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For example, Mintlify's MCP server is available at `https://mintlify.com/docs/mc
2828

2929
All MCP servers include the `search` tool by default, allowing users to query information from your docs in other tools.
3030

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.
3232

3333
For example, the Mintlify MCP server includes tools to get status updates, trigger updates, and create assistant chats.
3434

@@ -39,8 +39,10 @@ Enable MCP for all endpoints in an OpenAPI specification file:
3939
```json
4040
{
4141
"openapi": "3.1.0",
42-
"x-mcp": {
43-
"enabled": true
42+
"x-mint": {
43+
"mcp": {
44+
"enabled": true
45+
}
4446
},
4547
// Other OpenAPI content
4648
}
@@ -54,8 +56,10 @@ Enable MCP for specific endpoints only:
5456
{
5557
"paths": {
5658
"/api/v1/users": {
57-
"x-mcp": {
58-
"enabled": true
59+
"x-mint": {
60+
"mcp": {
61+
"enabled": true
62+
}
5963
},
6064
// Endpoint configuration
6165
}

ai/slack-app.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ icon: "slack"
88
The Slack app is available for [Pro and Enterprise plans](https://mintlify.com/pricing?ref=slack-app).
99
</Info>
1010

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.
1214

1315
## Setting up the Slack app
1416

api-playground/openapi-setup.mdx

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The `x-mint` extension is a custom OpenAPI extension that provides additional co
101101

102102
### Metadata
103103

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`:
105105

106106
```json {7-13}
107107
{
@@ -154,7 +154,7 @@ Add content before the auto-generated API documentation using `x-mint: content`:
154154

155155
The `content` extension supports all Mintlify MDX components and formatting.
156156

157-
### href
157+
### Href
158158

159159
Change the URL of the endpoint page in your docs using `x-mint: href`:
160160

@@ -183,6 +183,32 @@ Change the URL of the endpoint page in your docs using `x-mint: href`:
183183

184184
When `x-mint: href` is present, the navigation entry will link directly to the specified URL instead of generating an API page.
185185

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+
186212
## Auto-populate API pages
187213

188214
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
337363

338364
## Create `MDX` files for API pages
339365

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.
341367

342368
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).
343369

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
openapi: POST /assistant/{domain}/message
3+
---
4+
5+
## Rate limits
6+
7+
The assistant API has the following limits:
8+
9+
- 10,000 uses per key per month
10+
- 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.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)