You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Model Context Protocol (MCP) server that integrates with [ModelScope](https://modelscope.cn)'s ecosystem, providing seamless access to AI models, datasets, apps, papers, and generation capabilities through popular MCP clients.
9
11
@@ -21,7 +23,7 @@ A Model Context Protocol (MCP) server that integrates with [ModelScope](https://
21
23
### 1. Get Your API Token
22
24
23
25
1. Visit [ModelScope](https://modelscope.cn/home) and sign in to your account
24
-
2. Navigate to **[Home] → [Access Tokens]** to retrieve your default API token or create a new one
26
+
2. Navigate to **[Home] → [Access Tokens]** to retrieve or create your API token
25
27
26
28
> 📖 For detailed instructions, refer to the [ModelScope Token Documentation](https://modelscope.cn/docs/accounts/token)
27
29
@@ -85,23 +87,17 @@ This format is widely adopted across the MCP ecosystem:
85
87
uv sync
86
88
```
87
89
88
-
2.**Activate Environment**:
90
+
2.**Activate Environment** (or use your IDE):
89
91
90
92
```bash
91
93
source .venv/bin/activate # Linux/macOS
92
-
# or via your IDE
93
94
```
94
95
95
-
3.**Set Your API Token Environment Variable**:
96
+
3.**Set Your API Token** (see Quick Start section for token setup):
96
97
97
98
```bash
98
99
export MODELSCOPE_API_TOKEN="your-api-token"
99
-
```
100
-
101
-
Or, you can set the API token in the `.env` file (under the project root) for convenience:
102
-
103
-
```env
104
-
MODELSCOPE_API_TOKEN="your-api-token"
100
+
# Or create .env file: echo 'MODELSCOPE_API_TOKEN="your-api-token"' > .env
105
101
```
106
102
107
103
### Running the Demo Script
@@ -112,7 +108,7 @@ Run a quick demo to explore the server's capabilities:
112
108
uv run python demo.py
113
109
```
114
110
115
-
Use the `--full` flag to demonstrate all available features:
111
+
Use the `--full` flag for comprehensive feature demonstration:
116
112
117
113
```bash
118
114
uv run python demo.py --full
@@ -149,49 +145,77 @@ You can also debug the server using the [MCP Inspector](https://github.com/model
149
145
npx @modelcontextprotocol/inspector uv run modelscope-mcp-server
150
146
```
151
147
152
-
The above command uses stdio transport by default; you can switch to HTTP or SSE in the Web UI as needed.
148
+
Uses stdio transport by default; switch to HTTP/SSE in the Web UI as needed.
153
149
154
150
### Testing
155
151
156
-
Run the complete test suite:
157
-
158
152
```bash
159
-
#Basic test run
153
+
#Run all tests
160
154
uv run pytest
161
155
162
-
# Run tests for a specific file
156
+
# Run specific test file
163
157
uv run pytest tests/test_search_papers.py
164
158
165
159
# With coverage report
166
-
uv run pytest --cov=src --cov=examples --cov-report=html
160
+
uv run pytest --cov=src --cov-report=html
167
161
```
168
162
169
-
### Code Quality
163
+
## 🔄 Continuous Integration
164
+
165
+
This project uses GitHub Actions for automated CI/CD workflows that run on every push and pull request:
170
166
171
-
This project uses `pre-commit` hooks for automated code formatting, linting, and type checking:
0 commit comments