Asana 扩展
本教程介绍如何将 Asana MCP 服务器 添加为 goose 扩展,以实现任务自动化、项目跟踪和团队协作。
配置
运行此命令需要在系统上安装 Node.js,因为它使用 npx。
- goose Desktop
- goose CLI
- Launch the installer
- Click
Yesto confirm the installation - Get your Asana Access Token and paste it in
- Click
Add Extension - Click the button in the top-left to open the sidebar
- Navigate to the chat
如果需要创建访问令牌的详细步骤,请参阅 Asana 开发者文档。
- Run the
configurecommand:
goose configure
- Choose to add a
Command-line Extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◆ What type of extension would you like to add?
│ ○ Built-in Extension
│ ● Command-line Extension (Run a local command or script)
│ ○ Remote Extension (Streamable HTTP)
└
- Give your extension a name.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◆ What would you like to call this extension?
│ Asana
└
- Enter the command to run when this extension is used.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Asana
│
◆ What command should be run?
│ npx -y @roychri/mcp-server-asana
└
- Enter the number of seconds goose should wait for actions to complete before timing out. Default is
300seconds.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Asana
│
◇ What command should be run?
│ npx -y @roychri/mcp-server-asana
│
◆ Please set the timeout for this tool (in secs):
│ 300
└
- Enter a description for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Asana
│
◇ What command should be run?
│ npx -y @roychri/mcp-server-asana
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◆ Enter a description for this extension:
│ 实现任务自动化、项目跟踪和团队协作
└
- Add an environment variable for this extension.
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ Asana
│
◇ What command should be run?
│ npx -y @roychri/mcp-server-asana
│
◇ Please set the timeout for this tool (in secs):
│ 300
│
◇ Enter a description for this extension:
│ 实现任务自动化、项目跟踪和团队协作
│
◆ Would you like to add environment variables?
│ Yes
│
◇ Environment variable name:
│ ASANA_ACCESS_TOKEN
│
◇ Environment variable value:
│ ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪
│
◇ Add another environment variable?
│ No
│
└ Added Asana extension
使用示例
goose 提示词
goose,我有一个小时。请查看 Asana 里分配给我且尚未完成的任务,找出你估计一小时以内能完成的那些,并按截止日期排序。
goose 输出
ID 已替换为通用占位符。
工具调用
─── asana_search_tasks | abcdefgh ──────────────────────────
assignee.any: me
completed: false
workspace: 1234567890123
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000001
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000002
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000003
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000004
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000005
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000006
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000007
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000008
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000009
─── asana_get_task | abcdefgh ──────────────────────────
opt_fields: due_on,estimated_hours
task_id: 1100000000000010
以下是 Asana 中估计一小时以内能完成、且尚未完成的任务,已按截止日期排序:
-
任务: 审阅团队会议纪要
- 截止日期: 2025-03-21
-
任务: 起草简短状态更新
- 截止日期: 2025-03-21
-
任务: 校对博客文章
- 截止日期: 2025-03-21
-
任务: 给合作伙伴发送提醒
- 截止日期: 2025-03-27
如果需要某个任务的更多信息或帮助,请告诉我!