Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HTTP_PORTNoREST HTTP server port (default 3000)
API_BASE_URLYesPolarion REST base URL, e.g., https://host/polarion/rest/v1
BEARER_TOKENYesPolarion Personal Access Token
HTTP_API_KEYNoProtects the ChatGPT REST wrapper; not the Polarion token
MCP_HTTP_PORTNoMCP HTTP port (falls back to HTTP_PORT, then 3000)
MCP_HTTP_TOKENNoBearer token required on /mcp for Streamable HTTP MCP (Claude.ai); server won't start without it
MCP_ALLOWED_HOSTSNoComma-separated Host allow-list; enables DNS-rebinding protection
NODE_TLS_REJECT_UNAUTHORIZEDNoSet 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 query parameter (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 with include, 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

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
searchA

Find Polarion operations by keyword and get their TypeScript declarations for use inside execute. Returns at most limit matches (default 8, maximum 25). Use offset for paging and detail with operation names for full descriptions.

executeA

Run JavaScript in an isolated sandbox. The only API is polarion.<operation>(args) (see search) and console.log. The code is the body of an async function: use await, return a JSON value. Limits: 30 s, 20 write calls. With dry_run: true every write is previewed, not performed.

Prompts

Interactive templates invoked by user choice

NameDescription
create-work-itemCreate a Work Item with the project's real types, fields and allowed values
search-work-itemsFind Work Items with a Lucene query, paging through the results
update-work-itemUpdate a Work Item, including status changes through its workflow
review_requirementsReview requirements for clarity, atomicity, and testability
trace_gap_analysisInspect trace links and identify unlinked or weakly linked requirements
release_readiness_summarySummarize open work and workflow readiness for a release
test_coverage_reportReport requirement coverage by linked test Work Items
triage_new_work_itemsTriage recent Work Items in a project

Resources

Contextual data attached and managed by the client

NameDescription
Polarion query syntaxLucene query syntax for the `query` parameter of the list tools
Writing Work ItemsJSON:API request bodies for creating and updating Work Items, links, comments and status changes
Paging, fields and includesHow to page through lists and keep responses small with sparse fields and includes

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessNo recent community issues