SVG 液 MCP 服务器基于 SVGL(可缩放矢量图形语言)实现,主要用于处理 SVG 内容,能提供 SVG 验证和仓库访问等功能,为 SVG 的使用和管理提供了便利。
将以下内容添加到你的 claude_desktop_config.json:
{
"mcpServers": {
"svgl": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/svgl"]
}
}
}
{
"mcpServers": {
"svgl": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-svgl"]
}
}
}
在 VS Code 中配置,请将以下内容添加到用户设置(JSON)文件中,可以通过按 Ctrl + Shift + P 并输入“偏好设置:打开用户设置(JSON)”来完成。
{
"mcp": {
"servers": {
"svgl": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/svgl"]
}
}
}
}
{
"mcp": {
"servers": {
"svgl": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-svgl"]
}
}
}
}
可选地,可以将其添加到工作区中的 .vscode/mcp.json 文件中。这将允许与其他用户共享配置。
⚠️ 重要提示
.vscode/mcp.json文件中不需要mcp关键字。
docker build -t mcp/svgl:latest -f src/svgl/Dockerfile .
svgContent (字符串):要验证的 SVG 内容。id:唯一标识符。title:SVG 标题。category:SVG 类别。route:SVG 路由(字符串或带有明暗主题变体的对象)。url:SVG 的 URL。name (字符串):要检索的 SVG 名称。此 MCP 服务器根据 MIT 许可证发布。这意味着你可以自由地使用、修改和分发软件,但需遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目存储库中的 LICENSE 文件。