Leave Pto Requests Approvals

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v0.22.6更新于 Oct 24, 2026

Employee leave and PTO requests: balances, approvals, calendars, and who-is-out summaries.

已验证STDIO仅桌面效率与工作流商业与电商

概览

AI 生成的概览

面向小团队的本地 MCP 服务器,用于管理员工休假与 PTO:额度、申请、审批、余额和谁在休假的日历。

可以做什么
  • 添加员工并设置年度额度与可选的结转天数
  • 登记年假、病假或个人事假申请(含半天),并进行批准、驳回或取消
  • 查询每位员工的余额:额度、结转、已批准、待审批、已占用与剩余天数
  • 按日期范围查看谁在休假(逐日日历与人员天数),并按员工和状态列出员工与申请
  • Pro 版增加 CSV 批量导入申请,以及将已批准休假导出为 ICS 日历
适用场景
适合个人创业者和小型工作室,希望在 Claude Desktop、Cursor 等 MCP 客户端中直接记录和审批休假,而不必另建 HR 系统。也适合在排期时需要快速查询余额和谁在休假的团队。
运行要求
以 stdio 本地进程运行,可通过 mcpb 包或 npx 安装。数据保存在用户主目录或 XDG 数据目录下的本地 JSON 文件中。无需账号或身份验证;可选的 Pro 许可证密钥通过 MCP_LICENSE_KEY 环境变量提供,并离线校验。
安装前请注意
该服务器会写入和修改数据:添加员工、登记、批准、驳回和取消申请都会改动本地存储,取消操作会保留审计记录。休假记录(含事由)以普通 JSON 文件保存在本机,需注意保护该文件。Pro 许可证密钥属于机密,不应外泄。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Leave Pto Requests Approvals,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-leave

[theluckystrike/mcp-leave MCP server]

In the official MCP Registry (io.github.theluckystrike/leave). Employee leave/PTO tracking for solopreneurs and small studios: who is off, when, and how many days each person has left. Add employees with an annual allowance and any carried-over days, log vacation/sick/personal requests (including half-days), approve or reject them, and read balances, conflicts and who-is-out calendars directly from your MCP client - Claude Desktop, Cursor, or any MCP host.

Tools

  • "leave_employee_add" - add an employee with annualAllowance (and optional carriedOver).
  • "leave_request" - log a leave request (employee, type, start, end, optional halfDay, reason).
  • "leave_approve" / "leave_reject" - decide a request; decisions are recorded with dates.
  • "leave_cancel" - cancel a pending or approved request (keeps the audit trail).
  • "leave_balance" - allowance, carried, approved, pending, committed and remaining days per employee.
  • "leave_out_range" - who is out in a date range: day-by-day calendar rows plus person-days.
  • "leave_list" - all employees and requests, filterable by employee and status.
  • "leave_import" (Pro) - bulk-create requests from CSV; conflicting rows are rejected one by one, valid rows still apply.
  • "leave_export_ics" (Pro) - export approved leave as an RFC5545 .ics calendar.

The one rule that decides everything else

A day is committed when the request that spends it is approved or pending. Balance is allowance + carried − approved − pending. Cancelling returns the days immediately; rejecting never charged them.

Overlapping requests for the same person are refused at creation time - both pending and approved count - so the calendar never contains two requests claiming the same day.

Free vs Pro

The free tier is the full CRUD surface: employees, requests, approvals, balances, calendars - watermark-free, no request limits. Pro (an MCP_LICENSE_KEY, activate with "license_activate") adds bulk CSV import and ICS calendar export. Run "license_status" to see the current tier.

Quick start

json
{  "mcpServers": {    "leave": { "command": "npx", "args": ["-y", "@theluckystrike/mcp-leave"] }  }}

Data lives in a single JSON store (~/.mcp-leave/store.json, or $XDG_DATA_HOME/mcp-servers/leave/store.json when set), written atomically under a file lock, so two clients on one machine never interleave writes.

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

来源:servers/leave/README.md,提交 55b3f42

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.22.6最新Oct 14, 2026
  2. v0.22.0Sep 23, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分