employee-leave-management-mcp
Leave Management MCP Server
该项目提供了一个简单的 MCP 服务器,用于一个使用 UV 和 Python 构建的员工休假管理系统。
功能
添加员工
列出所有员工
为员工添加休假记录
列出员工的休假记录
删除休假记录
启动和工具日志,用于故障排查
Related MCP server: leave-manager-mcp-server
项目结构
src/leave_management_mcp/server.py– MCP 工具定义和内存休假数据存储src/leave_management_mcp/__init__.py– 包导出和入口点tests/test_leave_management.py– 核心行为的回归测试leave_management_mcp.log– 服务器生成的运行时日志文件
本地运行
在项目根目录下:
cd C:\Users\VIJAY\Codebase\mcp\leave-management
uv run leave-management-mcp该服务器使用 stdio 传输方式,这是 Claude Desktop 推荐的传输方式。
Claude Desktop 配置
创建或编辑此文件:
%APPDATA%\Claude\claude_desktop_config.json使用以下确切配置:
{
"mcpServers": {
"leave-management": {
"command": "C:\\Users\\VIJAY\\AppData\\Local\\Programs\\Python\\Python314\\Scripts\\uv.exe",
"args": [
"--directory",
"C:\\Users\\VIJAY\\Codebase\\mcp\\leave-management",
"run",
"leave-management-mcp"
]
}
}
}重要:
之前的路径
C:\Users\VIJAY\.local\bin\uv.exe在这台机器上无效。实际安装的 UV 路径位于 Python Scripts 文件夹下。
保存文件后重启 Claude Desktop。
Claude 中的示例提示
"添加员工 E001,Alice Johnson"
"列出所有员工"
"为 E001 添加从 2026-08-20 到 2026-08-22 的年假"
"显示 E001 的休假记录"
"删除 E001 从 2026-08-20 到 2026-08-22 的休假"
日志记录
服务器将日志写入:
stderr 用于立即输出
项目根目录中的
leave_management_mcp.log,用于持久化故障排查
这有助于确认 Claude Desktop 启动时 MCP 服务器是否正确启动。
验证
运行测试套件:
cd C:\Users\VIJAY\Codebase\mcp\leave-management
uv run pytest -q已验证结果:
2 passed in 2.85s项目通过了当前的回归测试,并且服务器启动路径已得到验证。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables managing employee leave requests, balances, and approvals through natural language with Claude Desktop, using SQLite for persistence and fuzzy name matching.
- FlicenseBqualityCmaintenanceEnables LLMs to manage employee leave by checking balances, applying for leave, and viewing history.3
- FlicenseAqualityCmaintenanceExposes employee leave-management operations (add employees, check balance, apply/cancel leave, view history) as MCP tools for AI clients like Claude Desktop to call directly.6
- FlicenseBqualityCmaintenanceEnables managing employee leave requests including checking balance, applying for leave, and viewing history.3
Related MCP Connectors
Manage projects, tasks, time tracking, and team collaboration through natural language.
Track time on usetimebook.com - start/stop timers, log entries, list projects/clients.
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/svijayingle/employee-leave-management-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server