Name | chatbox-modelscope-sync-mcp JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | 一键同步ModelScope MCP服务器到Chatbox配置的Python工具 |
upload_time | 2025-08-10 10:14:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License
Copyright (c) 2025 Tianxiang Zhan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
chatbox
modelscope
mcp
sync
automation
configuration
http-server
|
VCS |
 |
bugtrack_url |
|
requirements |
Requests
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Chatbox ModelScope MCP Sync
[](https://badge.fury.io/py/chatbox-modelscope-sync-mcp)
[](https://pypi.org/project/chatbox-modelscope-sync-mcp/)
[](LICENSE)
一键同步ModelScope MCP服务器到Chatbox配置,支持智能名称选择和跨平台配置路径检测。
## 🚀 功能特性
- **一键同步** 自动备份原配置文件并更新MCP服务器列表
- **智能命名** 优先使用中文名称,支持多语言回退策略
- **跨平台** 自动检测Windows/macOS/Linux的Chatbox配置路径
- **灵活配置** 支持命令行参数、环境变量和配置文件
- **安全备份** 每次更新前自动创建配置文件备份
- **增量更新** 智能识别新增和更新的服务器,避免重复
## 📦 安装
### 通过pip安装(推荐)
```bash
pip install chatbox-modelscope-sync-mcp
```
### 从源码安装
```bash
git clone https://github.com/ztxtech/chatbox-modelscope-sync-mcp.git
cd chatbox-modelscope-sync-mcp
pip install -e .
```
## 🎯 快速开始
### 1. 获取ModelScope API Token
1. 访问 [ModelScope官网](https://www.modelscope.cn)
2. 登录后进入个人中心 → API令牌
3. 创建并复制你的API令牌
### 2. 运行同步
#### 命令行方式
```bash
# 使用命令行参数
chatbox-modelscope-sync --token YOUR_API_TOKEN
# 简写命令
chatbox-mcp-sync -t YOUR_TOKEN
# 指定配置文件路径
chatbox-modelscope-sync --token YOUR_TOKEN --path /path/to/config.json
```
#### 环境变量方式
```bash
# 设置环境变量
export MODELSCOPE_API_KEY=your_api_token_here
export CHATBOX_CONFIG=/path/to/config.json # 可选
# 运行同步
chatbox-modelscope-sync
```
#### Python代码方式
```python
from chatbox_modelscope_sync_mcp import ModelScopeMCPSync
# 基本用法
syncer = ModelScopeMCPSync(api_key="your_token")
syncer.sync()
# 高级用法
syncer = ModelScopeMCPSync(
api_key="your_token",
config_path="/path/to/config.json",
api_url="https://custom-api.com/mcp"
)
syncer.sync(backup=True)
```
## ⚙️ 配置优先级
配置项按以下优先级加载:
1. **命令行参数**(最高优先级)
- `--token`, `--path`, `--url`
2. **环境变量**
- `MODELSCOPE_API_KEY`
- `CHATBOX_CONFIG`
3. **自动检测**(最低优先级)
- 自动检测Chatbox默认配置路径
## 🖥️ 支持的平台
| 操作系统 | 默认配置路径 |
|----------|--------------|
| **Windows** | `~/AppData/Roaming/xyz.chatboxapp.app/config.json` |
| **macOS** | `~/Library/Application Support/xyz.chatboxapp.app/config.json` |
| **Linux** | `~/.config/xyz.chatboxapp.app/config.json` |
## 📋 命令行选项
```bash
chatbox-modelscope-sync --help
# 输出:
usage: chatbox-modelscope-sync [-h] [--token TOKEN] [--path PATH] [--url URL] [--no-backup] [--version]
Chatbox ModelScope MCP Sync Tool
options:
-h, --help 显示帮助信息
-t, --token TOKEN ModelScope API Token (也可以使用 MODELSCOPE_API_KEY 环境变量)
-p, --path PATH Chatbox配置文件路径 (也可以使用 CHATBOX_CONFIG 环境变量)
--url URL ModelScope MCP API URL
--no-backup 不创建配置文件备份
-v, --version 显示版本信息
```
## 🔧 高级用法
### 自定义API端点
如果你的ModelScope服务部署在自定义地址:
```bash
chatbox-modelscope-sync \
--token YOUR_TOKEN \
--url https://your-domain.com/api/v1/mcp/services/operational
```
### 批量操作脚本
创建批量更新脚本:
```bash
#!/bin/bash
# sync-mcp.sh
TOKENS=("token1" "token2" "token3")
for token in "${TOKENS[@]}"; do
echo "正在同步 token: ${token:0:8}..."
chatbox-modelscope-sync --token "$token" --no-backup
sleep 2
done
```
### 定时同步
使用cron定时同步(Linux/macOS):
```bash
# 每小时同步一次
0 * * * * /usr/local/bin/chatbox-modelscope-sync --token YOUR_TOKEN
# 每天凌晨3点同步
0 3 * * * /usr/local/bin/chatbox-modelscope-sync --token YOUR_TOKEN
```
## 📝 配置示例
### 更新前配置
```json
{
"settings": {
"mcp": {
"servers": [
{
"id": "existing-server",
"name": "现有服务器",
"enabled": true,
"transport": {
"type": "http",
"url": "http://localhost:8080"
}
}
]
}
}
}
```
### 更新后配置
```json
{
"settings": {
"mcp": {
"servers": [
{
"id": "existing-server",
"name": "现有服务器",
"enabled": true,
"transport": {
"type": "http",
"url": "http://localhost:8080"
}
},
{
"id": "a1b2c3d4-e5f6-7890-abcd-1234567890ef",
"name": "ModelScope中文模型",
"enabled": true,
"transport": {
"type": "http",
"url": "https://modelscope.cn/api/mcp/server1"
}
},
{
"id": "b2c3d4e5-f6g7-8901-bcde-2345678901fa",
"name": "ModelScope English Model",
"enabled": true,
"transport": {
"type": "http",
"url": "https://modelscope.cn/api/mcp/server2"
}
}
]
}
}
}
```
## 🛠️ 故障排除
### 常见问题
#### 1. API Token无效
**错误信息**: `API调用失败: 401 Unauthorized`
**解决方案**:
- 检查API Token是否正确
- 确保Token有访问MCP服务的权限
- 重新生成Token并重试
#### 2. 配置文件路径错误
**错误信息**: `加载配置文件失败: [Errno 2] No such file or directory`
**解决方案**:
- 确认Chatbox已安装并运行过一次
- 手动指定配置文件路径: `--path /path/to/config.json`
- 检查文件权限
#### 3. 权限不足
**错误信息**: `保存配置文件失败: [Errno 13] Permission denied`
**解决方案**:
- 以管理员身份运行命令
- 检查文件和目录权限
- 使用sudo(Linux/macOS)
#### 4. 网络连接问题
**错误信息**: `API调用失败: Connection timeout`
**解决方案**:
- 检查网络连接
- 确认防火墙设置
- 尝试使用代理
### 调试模式
```bash
# 查看详细日志
chatbox-modelscope-sync --token YOUR_TOKEN --verbose
# 测试API连接
python -c "
from chatbox_modelscope_sync_mcp import ModelScopeMCPSync
syncer = ModelScopeMCPSync(api_key='your_token')
result = syncer.call_modelscope_api()
print('API连接成功' if result else 'API连接失败')
"
```
## 🤝 贡献
欢迎提交Issue和Pull Request!
### 开发环境设置
```bash
git clone https://github.com/ztxtech/chatbox-modelscope-sync-mcp.git
cd chatbox-modelscope-sync-mcp
pip install -e ".[dev]"
# 运行测试
python -m pytest tests/
# 代码格式化
black chatbox_modelscope_sync_mcp/
isort chatbox_modelscope_sync_mcp/
```
## 📄 许可证
MIT License - 详见 [LICENSE](LICENSE) 文件
## 🙋♂️ 支持
- 📧 邮箱: ztxtechfoxmail.com
- 🐛 Issue: [GitHub Issues](https://github.com/ztxtech/chatbox-modelscope-sync-mcp/issues)
- 💬 讨论: [GitHub Discussions](https://github.com/ztxtech/chatbox-modelscope-sync-mcp/discussions)
## 🔄 更新日志
### v0.0.1 (2025-8-10)
- ✨ 初始版本发布
- 🎯 支持一键同步ModelScope MCP服务器
- 🌍 跨平台配置路径自动检测
- 🧠 智能服务器名称选择
- 🛡️ 配置文件自动备份
- 📦 PyPI包发布
---
**Made with ❤️ by ztxtech**
Raw data
{
"_id": null,
"home_page": null,
"name": "chatbox-modelscope-sync-mcp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "chatbox, modelscope, mcp, sync, automation, configuration, http-server",
"author": null,
"author_email": "ztxtech <ztxtech@foxmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6f/3d/dff3bb87809c4cdcff2ce49f4a25bb629990a500b85e355a4f892d07a2cf/chatbox_modelscope_sync_mcp-0.0.1.tar.gz",
"platform": null,
"description": "# Chatbox ModelScope MCP Sync\r\n\r\n[](https://badge.fury.io/py/chatbox-modelscope-sync-mcp)\r\n[](https://pypi.org/project/chatbox-modelscope-sync-mcp/)\r\n[](LICENSE)\r\n\r\n\u4e00\u952e\u540c\u6b65ModelScope MCP\u670d\u52a1\u5668\u5230Chatbox\u914d\u7f6e\uff0c\u652f\u6301\u667a\u80fd\u540d\u79f0\u9009\u62e9\u548c\u8de8\u5e73\u53f0\u914d\u7f6e\u8def\u5f84\u68c0\u6d4b\u3002\r\n\r\n## \ud83d\ude80 \u529f\u80fd\u7279\u6027\r\n\r\n- **\u4e00\u952e\u540c\u6b65** \u81ea\u52a8\u5907\u4efd\u539f\u914d\u7f6e\u6587\u4ef6\u5e76\u66f4\u65b0MCP\u670d\u52a1\u5668\u5217\u8868\r\n- **\u667a\u80fd\u547d\u540d** \u4f18\u5148\u4f7f\u7528\u4e2d\u6587\u540d\u79f0\uff0c\u652f\u6301\u591a\u8bed\u8a00\u56de\u9000\u7b56\u7565\r\n- **\u8de8\u5e73\u53f0** \u81ea\u52a8\u68c0\u6d4bWindows/macOS/Linux\u7684Chatbox\u914d\u7f6e\u8def\u5f84\r\n- **\u7075\u6d3b\u914d\u7f6e** \u652f\u6301\u547d\u4ee4\u884c\u53c2\u6570\u3001\u73af\u5883\u53d8\u91cf\u548c\u914d\u7f6e\u6587\u4ef6\r\n- **\u5b89\u5168\u5907\u4efd** \u6bcf\u6b21\u66f4\u65b0\u524d\u81ea\u52a8\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u5907\u4efd\r\n- **\u589e\u91cf\u66f4\u65b0** \u667a\u80fd\u8bc6\u522b\u65b0\u589e\u548c\u66f4\u65b0\u7684\u670d\u52a1\u5668\uff0c\u907f\u514d\u91cd\u590d\r\n\r\n## \ud83d\udce6 \u5b89\u88c5\r\n\r\n### \u901a\u8fc7pip\u5b89\u88c5\uff08\u63a8\u8350\uff09\r\n\r\n```bash\r\npip install chatbox-modelscope-sync-mcp\r\n```\r\n\r\n### \u4ece\u6e90\u7801\u5b89\u88c5\r\n\r\n```bash\r\ngit clone https://github.com/ztxtech/chatbox-modelscope-sync-mcp.git\r\ncd chatbox-modelscope-sync-mcp\r\npip install -e .\r\n```\r\n\r\n## \ud83c\udfaf \u5feb\u901f\u5f00\u59cb\r\n\r\n### 1. \u83b7\u53d6ModelScope API Token\r\n\r\n1. \u8bbf\u95ee [ModelScope\u5b98\u7f51](https://www.modelscope.cn)\r\n2. \u767b\u5f55\u540e\u8fdb\u5165\u4e2a\u4eba\u4e2d\u5fc3 \u2192 API\u4ee4\u724c\r\n3. \u521b\u5efa\u5e76\u590d\u5236\u4f60\u7684API\u4ee4\u724c\r\n\r\n### 2. \u8fd0\u884c\u540c\u6b65\r\n\r\n#### \u547d\u4ee4\u884c\u65b9\u5f0f\r\n\r\n```bash\r\n# \u4f7f\u7528\u547d\u4ee4\u884c\u53c2\u6570\r\nchatbox-modelscope-sync --token YOUR_API_TOKEN\r\n\r\n# \u7b80\u5199\u547d\u4ee4\r\nchatbox-mcp-sync -t YOUR_TOKEN\r\n\r\n# \u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\r\nchatbox-modelscope-sync --token YOUR_TOKEN --path /path/to/config.json\r\n```\r\n\r\n#### \u73af\u5883\u53d8\u91cf\u65b9\u5f0f\r\n\r\n```bash\r\n# \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\r\nexport MODELSCOPE_API_KEY=your_api_token_here\r\nexport CHATBOX_CONFIG=/path/to/config.json # \u53ef\u9009\r\n\r\n# \u8fd0\u884c\u540c\u6b65\r\nchatbox-modelscope-sync\r\n```\r\n\r\n#### Python\u4ee3\u7801\u65b9\u5f0f\r\n\r\n```python\r\nfrom chatbox_modelscope_sync_mcp import ModelScopeMCPSync\r\n\r\n# \u57fa\u672c\u7528\u6cd5\r\nsyncer = ModelScopeMCPSync(api_key=\"your_token\")\r\nsyncer.sync()\r\n\r\n# \u9ad8\u7ea7\u7528\u6cd5\r\nsyncer = ModelScopeMCPSync(\r\n api_key=\"your_token\",\r\n config_path=\"/path/to/config.json\",\r\n api_url=\"https://custom-api.com/mcp\"\r\n)\r\nsyncer.sync(backup=True)\r\n```\r\n\r\n## \u2699\ufe0f \u914d\u7f6e\u4f18\u5148\u7ea7\r\n\r\n\u914d\u7f6e\u9879\u6309\u4ee5\u4e0b\u4f18\u5148\u7ea7\u52a0\u8f7d\uff1a\r\n\r\n1. **\u547d\u4ee4\u884c\u53c2\u6570**\uff08\u6700\u9ad8\u4f18\u5148\u7ea7\uff09\r\n - `--token`, `--path`, `--url`\r\n\r\n2. **\u73af\u5883\u53d8\u91cf**\r\n - `MODELSCOPE_API_KEY`\r\n - `CHATBOX_CONFIG`\r\n\r\n3. **\u81ea\u52a8\u68c0\u6d4b**\uff08\u6700\u4f4e\u4f18\u5148\u7ea7\uff09\r\n - \u81ea\u52a8\u68c0\u6d4bChatbox\u9ed8\u8ba4\u914d\u7f6e\u8def\u5f84\r\n\r\n## \ud83d\udda5\ufe0f \u652f\u6301\u7684\u5e73\u53f0\r\n\r\n| \u64cd\u4f5c\u7cfb\u7edf | \u9ed8\u8ba4\u914d\u7f6e\u8def\u5f84 |\r\n|----------|--------------|\r\n| **Windows** | `~/AppData/Roaming/xyz.chatboxapp.app/config.json` |\r\n| **macOS** | `~/Library/Application Support/xyz.chatboxapp.app/config.json` |\r\n| **Linux** | `~/.config/xyz.chatboxapp.app/config.json` |\r\n\r\n## \ud83d\udccb \u547d\u4ee4\u884c\u9009\u9879\r\n\r\n```bash\r\nchatbox-modelscope-sync --help\r\n\r\n# \u8f93\u51fa\uff1a\r\nusage: chatbox-modelscope-sync [-h] [--token TOKEN] [--path PATH] [--url URL] [--no-backup] [--version]\r\n\r\nChatbox ModelScope MCP Sync Tool\r\n\r\noptions:\r\n -h, --help \u663e\u793a\u5e2e\u52a9\u4fe1\u606f\r\n -t, --token TOKEN ModelScope API Token (\u4e5f\u53ef\u4ee5\u4f7f\u7528 MODELSCOPE_API_KEY \u73af\u5883\u53d8\u91cf)\r\n -p, --path PATH Chatbox\u914d\u7f6e\u6587\u4ef6\u8def\u5f84 (\u4e5f\u53ef\u4ee5\u4f7f\u7528 CHATBOX_CONFIG \u73af\u5883\u53d8\u91cf)\r\n --url URL ModelScope MCP API URL\r\n --no-backup \u4e0d\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u5907\u4efd\r\n -v, --version \u663e\u793a\u7248\u672c\u4fe1\u606f\r\n```\r\n\r\n## \ud83d\udd27 \u9ad8\u7ea7\u7528\u6cd5\r\n\r\n### \u81ea\u5b9a\u4e49API\u7aef\u70b9\r\n\r\n\u5982\u679c\u4f60\u7684ModelScope\u670d\u52a1\u90e8\u7f72\u5728\u81ea\u5b9a\u4e49\u5730\u5740\uff1a\r\n\r\n```bash\r\nchatbox-modelscope-sync \\\r\n --token YOUR_TOKEN \\\r\n --url https://your-domain.com/api/v1/mcp/services/operational\r\n```\r\n\r\n### \u6279\u91cf\u64cd\u4f5c\u811a\u672c\r\n\r\n\u521b\u5efa\u6279\u91cf\u66f4\u65b0\u811a\u672c\uff1a\r\n\r\n```bash\r\n#!/bin/bash\r\n# sync-mcp.sh\r\n\r\nTOKENS=(\"token1\" \"token2\" \"token3\")\r\nfor token in \"${TOKENS[@]}\"; do\r\n echo \"\u6b63\u5728\u540c\u6b65 token: ${token:0:8}...\"\r\n chatbox-modelscope-sync --token \"$token\" --no-backup\r\n sleep 2\r\ndone\r\n```\r\n\r\n### \u5b9a\u65f6\u540c\u6b65\r\n\r\n\u4f7f\u7528cron\u5b9a\u65f6\u540c\u6b65\uff08Linux/macOS\uff09\uff1a\r\n\r\n```bash\r\n# \u6bcf\u5c0f\u65f6\u540c\u6b65\u4e00\u6b21\r\n0 * * * * /usr/local/bin/chatbox-modelscope-sync --token YOUR_TOKEN\r\n\r\n# \u6bcf\u5929\u51cc\u66683\u70b9\u540c\u6b65\r\n0 3 * * * /usr/local/bin/chatbox-modelscope-sync --token YOUR_TOKEN\r\n```\r\n\r\n## \ud83d\udcdd \u914d\u7f6e\u793a\u4f8b\r\n\r\n### \u66f4\u65b0\u524d\u914d\u7f6e\r\n\r\n```json\r\n{\r\n \"settings\": {\r\n \"mcp\": {\r\n \"servers\": [\r\n {\r\n \"id\": \"existing-server\",\r\n \"name\": \"\u73b0\u6709\u670d\u52a1\u5668\",\r\n \"enabled\": true,\r\n \"transport\": {\r\n \"type\": \"http\",\r\n \"url\": \"http://localhost:8080\"\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n```\r\n\r\n### \u66f4\u65b0\u540e\u914d\u7f6e\r\n\r\n```json\r\n{\r\n \"settings\": {\r\n \"mcp\": {\r\n \"servers\": [\r\n {\r\n \"id\": \"existing-server\",\r\n \"name\": \"\u73b0\u6709\u670d\u52a1\u5668\",\r\n \"enabled\": true,\r\n \"transport\": {\r\n \"type\": \"http\",\r\n \"url\": \"http://localhost:8080\"\r\n }\r\n },\r\n {\r\n \"id\": \"a1b2c3d4-e5f6-7890-abcd-1234567890ef\",\r\n \"name\": \"ModelScope\u4e2d\u6587\u6a21\u578b\",\r\n \"enabled\": true,\r\n \"transport\": {\r\n \"type\": \"http\",\r\n \"url\": \"https://modelscope.cn/api/mcp/server1\"\r\n }\r\n },\r\n {\r\n \"id\": \"b2c3d4e5-f6g7-8901-bcde-2345678901fa\",\r\n \"name\": \"ModelScope English Model\",\r\n \"enabled\": true,\r\n \"transport\": {\r\n \"type\": \"http\",\r\n \"url\": \"https://modelscope.cn/api/mcp/server2\"\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n```\r\n\r\n## \ud83d\udee0\ufe0f \u6545\u969c\u6392\u9664\r\n\r\n### \u5e38\u89c1\u95ee\u9898\r\n\r\n#### 1. API Token\u65e0\u6548\r\n\r\n**\u9519\u8bef\u4fe1\u606f**: `API\u8c03\u7528\u5931\u8d25: 401 Unauthorized`\r\n\r\n**\u89e3\u51b3\u65b9\u6848**:\r\n- \u68c0\u67e5API Token\u662f\u5426\u6b63\u786e\r\n- \u786e\u4fddToken\u6709\u8bbf\u95eeMCP\u670d\u52a1\u7684\u6743\u9650\r\n- \u91cd\u65b0\u751f\u6210Token\u5e76\u91cd\u8bd5\r\n\r\n#### 2. \u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u9519\u8bef\r\n\r\n**\u9519\u8bef\u4fe1\u606f**: `\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u5931\u8d25: [Errno 2] No such file or directory`\r\n\r\n**\u89e3\u51b3\u65b9\u6848**:\r\n- \u786e\u8ba4Chatbox\u5df2\u5b89\u88c5\u5e76\u8fd0\u884c\u8fc7\u4e00\u6b21\r\n- \u624b\u52a8\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u8def\u5f84: `--path /path/to/config.json`\r\n- \u68c0\u67e5\u6587\u4ef6\u6743\u9650\r\n\r\n#### 3. \u6743\u9650\u4e0d\u8db3\r\n\r\n**\u9519\u8bef\u4fe1\u606f**: `\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\u5931\u8d25: [Errno 13] Permission denied`\r\n\r\n**\u89e3\u51b3\u65b9\u6848**:\r\n- \u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\r\n- \u68c0\u67e5\u6587\u4ef6\u548c\u76ee\u5f55\u6743\u9650\r\n- \u4f7f\u7528sudo\uff08Linux/macOS\uff09\r\n\r\n#### 4. \u7f51\u7edc\u8fde\u63a5\u95ee\u9898\r\n\r\n**\u9519\u8bef\u4fe1\u606f**: `API\u8c03\u7528\u5931\u8d25: Connection timeout`\r\n\r\n**\u89e3\u51b3\u65b9\u6848**:\r\n- \u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\r\n- \u786e\u8ba4\u9632\u706b\u5899\u8bbe\u7f6e\r\n- \u5c1d\u8bd5\u4f7f\u7528\u4ee3\u7406\r\n\r\n### \u8c03\u8bd5\u6a21\u5f0f\r\n\r\n```bash\r\n# \u67e5\u770b\u8be6\u7ec6\u65e5\u5fd7\r\nchatbox-modelscope-sync --token YOUR_TOKEN --verbose\r\n\r\n# \u6d4b\u8bd5API\u8fde\u63a5\r\npython -c \"\r\nfrom chatbox_modelscope_sync_mcp import ModelScopeMCPSync\r\nsyncer = ModelScopeMCPSync(api_key='your_token')\r\nresult = syncer.call_modelscope_api()\r\nprint('API\u8fde\u63a5\u6210\u529f' if result else 'API\u8fde\u63a5\u5931\u8d25')\r\n\"\r\n```\r\n\r\n## \ud83e\udd1d \u8d21\u732e\r\n\r\n\u6b22\u8fce\u63d0\u4ea4Issue\u548cPull Request\uff01\r\n\r\n### \u5f00\u53d1\u73af\u5883\u8bbe\u7f6e\r\n\r\n```bash\r\ngit clone https://github.com/ztxtech/chatbox-modelscope-sync-mcp.git\r\ncd chatbox-modelscope-sync-mcp\r\npip install -e \".[dev]\"\r\n\r\n# \u8fd0\u884c\u6d4b\u8bd5\r\npython -m pytest tests/\r\n\r\n# \u4ee3\u7801\u683c\u5f0f\u5316\r\nblack chatbox_modelscope_sync_mcp/\r\nisort chatbox_modelscope_sync_mcp/\r\n```\r\n\r\n## \ud83d\udcc4 \u8bb8\u53ef\u8bc1\r\n\r\nMIT License - \u8be6\u89c1 [LICENSE](LICENSE) \u6587\u4ef6\r\n\r\n## \ud83d\ude4b\u200d\u2642\ufe0f \u652f\u6301\r\n\r\n- \ud83d\udce7 \u90ae\u7bb1: ztxtechfoxmail.com\r\n- \ud83d\udc1b Issue: [GitHub Issues](https://github.com/ztxtech/chatbox-modelscope-sync-mcp/issues)\r\n- \ud83d\udcac \u8ba8\u8bba: [GitHub Discussions](https://github.com/ztxtech/chatbox-modelscope-sync-mcp/discussions)\r\n\r\n## \ud83d\udd04 \u66f4\u65b0\u65e5\u5fd7\r\n\r\n### v0.0.1 (2025-8-10)\r\n- \u2728 \u521d\u59cb\u7248\u672c\u53d1\u5e03\r\n- \ud83c\udfaf \u652f\u6301\u4e00\u952e\u540c\u6b65ModelScope MCP\u670d\u52a1\u5668\r\n- \ud83c\udf0d \u8de8\u5e73\u53f0\u914d\u7f6e\u8def\u5f84\u81ea\u52a8\u68c0\u6d4b\r\n- \ud83e\udde0 \u667a\u80fd\u670d\u52a1\u5668\u540d\u79f0\u9009\u62e9\r\n- \ud83d\udee1\ufe0f \u914d\u7f6e\u6587\u4ef6\u81ea\u52a8\u5907\u4efd\r\n- \ud83d\udce6 PyPI\u5305\u53d1\u5e03\r\n\r\n---\r\n\r\n**Made with \u2764\ufe0f by ztxtech**\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 Tianxiang Zhan\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n ",
"summary": "\u4e00\u952e\u540c\u6b65ModelScope MCP\u670d\u52a1\u5668\u5230Chatbox\u914d\u7f6e\u7684Python\u5de5\u5177",
"version": "0.0.1",
"project_urls": {
"Bug Tracker": "https://github.com/ztxtech/chatbox-modelscope-sync-mcp/issues",
"Documentation": "https://github.com/ztxtech/chatbox-modelscope-sync-mcp#readme",
"Homepage": "https://github.com/ztxtech/chatbox-modelscope-sync-mcp",
"Repository": "https://github.com/ztxtech/chatbox-modelscope-sync-mcp"
},
"split_keywords": [
"chatbox",
" modelscope",
" mcp",
" sync",
" automation",
" configuration",
" http-server"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e662697d6e83af0bf2eed2d6f87319656cb1f4321d8748d80e9b530316dc11c8",
"md5": "51a84e1ac162d0709c3fe1e532f80d30",
"sha256": "6e3ad211249e885e81c9034410da160a8cdad2e3fe0fe24cd0dd649337e23cc2"
},
"downloads": -1,
"filename": "chatbox_modelscope_sync_mcp-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "51a84e1ac162d0709c3fe1e532f80d30",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 15609,
"upload_time": "2025-08-10T10:14:25",
"upload_time_iso_8601": "2025-08-10T10:14:25.019931Z",
"url": "https://files.pythonhosted.org/packages/e6/62/697d6e83af0bf2eed2d6f87319656cb1f4321d8748d80e9b530316dc11c8/chatbox_modelscope_sync_mcp-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6f3ddff3bb87809c4cdcff2ce49f4a25bb629990a500b85e355a4f892d07a2cf",
"md5": "bb4533e3bea62d7ba542386ddc1870fd",
"sha256": "a1123334bda48f5f862f20719e4392b953ad2afd104480c12d3f692bffbdf6a8"
},
"downloads": -1,
"filename": "chatbox_modelscope_sync_mcp-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "bb4533e3bea62d7ba542386ddc1870fd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 17404,
"upload_time": "2025-08-10T10:14:26",
"upload_time_iso_8601": "2025-08-10T10:14:26.445811Z",
"url": "https://files.pythonhosted.org/packages/6f/3d/dff3bb87809c4cdcff2ce49f4a25bb629990a500b85e355a4f892d07a2cf/chatbox_modelscope_sync_mcp-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-10 10:14:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ztxtech",
"github_project": "chatbox-modelscope-sync-mcp",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Requests",
"specs": [
[
"==",
"2.32.4"
]
]
}
],
"lcname": "chatbox-modelscope-sync-mcp"
}