cloudclass-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLOUDCLASS_URL | Yes | 云课堂站点根地址,例如 https://class.example.com。 | |
| CLOUDCLASS_TOKEN | Yes | 以 cc_ 开头的云课堂自动化 API 令牌。 | |
| CLOUDCLASS_MCP_ROOTS | No | 逗号分隔的本地目录白名单;设置后只允许上传这些目录下的文件。 | |
| CLOUDCLASS_TIMEOUT_MS | No | 请求超时时间,默认 120000 毫秒,范围为 5 秒到 10 分钟。 | 120000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
CloudClass MCP 把课件发布到云课堂。 上传前先用 cloudclass_whoami 确认令牌和身份;标题、可见性要向用户确认。 cloudclass_upload_resource 支持 .zip、.html 或包含 index.html 的文件夹;文件夹会在本地自动打包。 删除资源不可恢复,必须先得到用户明确同意,再把 confirm 设为 true。 不要把令牌写进资源内容、文件名或提示词。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cloudclass_whoamiA | Return the CloudClass user bound to CLOUDCLASS_TOKEN. Use this before publishing to confirm the token works and whether the account can upload. |
| cloudclass_list_resourcesB | List published CloudClass resources. Supports keyword, kind, category, sort and pagination. Read-only. |
| cloudclass_get_resourceA | Get one CloudClass resource, including its file list and package entry point. Read-only. |
| cloudclass_upload_resourceA | Upload a local .zip, .html/.htm file, or a folder containing index.html. Folders are zipped automatically. The token account must be a teacher or admin. |
| cloudclass_create_html_resourceB | Publish a single HTML document without writing a file first. Useful for AI-generated interactive pages. The HTML limit is 4 MB. |
| cloudclass_update_resourceA | Update title, summary, tags, category, cover or visibility of a resource. Does not replace the uploaded files. |
| cloudclass_delete_resourceA | Permanently delete a resource and its files. Only call after the user explicitly confirms; confirm must be true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool maps to a distinct lifecycle action (get, list, upload, create, update, delete) on the same resource, and the cloudclass_ prefix plus descriptions keep boundaries clear. The only mild overlap is between upload_resource and create_html_resource, since both publish a new resource; descriptions differentiate file-based vs inline-HTML flows, but an agent could still hesitate on which to pick for an HTML file on disk.
All seven tools use the same cloudclass_ namespace prefix followed by a snake_case verb_noun pattern (get_resource, list_resources, upload_resource, create_html_resource, update_resource, delete_resource). The only deviation is whoami, but it is a conventional, well-understood terminal-style name that reads naturally alongside the others.
Seven tools is a tight, well-scoped surface for a resource-publishing service: one tool per CRUD verb, two creation paths for distinct input types, and one auth-check utility. No tool looks redundant or vestigial, and nothing obvious is crammed in.
The surface covers the full lifecycle: identity check, list/search, get, two creation paths, metadata update, and delete with an explicit confirmation guard. The main gap is that update_resource explicitly does not replace files and there is no re-upload, file-level download, or file deletion tool, so agents hit a dead end when artifacts need refreshing.