Information
markdown-to-html MCP 服务器
一个将 Markdown 转换为 HTML 的模型上下文协议服务器。
特性
工具
markdown_to_html - 将 Markdown 转换为 HTML
需要 mdContent 作为必需参数
开发
安装依赖项:
npm install
构建服务器:
npm run build
使用自动重建进行开发:
npm run watch
安装
要在 Claude Desktop 中使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
\{
"mcpServers": \{
"markdown-to-html": \{
"command": "node",
"args": [
"/path/to/markdown-to-html/build/index.js"
]
\}
\}
\}
调试
由于 MCP 服务器通过 stdio 进行通信,调试可能会比较困难。我们建议使用 MCP Inspector,它作为一个包脚本可用:
npm run inspector
Inspector 将提供一个 URL,以便您在浏览器中访问调试工具。