UML Now MCP服务器
用于与UMLNow API交互的MCP服务器
使用此内容即表示您同意 马萨诸塞大学洛厄尔API服务条款.
用法
MCP服务器可供以下任一用户在本地使用
- 作为主机进程运行:
uv run server.py
- 可在以下网址访问 localhost:8000/mcp
- 作为docker容器运行:
./build_and_run.sh
- 可在以下网址访问 0.0.0.0:8000/mcp 或 localhost:8000/mcp 本地
\[!注意\] 如果您正在使用MCP Inspector工具进行本地开发,那么uml现在MCP使用可流化的HTTP传输,而不是STDIO或服务器发送的事件(SSE)。
对于kubernetes上的生产部署,请查看参考清单, k8s/kubernetes_prod.yaml.
技术
- 码头工人
- 主控程序
🛠️ 工具调用(WIP)
Tool Name Description Function Signature Response Schema Misc.
get_course_info_from_course_id Get course information from a provided course ID
... (course_id: str, course_name: bool = False, course_description: bool = False, course_url: bool = False, course_credits: bool = False, course_requirements: bool = False)
{ name: str url: str id: str description: str credits: { min: str max: str } requirements-text: str }
Identified as a Course dictionary object
get_courses_by_subject_prefix Obtain a total list of classes from a subject at the University of Massachusetts Lowell
... (subject_prefix: str)
{ str: { name: str url: str id: str description: str credits: { min: str max: str } requirements-text: str } ... }
Each object's key is the course ID. Each value is a Course dictionary object.
search_by_course_title Search for course id, name, url, descriptions, credits information, and requirements by the course title.
... (course_title: str, top_k: int)
{ str: { name: str url: str id: str description: str credits: { min: str max: str } requirements-text: str } ... }
Each object's key is the course ID. Each value is the Course dictionary object.
get_all_subject_prefixes Obtain the exhuastive mapping of subject names to their prefixes
... ()
{ str: str|list[str], ... }
The key is the course title/name and the value is the prefix or list of prefixes.
