RM

rahulretnan/mcp-ragdocs

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

65 stars 19 forks Качество 61 Тренд 14NOASSERTION

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
  • Признания
  • Устранение неполадок

Особенности

Инструменты

  1. ** Search documentation**

Поиск по документации с использованием векторного поиска

  • возвращает соответствующие фрагменты документации с исходной информацией;
  1. list sources

Перечислить все доступные источники документации метаданные о каждом источнике

  1. extract urls

Извлеките URL-адреса из текста и проверьте, есть ли они в документации. Полезно для предотвращения дублирования документации

  1. 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

Tools

  1. search_documentation

    • Search through the documentation using vector search
    • Returns relevant chunks of documentation with source information
  2. list_sources

    • List all available documentation sources
    • Provides metadata about each source
  3. extract_urls

    • Extract URLs from text and check if they’re already in the documentation
    • Useful for preventing duplicate documentation
  4. remove_documentation

    • Remove documentation from a specific source
    • Cleans up outdated or irrelevant documentation
  5. list_queue

    • List all items in the processing queue
    • Shows status of pending documentation processing
  6. run_queue

    • Process all items in the queue
    • Automatically adds new documentation to the vector store
  7. clear_queue

    • Clear all items from the processing queue
    • Useful for resetting the system
  8. 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://)
  9. 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 stderr during indexing
    • Required parameter: path (absolute path to repository)
  10. list_repositories

    • List all indexed repositories with their configurations
    • Shows include/exclude patterns and watch status
  11. update_repository

    • Re-index a repository with updated configuration
    • Can modify include/exclude patterns and other settings
    • Provides detailed progress logging (heartbeat) to stderr during re-indexing
    • Required parameter: name (repository name)
  12. remove_repository

    • Remove a repository from the index
    • Deletes all associated documents from the vector database
Открыть полный README на GitHub

Установка

npx kill-port 3030
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "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" ] } } }