Polarion MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HTTP_PORT | No | REST HTTP server port (default 3000) | |
| API_BASE_URL | Yes | Polarion REST base URL, e.g., https://host/polarion/rest/v1 | |
| BEARER_TOKEN | Yes | Polarion Personal Access Token | |
| HTTP_API_KEY | No | Protects the ChatGPT REST wrapper; not the Polarion token | |
| MCP_HTTP_PORT | No | MCP HTTP port (falls back to HTTP_PORT, then 3000) | |
| MCP_HTTP_TOKEN | No | Bearer token required on /mcp for Streamable HTTP MCP (Claude.ai); server won't start without it | |
| MCP_ALLOWED_HOSTS | No | Comma-separated Host allow-list; enables DNS-rebinding protection | |
| NODE_TLS_REJECT_UNAUTHORIZED | No | Set to 0 only for trusted internal self-signed servers |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Code Mode: this server exposes two tools. search finds Polarion operations and returns TypeScript declarations; execute runs JavaScript that calls them. Inside execute, call await polarion.<operation>({...}) (the declarations from search), use plain JavaScript to loop, filter and join, return a small JSON value, and use console.log sparingly. Search first (pass detail with operation names when a summary is not enough), then write one script that does the whole task. Writes honour dry_run, read-only mode, validation and read-back verification exactly as direct tool calls do; run with dry_run: true first.
Polarion ALM over its REST API. Every call runs as the signed-in Polarion user with that user's permissions.
Identity: call getCurrentUser for the signed-in user. A 403 there means this token cannot read that endpoint, not that login failed. A 404 means this Polarion release (2506) has no /user endpoint; the login still worked, use the other tools.
Known project: call getProject with its projectId. Work Item, Document and Test Run tools are project-scoped.
Unknown project ID: ask the user for it. getProjects lists projects only for users with global read access.
getAllWorkItems searches Work Items across projects.
Search with the
queryparameter (Lucene syntax, e.g.type:requirement AND status:open). See polarion://guide/query-syntax.Lists are paged: page_size_ (usually at most 100) and page_number_ (1-based). Follow links.next until it is absent; meta.totalCount gives the total when there is more than one page.
Ask for fewer fields with
fields, e.g. {"workitems": "id,title,status"}, and expand relations withinclude, e.g. "author,assignee".IDs in request bodies are composite: "PROJECT/WI-123" for Work Items. Path parameters take the plain parts.
Writes take a JSON:API body ({"data": ...}); see polarion://guide/writing. Every write tool accepts dry_run: true to validate and preview without writing.
Status changes go through workflowAction on patchWorkItem; list the allowed ones with getWorkflowActionsForWorkItem.
Rich text fields (description) are {"type": "text/html", "value": "..."}; responses add a value_markdown copy for reading.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | Find Polarion operations by keyword and get their TypeScript declarations for use inside |
| executeA | Run JavaScript in an isolated sandbox. The only API is |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| create-work-item | Create a Work Item with the project's real types, fields and allowed values |
| search-work-items | Find Work Items with a Lucene query, paging through the results |
| update-work-item | Update a Work Item, including status changes through its workflow |
| review_requirements | Review requirements for clarity, atomicity, and testability |
| trace_gap_analysis | Inspect trace links and identify unlinked or weakly linked requirements |
| release_readiness_summary | Summarize open work and workflow readiness for a release |
| test_coverage_report | Report requirement coverage by linked test Work Items |
| triage_new_work_items | Triage recent Work Items in a project |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Polarion query syntax | Lucene query syntax for the `query` parameter of the list tools |
| Writing Work Items | JSON:API request bodies for creating and updating Work Items, links, comments and status changes |
| Paging, fields and includes | How to page through lists and keep responses small with sparse fields and includes |
TDQS
Scored across 2 tools
Search is strictly for discovering Polarion operations and their TypeScript signatures, while execute runs JavaScript against those operations. The descriptions make the two-step workflow explicit, so an agent cannot reasonably confuse them.
Both names are single action verbs and follow the same terse convention. They lack the verb_noun form used in many MCP servers, but the naming is internally consistent and readable.
Two tools is minimal, but this is a deliberate code-execution gateway: search discovers the API and execute invokes it. The small surface is well-scoped rather than arbitrarily thin, though it sits at the lower edge of typical tool counts.
The search plus generic execute pattern gives access to the full Polarion operation surface, including paging, detail lookup, dry-run, and write limits. Minor gaps remain, such as no direct operation-enumeration tool or static schema endpoint beyond keyword search.