Skip to content

lulabs-org/DocumentAssistant

Repository files navigation

DocumentAssistant

An MCP server built with Smithery.

Prerequisites

Getting Started

  1. Run the server:

    uv run dev
  2. Test interactively:

    uv run playground

Development

Your server code is in src/document_assistant/server.py. Add or update your server capabilities there.

Deploy

Ready to deploy? Push your code to GitHub and deploy to Smithery:

  1. Create a new repository at github.com/new

  2. Initialize git and push to GitHub:

    git add .
    git commit -m "Initial commit"
    git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
    git push -u origin main
  3. Deploy your server to Smithery at smithery.ai/new

本地使用指南

安装依赖

确保您已安装 Python 和必要的库。使用以下命令安装:

pip install -r requirements.txt  # 如果有 requirements.txt 文件

或者使用 uv:

uv sync

运行服务器

  1. 运行开发服务器:
    uv run dev

测试和互动

  1. 互动测试:
    uv run playground

使用文件转换功能

  • 在服务器运行时,使用 MCP 接口调用 convert_file 工具。
  • 参数: input_path (输入文件路径), target_format (目标格式, 如 'md', 'docx' 等)。
  • 示例: convert_file("example.txt", "md") 将生成 example.md。

本地脚本使用

docx to pdf

python docx_to_pdf_converter.py "Lulab_优秀学员_Yang_Jinze.docx" "Lulab_优秀学员_Yang_Jinze.pdf" 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors