The contextual menu adds AI tool options directly to your documentation pages. This guide focuses on recommended configurations for mint-tsdocs projects with large API references.For full contextual menu features and options, see Mintlify’s contextual menu documentation.
Why add a contextual menu?
When you generate 400+ API reference pages with mint-tsdocs, the contextual menu helps users:- Quick questions: Copy a class definition to ask their AI tool about usage
- Deep exploration: Open ChatGPT/Claude with an entire API page as context
- Editor setup: Install your MCP server in Cursor/VS Code with one click
- Share context: Export pages as markdown for team discussions
Recommended configuration
Add to yourdocs.json:
copy- Copy page as markdown (works with any AI tool)claude- Open in Claude.ai with page contextmcp- Copy your MCP server URL for manual setupcursor- One-click MCP installation in Cursor
Why these options for mint-tsdocs?
| Option | Benefit for API Reference |
|---|---|
copy | Universal - works with any AI tool, perfect for “explain this interface” questions |
claude/chatgpt | Pre-loads entire page context for deep exploration of complex types |
mcp | Quick copy for manual MCP setup across different tools |
cursor/vscode | One-click installation removes friction for editor-based workflows |
Configuration examples
Minimal (open source projects)
Developer-focused
Comprehensive
Use cases with generated API reference
Exploring complex interfaces
User visitsITemplateData reference page:
- Clicks contextual menu → “Open in Claude”
- Claude opens with full interface definition
- Asks: “Explain each property and when I’d use it”
Debugging type errors
User encounters error withMarkdownDocumenter:
- Opens the class reference page
- Clicks “Copy” from contextual menu
- Pastes into their AI tool with error message
- Gets context-aware troubleshooting
Template customization
User customizing Liquid templates:- Opens
ITemplateDatareference - Clicks “Install MCP in Cursor”
- Works in Cursor with AI that knows available template variables
Team knowledge sharing
Developer discussing implementation:- Opens
NavigationManagerreference - Clicks “Copy”
- Pastes in Slack/Discord: “Should we use this for our custom navigation?”
Verifying the menu
After adding todocs.json and deploying:
- Visit any API reference page (e.g.,
/reference/mint-tsdocs.cachemanager) - Look for the AI menu icon (usually top-right)
- Click to see your configured options
- Test the “Copy” option - should copy page content as markdown
The menu appears on all pages, including your entire generated API reference.
Promoting the feature
Help users discover the contextual menu in your documentation:In your README
In your quickstart guide
Custom options (optional)
For organization-specific integrations, you can add custom menu items. See Mintlify’s contextual menu docs for details. Example for internal tools:Learn more
Mintlify Contextual Menu
Full features and custom options
MCP Integration
About the MCP server behind these options
Claude Code Setup
Help users set up Claude Code
Cursor Setup
Guide for Cursor integration

