摘要
Access PeopleHR,英国人力资源软件:员工、休假、缺勤、假期额度、薪资、已保存的 Query Builder 报表、绩效评估、培训、工时表、工作模式和招聘职位。Integration API v4,API 密钥在每个 POST 的 JSON 请求体中发送。
引导式设置
2 分钟将 Access PeopleHR 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Access PeopleHR,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Access PeopleHR 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Access PeopleHR、粘贴凭证、生成 MCP API key — 完成。无 Docker、无
git clone、无本地服务器。
Access PeopleHR + Microsoft Copilot
Access PeopleHR,英国人力资源软件:员工、休假、缺勤、假期额度、薪资、已保存的 Query Builder 报表、绩效评估、培训、工时表、工作模式和招聘职位。Integration API v4,API 密钥在每个 POST 的 JSON 请求体中发送。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
PEOPLEHR_API_KEY
步骤 1 — 获取凭证
该连接器使用一个 API 密钥调用 Access PeopleHR Integration API v4。它可读取员工、休假和缺勤、薪资、已保存报表、绩效评估、培训、工时表和招聘职位;在密钥允许时,还能登记休假和缺勤。
- 由 PeopleHR 管理员打开 Settings > API 并创建密钥(形如
1a2b3c4d-...的 GUID)。 - 创建时勾选密钥可调用的资源和操作:读取工具至少需要 Employee、Holiday、Absence、Holiday Entitlements、Salary、Query Builder、Appraisal、Training 和 ATS。只有需要使用
peoplehr_add_holiday和peoplehr_add_absence时,才添加 Add Holiday 和 Add Absence 操作。 - 将密钥填入
PEOPLEHR_API_KEY。如果密钥设置了 IP 白名单,AnythingMCP 的地址不在名单上时,调用会被拒绝。 - 先调用
peoplehr_get_company_information检查密钥,再用peoplehr_get_employee_directory查到按员工查询的工具所需的 EmployeeId(例如PW15)。
注意事项:
- 错误也以 HTTP 200 返回。请查看响应中的
Status:0 成功,10 无记录,5 校验错误或Access Denied.,6 服务器错误。Access Denied.表示该密钥未被授予这个操作或模式。 peoplehr_list_leavers需要单独的 GetAllLeavers 授权,职位和应聘者工具需要启用招聘模块(ATS),否则会返回 Status 5。peoplehr_run_query按准确名称运行已保存的 Query Builder 查询。API 无法列出查询,请在 Reports > Query Builder 中查看名称。- 日期格式为
yyyy-MM-dd。速率限制由 Access 按公司设定;被限流的调用会返回 Status 5 和每分钟上限的提示,等待一分钟后重试即可。
步骤 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 窗格中试一试:提出需要用到
Access PeopleHR的工具的请求。 - 选择 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 |
|---|---|
peoplehr_get_company_information | Return the company (tenant) the API key belongs to: CompanyId, SubDomain and CompanyName |
peoplehr_get_employee_directory | Return every employee in one call as a compact directory: id, name, e-mail, job role, department, location, company, manager, start date… |
peoplehr_list_employees | Page through full employee records (contact, employment, bank and right-to-work details, each field as {DisplayValue, FieldHistory}) |
peoplehr_get_employee | Return one employee's full record by EmployeeId: personal and contact details, job role, department, location, manager, employment type… |
peoplehr_list_leavers | List the employees who have left the company with their leaving details |
peoplehr_get_employee_absences | List one employee's absence (sickness and other absence) records: reason, start and end dates, duration, paid status, part of day… |
peoplehr_list_absences | List absence records for all employees in a date window |
peoplehr_get_employee_holidays | List one employee's annual leave bookings: dates, duration in days or minutes, part of day, approval status, approver and comments |
peoplehr_list_holidays | List annual leave bookings for all employees in a date window |
peoplehr_get_holiday_entitlement | Return one employee's holiday entitlement per holiday year: period start and end, whether it is measured in days or hours, and the… |
peoplehr_list_holiday_entitlements | Return holiday entitlement rows for every employee and holiday year in a date window: FullName, UniqueId, period, unit (days or hours) and… |
peoplehr_get_employee_salary | Return one employee's salary records: effective date, salary type, payment frequency, amount, total including entitlements, currency… |
peoplehr_list_salaries | Return salary records for all employees |
peoplehr_run_query | Run a saved Query Builder query by its exact name and return its rows, keyed by the query's own column headings |
peoplehr_get_employee_appraisals | List one employee's appraisals (performance reviews): AppraisalId, review date, reviewer, notes, objectives, action plan and the tenant's… |
peoplehr_get_appraisal | Return one appraisal by its AppraisalId with review date, reviewer, notes, objectives, action plan and custom columns |
peoplehr_get_employee_training | List training records: TrainingId, training type, description, importance, status, start, end and expiry dates, cost, provider and notes |
peoplehr_get_employee_other_events | List one employee's other events (leave types beyond holiday and absence, such as jury duty, training days or appointments) with reason… |
peoplehr_get_employee_lateness | List one employee's lateness records: the date, how many minutes late and comments, optionally within a date window |
peoplehr_get_employee_timesheets | List one employee's timesheets per day with up to 15 time-in and time-out pairs (HH:mm:ss) and comments, within a date window |
peoplehr_list_work_patterns | List the company's work patterns with, per week and weekday, the working days and minutes |
peoplehr_list_vacancies | List the recruitment vacancies (ATS): name, reference, job title, company, location, department, status, closing date, salary range and… |
peoplehr_get_vacancy | Return one vacancy by its reference with description, job description, closing date, salary range and application questions |
peoplehr_list_applicants | List the applicants of one vacancy with ApplicantId, first and last name and e-mail address |
peoplehr_add_holiday | Book annual leave for an employee |
peoplehr_add_absence | Record an absence (e.g. sickness) for an employee with reason, dates, duration and paid status |
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" 即可使用新版本。
下一步
这份指南对你有帮助吗?