diff --git a/ai/model-context-protocol.mdx b/ai/model-context-protocol.mdx index 0a1bbe7b0..24e46883f 100644 --- a/ai/model-context-protocol.mdx +++ b/ai/model-context-protocol.mdx @@ -41,6 +41,36 @@ View and copy your MCP server URL on the [MCP server page](https://dashboard.min Hosted MCP servers use the `/mcp` path in their URLs. Other navigation elements cannot use the `/mcp` path. +## Content filtering and indexing + +Your MCP server searches content that Mintlify indexes from your documentation repository. File processing and search indexing control what content is available through your MCP server. + +### File processing with `.mintignore` + +If files match [.mintignore](/organize/mintignore) patterns, Mintlify does not process or index them. These files are not available through your MCP server. + +### Search indexing with `docs.json` + +After Mintlify processes files, it determines which pages to index for search. By default, only pages included in your `docs.json` navigation are indexed and searchable through your MCP server. + +Mintlify excludes [hidden pages](/organize/hidden-pages) (pages not in your navigation) from the search index unless you choose to index all pages. To include hidden pages in your MCP server's search results, add the `seo.indexing` property to your `docs.json`. + +```json +"seo": { + "indexing": "all" +} +``` + +To exclude a specific page from search indexing, add `noindex: true` to its frontmatter. + +```mdx +--- +title: "Hidden page" +description: "This page is not in the navigation, but is available through search." +noindex: true +--- +``` + ## Use your MCP server Your users must connect your MCP server to their preferred AI tools. diff --git a/organize/mintignore.mdx b/organize/mintignore.mdx index 72ddecf34..01eb5acc4 100644 --- a/organize/mintignore.mdx +++ b/organize/mintignore.mdx @@ -1,10 +1,11 @@ --- -title: "Mintignore" -description: "Exclude specific files and directories from your published documentation." +title: "Exclude files from publishing" +sidebarTitle: "Exclude files" +description: "Exclude specific files and directories from your published documentation with a `.mintignore` file." keywords: ["exclude", "ignore", "gitignore", "drafts", "private"] --- -The `.mintignore` file allows you to exclude specific files and directories from being processed and published to your documentation site. +The `.mintignore` file allows you to exclude specific files and directories in your documentation repository from being processed and published to your documentation site. Use `.mintignore` to keep drafts, internal notes, and source files out of your public documentation while maintaining them in your repository.