Migrate from Mintlify to Pathfinder

Your Markdown docs are already structured for it. This guide takes about 15 minutes and gives you full ownership of your knowledge infrastructure.

Why Migrate

What You Gain

🔍

Beyond Just Docs

Mintlify indexes your docs. Pathfinder indexes your docs, Notion wikis, Slack threads, and Discord forums — all in one server. Your agents search everything your team knows, not just what's published.

🧭

Session State

Agents cd into directories and stay there across commands. No more repeating full paths every tool call.

Vector Grep & qmd

When grep misses, Pathfinder suggests qmd — a semantic search command that finds docs by meaning, not just text matches.

📝

Writable Workspace

Agents save notes, grep results, and intermediate files to /workspace/ during a session.

🔗

Cross-Source Related

Run related /docs/auth.mdx to discover semantically similar files across all sources.

📊

Feedback Collection

Define collect tools with YAML schemas. Agents report search quality, broken links, or anything you define.

🚀

Zero-Infra Start

Bash-only mode needs no database or API keys. Add RAG later with a config change — no code edits.

Concept Mapping

How Mintlify concepts translate to Pathfinder:

Mintlify Pathfinder Notes
mint.jsonpathfinder.yamlConfig file — YAML instead of JSON
Hosted docs siteMCP server (self-hosted)Agents consume tools, not rendered pages
ChromaFS collectionSource (type: markdown)Multiple sources supported
ChromaFS searchSearch tool (type: search)pgvector instead of Chroma
ChromaFS find/grep/catBash tool (type: bash)Same commands, plus session state
Chroma embeddingsOpenAI, Ollama, or local embeddingsConfigurable model and dimensions
Chroma + Redis infraPostgreSQL + pgvectorSingle database, no Redis needed
Manual reingestionWebhook auto-reindexGitHub push triggers targeted reindex
Docs onlyMultiple source typesMarkdown, HTML, Notion, Slack, Discord — index everything in one server

Migration Walkthrough

1

Install Pathfinder

CLI:

$ npx @copilotkit/pathfinder init $ npx @copilotkit/pathfinder serve

Docker:

$ docker pull ghcr.io/copilotkit/pathfinder

See full setup guide for detailed instructions.

2

Map your docs source

Open pathfinder.yaml and add your docs repo as a source. If your Mintlify docs live at docs/ in your repo:

sources: - name: docs type: markdown repo: https://github.com/your-org/your-repo.git path: docs/ file_patterns: ["**/*.mdx", "**/*.md"] chunk: target_tokens: 600 overlap_tokens: 50
3

Configure tools

Define how agents access your docs. You can use search (RAG), bash (filesystem), or both:

tools: # Semantic search — like ChromaFS search but with pgvector - name: search-docs type: search source: docs default_limit: 5 # Filesystem exploration — like ChromaFS find/grep/cat - name: explore-docs type: bash sources: [docs] bash: session_state: true grep_strategy: hybrid
4

Set environment variables

Create a .env file with your credentials:

# Required for RAG search tools OPENAI_API_KEY=sk-... DATABASE_URL=postgresql://user:pass@localhost:5432/pathfinder # Optional: for private repos GITHUB_TOKEN=ghp_... # Optional: for webhook auto-reindex GITHUB_WEBHOOK_SECRET=your-secret

If you only use bash tools (no search), you can skip OPENAI_API_KEY and DATABASE_URL entirely.

5

Start the server

$ docker compose up

This starts Pathfinder and PostgreSQL. The first boot automatically indexes your sources.

6

Connect your AI agent

Point your agent's MCP config at Pathfinder:

{ "mcpServers": { "docs": { "url": "http://localhost:3001/mcp" } } }

Your agent now has access to both search and bash tools.

7

Set up auto-reindex (optional)

Add webhook config so docs reindex automatically when you push:

webhook: repo_sources: "your-org/your-repo": [docs] path_triggers: docs: ["docs/"]

Then add a GitHub webhook pointing to https://your-server/webhooks/github with the push event.

What's Different

Pathfinder is not a drop-in replacement for Mintlify's full platform. Here's what it doesn't do:

No hosted docs site

Pathfinder is an MCP server, not a documentation hosting platform. Your rendered docs site (if you need one) stays wherever it is — Mintlify, Docusaurus, GitBook, etc.

No built-in UI

There's no web dashboard for browsing search results or managing content. Pathfinder is designed for agent consumption via MCP, not human browsing.

Self-hosted only

You run the infrastructure. Docker Compose makes this straightforward, but there's no managed cloud offering (yet). You need PostgreSQL and optionally an OpenAI API key.

Analytics dashboard included

Pathfinder includes a built-in analytics dashboard at /analytics with query logging, top queries, empty result tracking, and latency metrics. Enable it with analytics.enabled: true in your config.

← Back to Pathfinder