Mcp Server Polarion
io.github.devemberx由 GitHub 账号 devemberx 发布v2.1.0更新于 Nov 3, 2026
MCP server for Polarion ALM — read and write documents and work items
概览
面向 Polarion ALM 的 MCP 服务器,让助手读取、搜索、创建和更新文档、工作项、测试运行、链接、评论与附件。
- 可以做什么
- 列出项目、文档、工作项和测试运行,并用 Lucene 或 SQL 查询,支持分页
- 以 Markdown 或原始 HTML 读取文档与工作项,查看文档结构、链接、评论和枚举选项
- 创建和更新工作项、文档与测试运行,包括工作流状态和文档复制
- 管理追溯链接,将工作项挂载到文档或从文档移除,并调整文档结构
- 发表和解决评论,上传或查看文档、工作项和测试记录上的附件
- 适用场景
- 适合需要助手直接在 Polarion ALM 实例中工作的场景:汇总需求、追踪需求与测试之间的链接、记录测试结果,或起草和重组文档与工作项。
- 运行要求
- 需要本地 Python 运行环境与 uv(通过 uvx 运行),以及可访问的 Polarion 2506 或更高版本实例。需设置 POLARION_URL 和 POLARION_TOKEN 环境变量;POLARION_MAX_REQUESTS_PER_SECOND 可选,默认值为 1。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Server Polarion,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mcp-server-polarion
Talk to your Polarion — AI reads, writes, and reorganizes documents, work items, test runs, and traceability links.
Features · Quickstart · Tools · Example Prompts · Setup
A Model Context Protocol (MCP) server for Polarion ALM, built for real-world instances: every write supports dry_run, guards validate fields and enum values before anything is committed, and requests are paced to a rate cap you configure for your instance — so an AI assistant can work on production data without surprises.
Features
- 46 tools covering read and write across documents, work items, test runs, traceability links, comments, and attachments.
- Read — render documents as Markdown, search with Lucene or SQL, walk incoming/outgoing links, resolve enum options.
- Write — create and update work items, documents, and test runs, manage links, reorganize document structure, post comments.
- Safe writes — every write tool supports
dry_run, and pre-write guards validate fields, enum values, and link targets before hitting Polarion. - Plays nice with your server — requests are serialized and paced to a configurable rate cap, with automatic retries on 429/5xx responses.
- Built for LLMs — strict async, fully typed, pagination on every list tool, docstrings written as the assistant's manual.
Quickstart
Requires Polarion 2506+ and uv — see Prerequisites. Fastest path — Claude Code:
Other clients (VS Code, Claude Desktop, Cursor) — see Client Configuration.
Tools
Read
All list tools support pagination via page_size (1–100) and page_number parameters.
Write
Example Prompts
Discovery & search
"List the projects I can access, then show the documents in project MCPT with their types."
"List the documents in space 'Specifications' of project MCPT."
"Find every approved requirement in project MCPT whose title starts with 'Auth' and show me their owning document."
"Search project MCPT for work items where the custom field 'verification_method' is 'Test' — grab the SQL recipes first if you need a join."
"Find all work items in the SRS module of project MCPT that were changed in the last sprint."
Reading & summarizing
"Read the SRS document of project MCPT and summarize each open requirement."
"Show me the structural outline of the SRS document — headings and the work items under each."
"Read work item MCPT-042 as Markdown and explain what it asks for."
"Show the outgoing and incoming links for MCPT-042 and flag any child task that is still open."
"Which requirements in the SRS document have no 'verifies' back link from a test case?"
"List the open comment threads on the SRS document and who started each."
Creating & editing
"Create a task in project MCPT titled 'Refactor authentication module' and link it to MCPT-042 as 'relates_to'."
"Create three test-case work items in project MCPT from this checklist and link each one to MCPT-042 as 'verifies'."
"Add a new requirement under section 3.2 of the SRS document with the body I just drafted."
"Update the description of MCPT-042 with the revised text I'll paste, keeping the existing formatting."
"Add a comment on the SRS document asking the owner to clarify section 4, then reply to thread T-12 marking it resolved."
"Create a test run REG-SPRINT-7 in project MCPT from the 'Regression' template with status 'open'."
Workflow & reorganization
"List the valid status values for a defect in project MCPT, then move MCPT-077 to 'in_review'."
"Bump MCPT-042's priority to 90, set severity to 'major', and approve the workflow."
"Change MCPT-201 from a task to a requirement and re-apply its previous status."
"Move MCPT-201 into the SRS document right after MCPT-150."
"Detach MCPT-077 from its document so I can rework it as a standalone task."
"Mark the 'blocks' link from MCPT-042 to MCPT-099 as suspect, then delete the stale 'relates_to' link to MCPT-010."
Setup
Prerequisites
Polarion 2506 or higher is required. Earlier versions lack REST API endpoints this server depends on.
This server is distributed as a Python package and requires uv to run.
Install uv (if not already installed):
Or via pip:
No other installation is needed — uvx mcp-server-polarion downloads and runs the server automatically.
Environment Variables
To generate a Personal Access Token, open Polarion, click your user name, and go to My Account → Personal Access Tokens.
Client Configuration
VS Code (GitHub Copilot)
Add to .vscode/mcp.json:
Claude Desktop
Add to claude_desktop_config.json:
Cursor
Add to Cursor MCP settings:
Claude Code
Register via the claude mcp add command:
Contributing
Bug reports and pull requests are welcome — see CONTRIBUTING.md for branch, commit, and review conventions.
License
来源:README.md,提交 09d056e
工具
0版本历史
1- v2.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分