摘要
Datto(Kaseya)的 Autotask PSA:查询公司、联系人、工单和备注、工时记录、项目和任务、资源、合同和配置项;创建和更新工单、添加备注并记录工时。Autotask REST API。
引导式设置
2 分钟将 Autotask PSA 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Autotask PSA,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Autotask PSA 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Autotask PSA、粘贴凭证、生成 MCP API key — 完成。无 Docker、无
git clone、无本地服务器。
Autotask PSA + Microsoft Copilot
Datto(Kaseya)的 Autotask PSA:查询公司、联系人、工单和备注、工时记录、项目和任务、资源、合同和配置项;创建和更新工单、添加备注并记录工时。Autotask REST API。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
AUTOTASK_ZONE_HOST, AUTOTASK_USERNAME, AUTOTASK_SECRET, AUTOTASK_INTEGRATION_CODE
步骤 1 — 获取凭证
该连接器使用 Autotask PSA 的 REST API。它需要一个仅限 API 的资源,只有 Autotask 管理员才能创建。
- 在 Autotask 中打开 Admin → Resources/Users → New API User,并为该资源设置安全级别 API User (API-only)。
- 在其 Security 选项卡的 API Tracking Identifier 下,选择你的集成供应商,或让 Autotask 生成自定义标识符(internal integration)。将其复制到
AUTOTASK_INTEGRATION_CODE。 - 将 API 用户的用户名(形如邮箱地址)复制到
AUTOTASK_USERNAME,将生成的密钥复制到AUTOTASK_SECRET。密钥只在生成时完整显示。 - 在浏览器中打开
https://webservices.autotask.net/atservicesrest/v1.0/zoneInformation?user=<API username>,将url字段中的主机复制到AUTOTASK_ZONE_HOST,例如webservices5.autotask.net:只填主机,不带https://,也不带路径。区域错误时,即使凭据正确也会返回 500 或 401。 - 先调用
autotask_query_companies,再用companyID调用autotask_query_tickets。状态、优先级和队列是数字 ID,每个数据库都不同:在按它们筛选或写入之前,先用autotask_get_entity_fields(例如实体Tickets)读取。
一次查询最多返回 500 条记录;Autotask 每个数据库每小时允许 10,000 个请求,因此计数请使用 autotask_count_tickets。创建和更新工单、添加备注和记录工时会修改数据,并可能通过工作流规则触发客户通知。该连接器不会删除任何内容。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Microsoft Copilot 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。
- 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
- 填写 Server name(例如
AnythingMCP)、说明连接器用途的 Server description,以及 Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。 - 身份验证选择 API key,把 Type 设为 Header,请求头名称填
X-API-Key,然后选择 Create。 - 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
- 在智能体的 Test 窗格中试一试:提出需要用到
Autotask PSA的工具的请求。 - 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。
希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
autotask_query_companies | Query companies (customers, prospects, vendors) with an Autotask filter: name, type, phone, address, owner resource and active flag |
autotask_get_company | Get one company by id with all standard fields and user-defined fields |
autotask_query_contacts | Query contacts (people at customer companies) with an Autotask filter: name, email, phone, company and active flag |
autotask_get_contact | Get one contact by id: name, company, email addresses, phones, title and active flag |
autotask_query_tickets | Query service desk tickets with an Autotask filter: number, title, status, priority, queue, company, contact, assigned resource, due date… |
autotask_count_tickets | Count the tickets matching an Autotask filter without returning them, for example open tickets per queue |
autotask_get_ticket | Get one ticket by id with all fields: title, description, status, priority, queue, issue and sub-issue type, company, contact, assigned… |
autotask_query_ticket_notes | Query ticket notes with an Autotask filter, usually by ticketID: title, description, note type, publish (who can see it), creator and date |
autotask_query_time_entries | Query time entries with an Autotask filter: resource, ticket or task, date worked, start and end time, hours worked and to bill, role… |
autotask_get_time_entry | Get one time entry by id: resource, ticket or task, dates, hours worked, hours to bill, role, billing code, summary and internal notes |
autotask_query_projects | Query projects with an Autotask filter: name, number, company, status, type, project lead, start and end dates, estimated and actual hours |
autotask_get_project | Get one project by id with status, type, company, lead resource, dates, hours, revenue fields and user-defined fields |
autotask_query_tasks | Query project tasks with an Autotask filter, usually by projectID: title, status, assigned resource, phase, start and end dates, estimated… |
autotask_query_resources | Query resources (Autotask users: technicians, employees) with an Autotask filter: name, email, title, active flag and default service desk… |
autotask_get_resource | Get one resource (Autotask user) by id: name, email, title, active flag, location, license type and default role |
autotask_query_contracts | Query customer contracts with an Autotask filter: name, number, company, type (time and materials, fixed price, block hours, retainer… |
autotask_query_configuration_items | Query configuration items (managed devices and assets) with an Autotask filter: reference title, serial number, company, product, install… |
autotask_get_entity_fields | Describe the fields of an entity: name, data type, whether it is required or read-only, and for picklists the allowed values with their… |
autotask_query | Query any Autotask entity that has no dedicated tool (for example Roles, BillingCodes, ServiceCalls, Opportunities, Invoices, Quotes) with… |
autotask_create_ticket | Create a service desk ticket for a company |
autotask_update_ticket | Change fields of an existing ticket: status, priority, queue, assigned resource, due date, title or description |
autotask_create_ticket_note | Add a note to a ticket. publish 1 makes it visible to all Autotask users and the customer portal, 2 to internal users only |
autotask_create_time_entry | Log time worked on a ticket or task for a resource: date, start and end time or hours, role, summary and internal notes |
FAQ
这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。
我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。
智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。
下一步
这份指南对你有帮助吗?