Skip to main content
Claude Code is Anthropic’s official CLI tool. This guide shows how to set up Claude Code to help you adopt mint-tsdocs and maintain your TypeScript API documentation.

Prerequisites

  • Active Claude subscription (Pro, Max, or API access)
  • Your documentation site deployed (for MCP integration)

Why use Claude Code with mint-tsdocs?

Connecting Claude Code to your documentation helps you:
  • Learn faster: Query your generated API reference without reading hundreds of pages
  • Maintain consistency: Get help writing docs that match your existing patterns
  • Fix issues quickly: Ask Claude to search your docs and fix broken links or outdated examples
  • Customize templates: Get context-aware help when modifying Liquid templates

Setup

  1. Install Claude Code globally:
  1. Navigate to your docs directory
  2. (Optional) Add the CLAUDE.md file below to your project
  3. (Recommended) Connect to your documentation’s MCP server
  4. Run claude to start

Connect to your documentation (MCP)

Mintlify automatically generates an MCP (Model Context Protocol) server for your documentation at https://your-docs-url/mcp. This lets Claude Code search and reference your docs in real-time.
Once your documentation is deployed, connect Claude Code to your MCP server:
Replace your-docs-url with your actual documentation URL. For example:
  • https://docs.yourcompany.com/mcp
  • https://yourproject.mintlify.app/mcp
Name the MCP connection something descriptive like my-project-docs instead of mint-tsdocs if you’re working on multiple projects.

Verify the connection

After connecting, ask Claude Code to search your documentation:

Create CLAUDE.md

Create a CLAUDE.md file at the root of your documentation repository to train Claude Code on your specific documentation standards:

Using your generated API reference

Once you’ve generated your API documentation with mint-tsdocs generate, you have hundreds of reference pages that Claude Code can help you leverage:

Ask about your API

With MCP connected, Claude can search your generated API reference:

Get help linking between pages

Maintain consistency

Update examples across pages

The more you interact with your docs through Claude Code, the better it understands your project’s patterns and can help maintain consistency.

Common workflows

Learning mint-tsdocs

When getting started:

Troubleshooting

Writing guides