Skip to main content
Glama
zsanjay

Document Tools

by zsanjay

Document Tools

Пакет Python, реализующий набор инструментов для работы с документами, предназначенных для конвертации и обработки различных форматов. Эти инструменты доступны через интерфейс MCP-сервера для бесшовной интеграции с ИИ-ассистентами.

Установка

# Create a virtual env and activate it
uv venv
source .venv/bin/activate

# Install the package in development mode
uv pip install -e .

Related MCP server: Document Tools

Запуск

# Start the MCP server
uv run main.py

Тестирование

# Run all tests
uv run pytest

Разработка

Определения инструментов

Инструменты определяются как функции Python и регистрируются на MCP-сервере:

mcp.tool()(my_function)

Описания инструментов должны:

  • Начинаться с краткого описания в одну строку

  • Содержать подробное объяснение функциональности

  • Объяснять, когда использовать (и когда не использовать) инструмент

  • Включать примеры использования с ожидаемыми входными и выходными данными

Используйте Field из pydantic для описания параметров:

from pydantic import Field

def my_tool(
    param1: str = Field(description="Detailed description of this parameter"),
    param2: int = Field(description="Explain what this parameter does")
) -> ReturnType:
    """Comprehensive docstring here"""
    # Implementation

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that uses the Docling toolkit to convert various document formats, including PDFs, Office files, images, and audio, into clean Markdown for AI processing. It supports multiple processing pipelines like VLM and ASR with intelligent auto-detection and job queue management.
    2
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables document conversion and processing through an MCP server interface for AI assistants.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that uses Docling to convert PDFs, Office documents, images, audio, and more into clean Markdown for AI processing and RAG pipelines.
    6
    -