This commit is contained in:
2026-03-31 20:51:44 +08:00
parent 5ca759d280
commit d30e4db319
11 changed files with 580 additions and 204 deletions

View File

@@ -15,22 +15,18 @@
| `search_course` | 搜索课程信息 | `search_course("数据结构")` |
| `get_course_schedule` | 获取学生课表 | `get_course_schedule("B21010101", "2024-2025-1")` |
| `search_library_book` | 搜索图书馆藏书 | `search_library_book("Python", "title")` |
| `get_campus_info` | 获取校园信息 | `get_campus_info("contacts")` |
### 📚 Resources资源
| 资源 URI | 描述 |
|----------|------|
| `njupt://announcements` | 最新公告列表 |
| `njupt://academic-calendar` | 校历信息 |
| `njupt://departments` | 学院/部门列表 |
| 资源 URI | 描述 |
|--------|-----|
| `...` | ... |
### 💬 Prompts提示词模板
| Prompt | 用途 |
|--------|------|
| `academic_advisor_query` | 学业咨询助手 |
| `campus_guide_query` | 校园导航助手 |
| Prompt | 用途 |
|--------|-----|
| `...` | ... |
## 🚀 快速开始
@@ -68,13 +64,13 @@ python -m njupt_mcp.server
#### 方式二SSE 模式(网络服务)
```bash
uv run njupt-mcp --transport sse --host 0.0.0.0 --port 8000
uv run njupt-mcp --transport sse
```
#### 方式三streamable-http 模式
```bash
uv run njupt-mcp --transport streamable-http --port 8000
uv run njupt-mcp --transport streamable-http
```
## ⚙️ 客户端配置