本项目的 MCP 服务器与 Google Tasks 集成,可实现任务的列出、读取、搜索、创建、更新和删除等操作,为用户管理 Google Tasks 提供便利。
https://www.googleapis.com/auth/tasks
gcp-oauth.keys.json
并放置在此存储库的根目录中(即 gcp-oauth.keys.json
)确保使用 npm run build
或 npm run watch
进行构建。
要通过 Smithery 自动安装 Google Tasks Server,可使用以下命令:
npx -y @smithery/cli install @zcaceres/gtasks --desktop
gtasks-mcp
并放置在默认的可执行路径中gtasks-mcp
search
query
(字符串):搜索查询list
cursor
(字符串):分页游标create
taskListId
(字符串,可选):任务列表 IDtitle
(字符串,必需):任务标题notes
(字符串,可选):任务备注due
(字符串,可选):截止日期update
taskListId
(字符串,可选):任务列表 IDid
(字符串,必需):任务 IDuri
(字符串,必需):任务 URItitle
(字符串,可选):新任务标题notes
(字符串,可选):新任务备注status
(字符串,可选):新任务状态("needsAction" 或 "completed")due
(字符串,可选):新截止日期delete
taskListId
(字符串,必需):任务列表 IDid
(字符串,必需):任务 IDclear
taskListId
(字符串,必需):任务列表 ID服务器提供对 Google Tasks 资源的访问:
gtasks:///
)
# 创建任务
curl -X POST http://localhost:8080/api/tasks \
-H "Content-Type: application/json" \
-d '{"title":"完成项目","notes":"需要在周五前完成"}'
# 列出所有任务
curl http://localhost:8080/api/tasks
# 更新任务状态
curl -X PUT http://localhost:8080/api/tasks/123 \
-H "Content-Type: application/json" \
-d '{"status":"completed"}'
npm install