Document Tools
문서 형식을 변환하고 처리하는 다양한 문서 관련 도구를 구현한 Python 패키지입니다. 이러한 도구들은 MCP 서버 인터페이스를 통해 노출되어 AI 어시스턴트와 원활하게 통합됩니다.
설치
# 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 서버에 등록됩니다:
도구 설명은 다음을 충족해야 합니다:
매개변수 설명에는 pydantic의 Field를 사용하세요:
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