层列表MCP服务器
一 主控程序 生成“Tiermaker风格”层列表图像的服务器。
特性
- 生成典型的S/A/B/C/D/F层列表。
- 支持自定义层标签和颜色。
- 支持项目的图像(通过URL)和文本标签。
- 输出base64编码的PNG图像,供MCP客户端显示。
快速启动(无需安装)
您可以使用此MCP服务器的托管版本,而无需安装任何东西。
将其添加到MCP设置文件中(例如。 claude_desktop_config.json):
{
"mcpServers": {
"tier-list": {
"url": "https://tiermcp.crmx.pw/sse",
"type": "sse"
}
}
}安装
- 克隆存储库。
- 安装依赖项:
npm install- 构建项目:
npm run build用法
运行服务器
服务器通过stdio运行。配置您的MCP客户端(例如,Claude Desktop等)以运行:
node /path/to/tierMCP/dist/index.js通过HTTP运行
要在HTTP模式(StreamableHTTP)下运行服务器,您可以使用提供的脚本:
npm run start:http这将在端口3003上启动服务器 http://localhost:3003/mcp.
JSON-RPC配置
将此添加到MCP设置文件中:
{
"mcpServers": {
"tier-list": {
"command": "node",
"args": ["/path/to/tierMCP/dist/index.js"]
}
}
}工具
generate_tier_list
生成图像。
输入架构:
{
"title": "My Tier List",
"items": [
{ "id": "1", "tier": "S", "text": "Best Thing" },
{ "id": "2", "tier": "F", "imageUrl": "https://example.com/bad_thing.png" }
]
}get_default_tiers
返回默认配置(S、A、B、C、D、F)及其颜色。
发展
- 测试生成:运行本地测试脚本以生成
test_output.png.
npm run test-gen贡献
欢迎功能请求和拉取请求!请随时打开问题或提交PR。
