Files
lzwcai-mcp-server-package/lzwcai_mcpskills_visual2url/README.md
yuanzhipeng fb61ae27cf feat: 新增HTML转URL工具服务,优化API转换器配置
- 新增lzwcai_mcpskills_visual2url项目,提供本地HTML文件、HTML代码转可访问URL的MCP工具
- 重构lzwcai_mcp_api_converter配置加载逻辑,取消内存缓存复用,强制拉取最新配置并新增缓存降级容错机制
- 升级lzwcai_mcp_api_converter至0.2.5、项目模板至0.1.3
- 更新各示例项目的环境配置参数与模板工具配置
2026-05-25 11:48:12 +08:00

38 lines
889 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# lzwcai_mcpskills_visual2url
基于 FastMCP 的 MCP Server 项目。主要提供 HTML 转换为浏览器可访问 URL 的工具。
## 功能
提供以下两个工具Tools
- `html_file_to_url`: 传入本地 HTML 文件路径,转换成 `file://` 协议的 URL方便浏览器直接打开预览。
- `html_code_to_url`: 传入 HTML 代码片段,将其保存为临时文件并返回可访问的 `file://` URL。
## 安装
```bash
pip install lzwcai_mcpskills_visual2url
```
## 使用
```bash
# 直接运行服务端
lzwcai_mcpskills_visual2url
```
## 项目结构
```
lzwcai_mcpskills_visual2url/
├── main.py # 入口文件
├── pyproject.toml # 项目配置
├── README.md # 说明文档
└── lzwcai_mcpskills_visual2url/ # 核心代码
└── main.py # FastMCP Server 主逻辑
```
## License
MIT