
rahulretnan/mcp-ragdocs
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
rahulretnan/mcp-ragdocs - кандидат на сервер MCP, импортированный из https://github.com/rahulretnan/mcp-ragdocs.
Обзор
rahulretnan/mcp-ragdocs - кандидат на сервер MCP, импортированный из https://github.com/rahulretnan/mcp-ragdocs.
Обзор (машинный перевод)
Реализация MCP-сервера, которая предоставляет инструменты для поиска и обработки документации через векторный поиск, позволяя помощникам ИИ дополнять свои ответы соответствующим контекстом документации.
Таблица содержимого
- Особенности Быстрый старт Настройка Docker Compose
- Веб-интерфейс
- Конфигурация
- Конфигурация линии Конфигурация Claude Desktop
- Признания
- Устранение неполадок
Особенности
Инструменты
- ** Search documentation**
Поиск по документации с использованием векторного поиска
- возвращает соответствующие фрагменты документации с исходной информацией;
- list sources
Перечислить все доступные источники документации метаданные о каждом источнике
- extract urls
Извлеките URL-адреса из текста и проверьте, есть ли они в документации. Полезно для предотвращения дублирования документации
- remove documentation
Удалить документацию из определенного источника Очистка устаревшей или нерелевантной документации
5list queue
Перечислите все элементы в очереди обработки
- Показывает состояние ожидающей обработки документации
6run queue
Обработка всех предметов в очереди Автоматически добавляет новую документацию в векторный магазин
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
RAG Documentation MCP Server
An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.
Table of Contents
- Features
- Quick Start
- Docker Compose Setup
- Web Interface
- Configuration
- Acknowledgments
- Troubleshooting
Features
Tools
-
search_documentation
- Search through the documentation using vector search
- Returns relevant chunks of documentation with source information
-
list_sources
- List all available documentation sources
- Provides metadata about each source
-
extract_urls
- Extract URLs from text and check if they’re already in the documentation
- Useful for preventing duplicate documentation
-
remove_documentation
- Remove documentation from a specific source
- Cleans up outdated or irrelevant documentation
-
list_queue
- List all items in the processing queue
- Shows status of pending documentation processing
-
run_queue
- Process all items in the queue
- Automatically adds new documentation to the vector store
-
clear_queue
- Clear all items from the processing queue
- Useful for resetting the system
-
add_documentation
- Add new documentation directly to the system by providing a URL
- Automatically fetches, processes, and indexes the content
- Supports various web page formats and extracts relevant content
- Chunks content intelligently for optimal retrieval
- Required parameter:
url(must include protocol, e.g., https://)
-
add_repository
- Index a local code repository for documentation
- Configure include/exclude patterns for files and directories
- Supports different chunking strategies based on file types
- Uses asynchronous processing to avoid MCP timeouts with large repositories
- Provides detailed progress logging (heartbeat) to
stderrduring indexing - Required parameter:
path(absolute path to repository)
-
list_repositories
- List all indexed repositories with their configurations
- Shows include/exclude patterns and watch status
-
update_repository
- Re-index a repository with updated configuration
- Can modify include/exclude patterns and other settings
- Provides detailed progress logging (heartbeat) to
stderrduring re-indexing - Required parameter:
name(repository name)
-
remove_repository
- Remove a repository from the index
- Deletes all associated documents from the vector database
Установка
npx kill-port 3030Конфигурация
{
"mcpServers": {
"rag-docs": {
"command": "node",
"args": ["/path/to/your/mcp-ragdocs/build/index.js"],
"env": {
"EMBEDDING_PROVIDER": "ollama", // default
"EMBEDDING_MODEL": "nomic-embed-text", // optional
"OPENAI_API_KEY": "your-api-key-here", // required for fallback
"FALLBACK_PROVIDER": "openai", // recommended for reliability
"FALLBACK_MODEL": "nomic-embed-text", // optional
"QDRANT_URL": "http://localhost:6333"
},
"disabled": false,
"autoApprove": [
"search_documentation",
"list_sources",
"extract_urls",
"remove_documentation",
"list_queue",
"run_queue",
"clear_queue",
"add_documentation",
"add_repository",
"list_repositories",
"update_repository",
"remove_repository",
"watch_repository",
"get_indexing_status"
]
}
}
}