An MCP server built with Smithery.
- Smithery API key: Get yours at smithery.ai/account/api-keys
-
Run the server:
uv run dev
-
Test interactively:
uv run playground
Your server code is in src/document_assistant/server.py. Add or update your server capabilities there.
Ready to deploy? Push your code to GitHub and deploy to Smithery:
-
Create a new repository at github.com/new
-
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
-
Deploy your server to Smithery at smithery.ai/new
确保您已安装 Python 和必要的库。使用以下命令安装:
pip install -r requirements.txt # 如果有 requirements.txt 文件或者使用 uv:
uv sync- 运行开发服务器:
uv run dev
- 互动测试:
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"