docs/guides/continue-docs-mcp-cookbook.mdx
Before starting, ensure you have:
This agent includes:
- **Continue Docs MCP** for searching Continue documentation
- **Mintlify formatting rules** for proper component usage
- **Documentation-focused prompts** for common tasks
See the [CONTRIBUTING guide](/CONTRIBUTING) for details.
The MCP helps you:
Cookbooks show how to use Continue CLI with specific tools or services. Here's how to create one using the Continue Docs MCP:
<Steps> <Step title="Research Existing Cookbooks"> ```bash cn --config continuedev/docs-mintlify ```**Prompt:**
```
"Show me the structure of existing MCP cookbooks in the Continue docs.
I want to create a cookbook for GitHub MCP."
```
The agent will find examples like the dlt, Snyk, and Sanity cookbooks.
The agent will:
- Search Continue docs for MCP patterns
- Fetch GitHub MCP official documentation
- Combine both sources
- Generate a cookbook with consistent formatting
**Refine with prompts:**
```
"Add more examples to the troubleshooting section"
"Include a CI/CD workflow example using GitHub Actions"
"Add authentication setup using environment variables"
```
Use the Continue Docs MCP to find accurate information about Continue's
model provider configuration."
```
Prompt:
"Create a cookbook for using Continue with PostgreSQL MCP. Follow the same
structure as the dlt cookbook, but customize it for database operations.
Include these sections:
1. Quick start with pre-built agent
2. Manual setup with MCP configuration
3. Common database tasks (schema exploration, query writing, migrations)
4. Troubleshooting database connection issues
Use the Continue Docs MCP to find MCP configuration patterns and search the
web for PostgreSQL MCP documentation."
Prompt:
"Create a cookbook showing how to use Continue to analyze Sentry errors.
The cookbook should demonstrate:
1. Setting up Sentry MCP integration
2. Querying recent errors
3. Analyzing error patterns with AI
4. Generating fixes for common errors
5. CI/CD integration for automated error analysis
Research the Snyk cookbook structure since it's also about error detection,
and adapt it for Sentry."
Prompt:
"I want to create a cookbook for using Continue to work with OpenAPI specs.
Show how to:
1. Load OpenAPI specs into Continue's context
2. Generate API client code from specs
3. Create tests based on API endpoints
4. Update documentation when APIs change
Use the Continue Docs MCP to find how context providers work, then combine
that with OpenAPI MCP information."
cd docs
npm run dev
# Visit http://localhost:3000
# Check formatting
"Review this documentation for Mintlify formatting issues and fix any problems"
# Verify links
"Check all links in this file and ensure they point to existing documentation"
# Test code examples
"Verify that all code examples in this cookbook are syntactically correct"
Prompt:
"Create a pull request with my documentation changes and use the repo's
PR template to write the description"
The agent will:
Add automated documentation checks to your PR workflow using the Continue Docs MCP agent:
name: Documentation Check
on:
pull_request:
types: [opened, synchronize]
paths:
- 'core/**'
- 'extensions/**'
- 'packages/**'
- 'gui/**'
jobs:
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Continue CLI
run: npm i -g @continuedev/cli
- name: Analyze Changes for Documentation Needs
id: analyze
env:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
run: |
echo "🔍 Analyzing code changes for documentation needs..."
# Get changed files
git diff origin/${{ github.base_ref }}..HEAD --name-only > changed_files.txt
# Create detailed diff
git diff origin/${{ github.base_ref }}..HEAD > changes.diff
# Use Continue agent to check if docs need updates
PROMPT="Review these code changes and determine if documentation updates are needed.
Changed files: $(cat changed_files.txt | tr '\n' ' ')
Consider:
- New features or APIs
- Breaking changes
- New configuration options
- Modified CLI commands
- New MCP integrations
If docs updates are needed, specify which files in docs/ should be updated.
If no updates needed, respond with 'NO_DOCS_NEEDED'.
Be specific and concise."
cn --config continuedev/docs-mintlify -p "$PROMPT" --auto > analysis.md || {
echo "⚠️ Analysis failed"
echo "needs_docs=false" >> $GITHUB_OUTPUT
exit 0
}
if grep -q "NO_DOCS_NEEDED" analysis.md; then
echo "needs_docs=false" >> $GITHUB_OUTPUT
else
echo "needs_docs=true" >> $GITHUB_OUTPUT
fi
- name: Post Documentation Recommendation
if: steps.analyze.outputs.needs_docs == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "📝 Creating PR comment with documentation recommendations..."
cat > pr-comment.md <<'EOF'
## 📚 Documentation Update Recommended
Based on the code changes in this PR, documentation updates may be needed:
EOF
cat analysis.md >> pr-comment.md
cat >> pr-comment.md <<'EOF'
---
### Next Steps
1. Review the suggested documentation areas above
2. Update relevant files in the `/docs` folder
3. Consider updating:
- API references for interface changes
- Guides for workflow changes
- Configuration docs for new settings
- MCP cookbooks for new integrations
### Resources
- [Contributing to Docs](/CONTRIBUTING)
- [Continue Docs MCP Cookbook](/guides/continue-docs-mcp-cookbook)
*This analysis was generated using the Continue Docs MCP agent.*
EOF
gh pr comment ${{ github.event.pull_request.number }} --body-file pr-comment.md
- name: Add Label
if: steps.analyze.outputs.needs_docs == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "docs-needed"
Want to create documentation MCPs for your own projects? Mintlify makes it easy:
<Steps> <Step title="Set Up Mintlify Docs"> ```bash npm i -g mintlify mintlify init ``` </Step> <Step title="MCP Auto-Generated"> Mintlify automatically generates an MCP server for your documentation, enabling semantic search.[Learn more about Mintlify MCP generation →](https://www.mintlify.com/blog/generate-mcp-servers-for-your-docs)
| Task | Prompt |
|---|---|
| Find structure | "Show me the structure of existing cookbooks in Continue docs" |
| Create cookbook | "Create a cookbook for [tool] MCP following the dlt cookbook structure" |
| Update docs | "Update [file] to include information about [feature], using Continue Docs MCP to find examples" |
| Add navigation | "Add [file] to docs.json under the [section] section" |
| Check consistency | "Review this file for consistency with other Continue documentation" |
| Fix formatting | "Review for Mintlify formatting issues and fix any problems" |
| Extract examples | "Find all examples of [topic] in Continue docs" |
| Research feature | "Use Continue Docs MCP to explain how [feature] works in Continue" |