Polarion MCP Server — 2023 兼容版
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| POLARION_URL | Yes | Polarion server URL. May be https://host, https://host/polarion, or a full REST URL; it is normalized automatically. Required. | |
| POLARION_TOKEN | No | Personal Access Token (Bearer authentication). | |
| POLARION_TIMEOUT | No | Single request timeout in seconds. Default is 30. | 30 |
| POLARION_PASSWORD | No | Password for Basic Auth. | |
| POLARION_USERNAME | No | Username for Basic Auth. | |
| POLARION_AUTH_MODE | No | Authentication mode: auto, basic, or token. Defaults to auto. | auto |
| POLARION_LOG_LEVEL | No | Log level. Logs are written to stderr so they do not pollute stdio. Default is INFO. | INFO |
| POLARION_MAX_ITEMS | No | Maximum number of items scanned in a single tool call. Default is 1000. | 1000 |
| POLARION_PAGE_SIZE | No | Number of items per page. Default is 100. | 100 |
| POLARION_READ_ONLY | No | When set to 1, only read tools are exposed. Default is 0. | 0 |
| POLARION_API_FLAVOR | No | API flavor: auto, 2023, or 2025. Forced mode is useful for troubleshooting. Default is auto. | auto |
| POLARION_VERIFY_SSL | No | Whether to verify SSL certificates. Set to false for self-signed certificates. Default is true. | true |
| POLARION_MAX_PAGE_SIZE | No | Maximum page size. Default is 100 for Polarion 2023; may be overridden by /metadata on 2404+. | 100 |
| POLARION_DEFAULT_PROJECT | No | Default project ID to use when project_id is omitted. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server connects an AI assistant to a Siemens Polarion ALM instance, with explicit support for Polarion 2023 (2304 / 2310) servers as well as newer releases.
Key behaviour:
Start with polarion_server_info to see the detected release and which REST capabilities exist.
Polarion 2023 has NO /metadata endpoint and no custom-field-configuration, fields-metadata, license, jobs or collections endpoints. Tools do not call them in 2023 mode.
Work Item ids look like PROJECT-123. If POLARION_DEFAULT_PROJECT is unset, pass project_id.
Searches use Polarion's Lucene syntax, e.g. 'type:requirement AND status:open'.
Writes are real. Prefer dry_run=true first for create/update/delete calls.
The server enforces the permissions of the configured Polarion user. A 403 means that user cannot perform the operation, not that the tool is broken.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| polarion_server_infoA | Inspect the connected Polarion server: version, REST flavour, auth mode and which API capabilities are available. Call this first when a tool unexpectedly returns 404, because Polarion 2023 lacks several endpoints that exist in 2024+ releases. |
| polarion_list_projectsA | List accessible Polarion projects. Args: query: Optional case-insensitive substring matched against project id and name. limit: Maximum number of projects to return (default 50). page_size: Optional REST page size; capped by the server's maximum. |
| polarion_get_projectA | Get one project's details, including work item types when the server exposes them. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. |
| polarion_list_work_item_typesB | List the Work Item types configured for a project. Polarion 2023 has no fields-metadata endpoint, so this resolves types from the project's enumerations and falls back to sampling existing work items. |
| polarion_search_work_itemsA | Search Work Items in a project with a Polarion Lucene query. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. query: Lucene query, e.g. 'type:requirement AND status:open'. Empty returns all. limit: Maximum work items to return (default 25, max 500). page_size: REST page size (Polarion 2023 caps this at 100 by default). sort: Sort expression, e.g. 'updated' or '-created'. Prefix '-' for descending. fields: Optional sparse-field expression, e.g. '@basic' or 'title,status'. description_limit: Truncate each description to this many characters. include_custom_fields: Include configured custom fields found on the items. |
| polarion_get_work_itemA | Get one Work Item by id with its fields, custom fields and traceability links. Args: work_item_id: Work Item id, e.g. 'PROJ-123'. project_id: Project id. Inferred from the Work Item id when omitted. include_links: Fetch linked and backlinked work items with their link roles. description_limit: Truncate the description to this many characters. include_custom_fields: Include configured custom fields. |
| polarion_get_work_itemsA | Get several Work Items in one call. Args: work_item_ids: List of Work Item ids, e.g. ['PROJ-1', 'PROJ-2']. project_id: Project id. Inferred per item from the id prefix when omitted. description_limit: Truncate each description to this many characters. |
| polarion_create_work_itemA | Create a Work Item. Requires write access. Args: title: Work Item title. work_item_type: Type id, e.g. 'requirement', 'task', 'defect'. Use polarion_list_work_item_types to discover valid ids. project_id: Target project. Defaults to POLARION_DEFAULT_PROJECT. description: Description text or HTML. status: Initial status id, e.g. 'open'. Must be allowed by the workflow. custom_fields: Map of custom field id to value. assignees: Optional user ids to assign after creation. dry_run: Build and return the JSON:API request without sending it. |
| polarion_update_work_itemA | Update Work Item fields with PATCH. Only the supplied fields change. Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. title: New title. description: New description text or HTML. status: New status. Some workflows only allow status changes through polarion_perform_workflow_action; if PATCH is rejected, use that tool. custom_fields: Map of custom field id to new value. assignees: Replace the assignee list with these user ids. dry_run: Build and return the JSON:API request without sending it. |
| polarion_delete_work_itemA | Delete a Work Item permanently. Requires write access. Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. dry_run: Return the request that would be sent without deleting anything. |
| polarion_get_work_item_revisionsA | List the revision history of a Work Item (requires Polarion 2310 or newer). Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. limit: Maximum revisions to return. |
| polarion_get_linked_work_itemsA | Read traceability links of a Work Item, including roles such as 'verifies' or 'implements'. Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. direction: 'outgoing', 'incoming' or 'both' (default). |
| polarion_link_work_itemsA | Create a directed traceability link from one Work Item to another. Args: source_work_item_id: The Work Item that owns the outgoing link. target_work_item_id: The Work Item being linked to. role: Link role id, e.g. 'verifies', 'implements', 'relates_to'. Role ids are project-configurable; an invalid role returns HTTP 422 with the allowed values. project_id: Project id. Inferred from the source id when omitted. suspect: Mark the link as suspect. dry_run: Build the request without sending it. |
| polarion_unlink_work_itemsA | Remove a traceability link between two Work Items. Polarion's delete-link path differs between releases, so this tool discovers the existing link first and then tries the documented path variants in order. Args: work_item_id: The source Work Item id. target_work_item_id: The linked Work Item id to remove. project_id: Project id. Inferred from the source id when omitted. role: Optional role id to disambiguate when several links exist between the pair. dry_run: Return the candidate requests without deleting anything. |
| polarion_list_spacesB | List the LiveDoc spaces (folders) of a project. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. limit: Maximum spaces to return. |
| polarion_list_documentsA | List LiveDoc documents in a project or in one space. On Polarion 2023 there is no project-wide document search endpoint, so when space_id is omitted this walks all spaces and merges the results. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Optional space id to restrict the listing. limit: Maximum documents to return. include_content: Include the document home page HTML (can be large). |
| polarion_get_documentA | Read one LiveDoc document. When space_id is omitted, the document is located by walking the project's spaces. Args: document_id: Document name or id, e.g. 'System Requirements'. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Space id. Provide it to avoid the lookup walk. include_parts: Also return the document's parts (sections and embedded Work Items). content_limit: Truncate HTML content to this many characters. |
| polarion_get_document_partsA | Read the parts of a LiveDoc: headings and sections with their text and linked Work Item ids. Args: document_id: Document name or id. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. space_id: Space id. Required on releases without a project-wide document lookup. part_id: Return only this part instead of the full list. content_limit: Truncate each part's HTML content. include_work_item_content: For Work Item parts, also fetch the Work Item title and description (adds one REST call per distinct Work Item, capped at 50). |
| polarion_list_test_runsA | List Test Runs in a project. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. query: Optional Lucene query, e.g. 'status:inProgress' or 'title:"Release 2"'. limit: Maximum test runs to return. include_templates: Include Test Run templates (excluded by default). |
| polarion_get_test_runB | Get a Test Run with an optional pass/fail summary of its test records. Args: test_run_id: Test Run id. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. include_records: Include individual test records and a result summary. record_limit: Maximum test records to read. |
| polarion_create_test_runB | Create a Test Run. Requires write access. Args: title: Test Run title. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. template_id: Optional Test Run Template Work Item id. test_run_type: 'manual' (default) or 'automated'. planned_start: ISO-8601 date or datetime. planned_end: ISO-8601 date or datetime. dry_run: Build the request without sending it. |
| polarion_add_test_recordA | Record a test result for a Test Case in a Test Run. Requires write access. Args: test_run_id: Test Run id. test_case_id: Test Case Work Item id. result: Result id, typically 'passed', 'failed', 'blocked' or 'notApplicable'. Valid values are project-configurable; check the project's enumeration. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. comment: Optional execution comment. executed: ISO-8601 timestamp; defaults to server time when omitted. duration: Optional duration, e.g. 'PT5M30S' (ISO-8601) or '330'. dry_run: Build the request without sending it. |
| polarion_get_test_recordsB | List test records of a Test Run with a result summary. Args: test_run_id: Test Run id. project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. limit: Maximum records to return. |
| polarion_list_enumerationsA | List project enumerations (status, severity, priority, type, ...), or read one enumeration with its allowed values. Args: project_id: Project id. Defaults to POLARION_DEFAULT_PROJECT. enumeration_id: Optional enumeration id, e.g. 'status' or 'workItemType'. limit: Maximum enumerations to return. |
| polarion_list_usersA | List Polarion users, optionally filtered by name, id or email. Args: query: Case-insensitive substring filter. limit: Maximum users to return. project_id: Optional project id; used only if the global /users endpoint is unavailable on this release. |
| polarion_add_commentA | Add a comment to a Work Item. Requires write access. Args: work_item_id: Work Item id. text: Comment text or HTML. project_id: Project id. Inferred from the id when omitted. dry_run: Build the request without sending it. |
| polarion_get_commentsB | List comments on a Work Item. Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. limit: Maximum comments to return. |
| polarion_get_workflow_actionsA | List the workflow actions currently allowed for a Work Item (Polarion 2310+). Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. |
| polarion_perform_workflow_actionA | Execute a workflow action (approve, reopen, ...) on a Work Item. Args: work_item_id: Work Item id. action: Action id returned by polarion_get_workflow_actions. project_id: Project id. Inferred from the id when omitted. dry_run: Build the request without sending it. |
| polarion_list_attachmentsB | List attachments of a Work Item. Args: work_item_id: Work Item id. project_id: Project id. Inferred from the id when omitted. |
| polarion_download_attachmentA | Download a Work Item attachment to the local filesystem and return its path. Args: work_item_id: Work Item id. file_name: Attachment file name as listed by polarion_list_attachments. project_id: Project id. Inferred from the id when omitted. save_dir: Directory to write into. Defaults to ./polarion_attachments. |
| polarion_upload_attachmentA | Upload a local file as an attachment to a Work Item. Requires write access. Args: work_item_id: Work Item id. file_path: Absolute or relative path to an existing file (max 50 MB). project_id: Project id. Inferred from the id when omitted. dry_run: Validate the file and return the request without uploading. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| review_requirement | |
| traceability_gaps | |
| prepare_test_run |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 32 tools
Most tools have clearly distinct resource+action targets, and read/write/batch variants (get_work_item vs get_work_items) are reasonably separated. A few genuine overlaps remain: get_test_run(include_records) vs get_test_records, get_work_item(include_links) vs get_linked_work_items, and get_document(include_parts) vs get_document_parts are near-duplicates that could cause misselection.
Every tool follows the same polarion_verb_noun snake_case pattern (get_project, list_documents, create_work_item, add_comment, unlink_work_items). Verb conventions are used predictably—list/get/search for reads, create/update/delete/add/link for writes—with no style mixing.
32 tools is on the heavy side, though the surface spans several sub-domains (projects, work items, LiveDocs, test runs, attachments, links, comments, users, enumerations). Several conveniences (get_work_items, get_work_item_revisions, get_document_parts) could be folded into broader tools, so the set is borderline oversized.
Work Item coverage is essentially full CRUD plus links, comments, attachments, revisions and workflow actions, and test runs/documents have solid read paths. Gaps exist on the write side of secondary resources—no document/space creation or editing, no update/delete for test records or comments, and no delete for test runs.