TAPD MCP Server
TAPD 是腾讯敏捷研发管理平台,覆盖需求、计划、研发、测试、发布研发全生命周期。支持用自然语言与 TAPD 对话,实现需求、缺陷、任务、迭代等管理。
- 与 TAPD API 无缝集成,提升开发效率
系统要求
- uv
- TAPD Access Token(推荐)或 TAPD API 账号密码
快速开始
Install uv
brew install uv
# OR
curl -LsSf https://astral.sh/uv/install.sh | sh
参数
- TAPD_ACCESS_TOKEN: 个人令牌(推荐)
- TAPD_API_USER: API账号
- TAPD_API_PASSWORD: API密钥
- BOT_URL: 企业微信机器人 webhook 地址,如果需要发送消息到企业微信群才需要填(选填)
注意 TAPD_API_USER/TAPD_API_PASSWORD(TAPD API 账号密码) 与 TAPD_ACCESS_TOKEN(TAPD 个人授权令牌)为两种调用 MCP 的凭据,选一种即可。
获取 TAPD Access Token(推荐)
TAPD_ACCESS_TOKEN 为 TAPD 个人令牌,在 我的设置-个人访问令牌 点“创建个人访问令牌”,令牌只显示一次,注意保存下来。
获取 API 账号密码(兼容)
- 未注册,请前往 注册
- 已注册但未授权API,请前往API配置:登录TAPD,点击进入 公司管理-API账号管理,复制API账号和API密钥
IDE 配置
CodeBuddy / Claude Desktop / Cursor
本地 stdio 运行,环境变量配置示例(推荐个人 Token)
{
"mcpServers": {
"mcp-server-tapd": {
"command": "uvx",
"args": ["--from", "zan-tapd-mcp", "mcp-server-tapd"],
"env": {
"TAPD_ACCESS_TOKEN": "您的个人Token",
// 兼容账号密码方式(如未配置 Token 时生效)
"TAPD_API_USER": "",
"TAPD_API_PASSWORD": "",
"TAPD_API_BASE_URL": "https://api.tapd.cn",
"TAPD_BASE_URL": "https://www.tapd.cn",
"BOT_URL": ""
}
}
}
}
Streamable HTTP 配置
使用 Streamable HTTP 替代 stdio
- 在终端启动已发布的服务
uvx --from zan-tapd-mcp mcp-server-tapd --mode=streamable-http --host="0.0.0.0" --port=8000 --api-user=your_api_user --api-password=your_api_password --api-base-url=https://api.tapd.cn --tapd-base-url=https://www.tapd.cn --bot-url="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=XXX"
# 如果使用个人 Token,则将 --api-user=your_api_user --api-password=your_api_password 替换为 --access-token=您的个人Token
- 通过如下配置连接到已启动的服务
{
"mcpServers": {
"tapd_mcp_http": {
"url": "http://localhost:8000/mcp/"
}
}
}
富媒体描述
create_bug、update_bug、create_story_or_task、update_story_or_task、create_comments、update_comments 支持把外部图片或视频直链直接写进 TAPD 富文本描述/评论。
可用参数:
media: 结构化媒体列表,例如[{ "type": "image", "url": "https://example.com/a.png" }, { "type": "video", "url": "https://example.com/demo.mp4" }]image_url/image_urls: 单个或多个图片直链video_url/video_urls: 单个或多个视频直链
示例:
{
"workspace_id": 55508687,
"title": "支付回调失败",
"options": {
"description": "复现步骤见下方录屏",
"media": [
{ "type": "image", "url": "https://example.com/screenshot.png", "alt": "错误截图" },
{ "type": "video", "url": "https://example.com/demo.mp4" }
]
}
}
注意:
- 图片/视频必须是浏览器可直接访问的直链
- 使用临时签名 URL 时,链接过期后 TAPD 中的媒体也会失效
快速创建需求下的任务
create_task 创建单个任务,create_tasks 接受 1~50 个任务。公共 story_id
用于关联需求;公共 options 提供默认值,任务自己的字段优先。
{
"workspace_id": 12345678,
"story_id": "123",
"options": {
"status": "未开始",
"begin": "2026-10-23",
"due": "2026-10-24"
},
"tasks": [
{"name": "前端开发", "owner": "alice", "effort": 4},
{"name": "后端开发", "owner": "bob", "effort": 8}
]
}
字段:name 标题、effort 预估工时、owner 处理人 TAPD 账号、
begin/due 预计起止日期、status/v_status 状态、description 描述。
story_id 支持短 ID 和完整 ID;自定义字段先查询 tasks 字段配置。
progress 接受 0~100 整数,但公开 API 未承诺可写:工具会读回验证,
未生效时明确返回 partial 和已创建任务 ID。状态在创建后通过更新接口设置。
整批先校验,随后逐条创建并读回关键字段。一项失败或结果未知即停止,
结果按输入顺序返回 created、partial、failed、unknown 或 skipped,
并附已有任务的 ID 和链接。created_count 是拿到创建 ID 的数量,
success_count 是读回验证成功的数量;创建结果未知的任务可能已经存在。
不提供事务回滚或自动重试,恢复时先查询核对,勿重放整批。
开发验证
uv sync --locked --python 3.13
uv run --locked python -m unittest discover -s tests -v
uv build
源代码基于腾讯社区 TAPD MCP;来源记录见 UPSTREAM.md,许可证见 LICENSE。
Metadata
Release files for zan-tapd-mcp 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zan_tapd_mcp-0.0.3.tar.gz | 34.5 kB | Without provenance | Details for zan_tapd_mcp-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zan_tapd_mcp-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for zan_tapd_mcp-0.0.3-py3-none-any.whl |
Total release size: 65.2 kB
Release files / zan_tapd_mcp-0.0.3.tar.gz
| Download URL | zan_tapd_mcp-0.0.3.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9af20f91ef9947ca7df9b5f97d31cda13c1b65e5f985a378b39b6f4f56a1064
|
|
BLAKE2b-256 checksum How to use checksums |
84718d72630ffb5128f63520d971909a187f348e5b2f7094dc157f30112b3ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / zan_tapd_mcp-0.0.3-py3-none-any.whl
| Download URL | zan_tapd_mcp-0.0.3-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f568e6a40147e2674ac34d0b155513e19412d8f6e5ef5ed9c33ad3da139a2db9
|
|
BLAKE2b-256 checksum How to use checksums |
8770251e4255aba16aa2c1b15c0b3ccc0e04791410aaa0dde3a91b1aa0c7fd8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for zan-tapd-mcp 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.