
Liedtime.io的MCP服务器,使用liedtime JsonRPC 2.0 API,不需要liedtime MCP插件.
概览
一个模型上下文协议(MCP)服务器,它为AI助手提供了访问Leantime's (leantime.io) JsonRPC 2.0 API的功能. 这使得克洛德等AI工具能够与精益时事项目,出票,计时表,用户互动,更能通过标准化的界面. 这个服务器使用了FastMCP,它支持包括stdio,HTTP,WebSocket,和SSE在内的多个运输协议,使其适合各种部署方案. 不需要倾斜时间 mcp 插件 。 如果您拥有倾斜时间 mcp 插件,则考虑使用 https://github.com/Leantime/php-mcp-server 。 这个项目使用uv进行快速,可靠的Python软件包管理. 在修改您的 MCP 设置之前确保安装它 .
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,它为AI助手提供了访问Leantime’s (leantime.io) JsonRPC 2.0 API的功能. 这使得克洛德等AI工具能够与精益时事项目,出票,计时表,用户互动,更能通过标准化的界面.
这个服务器使用了FastMCP,它支持包括stdio,HTTP,WebSocket,和SSE在内的多个运输协议,使其适合各种部署方案.
不需要倾斜时间 mcp 插件 。 如果您拥有倾斜时间 mcp 插件,则考虑使用 https://github.com/Leantime/php-mcp-server 。
□ MCP 客户端配置
这个项目使用uv进行快速,可靠的Python软件包管理. 在修改您的 MCP 设置之前确保安装它 。
要使用 Claude 桌面或其他 MCP 客户端, 请添加到您的 MCP 设置中 :
STIO运输(违约)
对于Claude桌面等通过标准输入/输出进行通信的本地MCP客户端:
HTTP 运输
对于远程HTTP连接,首先用HTTP传输启动服务器(参见运行服务器),然后配置您的MCP客户端连接到HTTP端点:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Leantime MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to Leantime’s (leantime.io) JsonRPC 2.0 API. This enables AI tools like Claude to interact with Leantime projects, tickets, timesheets, users, and more through a standardized interface.
This server uses FastMCP which supports multiple transport protocols including stdio, HTTP, WebSocket, and SSE, making it suitable for various deployment scenarios.
The leantime mcp plugin is not needed. If you own the leantime mcp plugin consider using https://github.com/Leantime/php-mcp-server instead.
MCP Client Configuration
This project uses uv for fast, reliable Python package management. Ensure it is installed before modifying your MCP settings.
To use with Claude Desktop or other MCP clients, add to your MCP settings:
STDIO Transport (Default)
For local MCP clients like Claude Desktop that communicate via standard input/output:
{
"mcpServers": {
"leantime": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/daniel-eder/leantime-mcp.git",
"leantime-mcp"
],
"env": {
"LEANTIME_URL": "https://your-leantime-instance.com",
"LEANTIME_API_KEY": "your_api_key_here",
"LEANTIME_USER_EMAIL": "[email protected]"
}
}
}
}
HTTP Transport
For remote HTTP connections, first start the server with HTTP transport (see Running the Server), then configure your MCP client to connect to the HTTP endpoint:
{
"mcpServers": {
"leantime-http": {
"url": "http://localhost:8000/mcp",
"transport": "streamableHttp"
}
}
}
Note: The HTTP transport configuration depends on your MCP client’s support for HTTP connections. The server must be running separately using the fastmcp run command with --transport http option. Make sure to set the required environment variables (LEANTIME_URL, LEANTIME_API_KEY, LEANTIME_USER_EMAIL) when starting the HTTP server.
Getting a Leantime API Key
- Log in to your Leantime instance
- Go to Company -> API Keys
- Generate a new API key
Running the Server
This server supports multiple transport protocols for different deployment scenarios:
STDIO Transport (Default)
For use with MCP clients like Claude Desktop that communicate via standard input/output:
# Using the entry point
leantime-mcp
# Or run directly
python -m src.leantime_mcp.server
HTTP Transport
For remote access via HTTP, useful for web services and remote clients:
# Run on default port 8000
fastmcp run src/leantime_mcp/server.py:app --transport http
# Run on custom port
fastmcp run src/leantime_mcp/server.py:app --transport http --port 9000
安装
uvx --from git+https://github.com/daniel-eder/leantime-mcp.git leantime-mcp配置
{
"mcpServers": {
"leantime": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/daniel-eder/leantime-mcp.git",
"leantime-mcp"
],
"env": {
"LEANTIME_URL": "https://your-leantime-instance.com",
"LEANTIME_API_KEY": "your_api_key_here",
"LEANTIME_USER_EMAIL": "[email protected]"
}
}
}
}