get_project_detail
Retrieve detailed information and all tasks for a specific project in Dida365. Use this tool to access project data by providing the project ID.
Instructions
获取指定项目的详细信息及其所有任务。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目ID |
Implementation Reference
- src/dida_mcp/server.py:305-323 (handler)The logic for handling 'get_project_detail' tool requests in the 'dispatch_tool' function.
elif name == "get_project_detail": data = client.get_project_with_tasks(args["project_id"]) project = data.get("project", data) tasks = data.get("tasks", []) lines = ["📁 项目详情:\n"] lines.append(" 名称: %s" % project.get("name", "未知")) lines.append(" ID: %s" % project.get("id", "")) lines.append("\n📝 任务列表(%d 个):\n" % len(tasks)) for task in tasks: task["_projectId"] = args["project_id"] lines.append(format_task(task)) lines.append("") if not tasks: lines.append(" (空)") return "\n".join(lines) - src/dida_mcp/server.py:98-108 (schema)The tool definition and input schema for 'get_project_detail'.
{ "name": "get_project_detail", "description": "获取指定项目的详细信息及其所有任务。", "inputSchema": { "type": "object", "properties": { "project_id": {"type": "string", "description": "项目ID"} }, "required": ["project_id"], }, },