Repository navigation
Tags of tasks and requirement assignments, stricter handling of what calmcp cannot honour
(configuration values, rest_filters keys), and hardening of the HTTP transport and the rich-text
check after a security review.
Added
calm_updatetakes a second resource,task_tags: add tags to and remove tags from a task of
any type (project task, user story, defect, requirement, sub-task, risk), with
changes: { add: [...], remove: [...] }. The task's other tags stay; a tag that does not exist
yet is created. NeedsCALM_UPDATE_ENABLED=trueand thecalm-api.tasks.writescope. See the
README, "Tags of a task".calm_createtakestask_requirement_link: assign an existing project task or user story to
a requirement of the same project. calmcp reads both first and refuses anything else, a second
requirement for a task, and a repeat. The README, "Write access", also says how to create a task
already assigned (the requirement asparentId).- Creating a task with a requirement as
parentIdanswers withrequirement: { linked: true }.
Cloud ALM stores that link as a relation and leavesparentIdnull, so 1.0.0 reported
parentIdunderstoredDiffersFromSentalthough the link existed. calmcp now reads the new
task's relations and says what they show: linked, not linked (with the call that links it), or
unknown. A sub-task, whose parent Cloud ALM keeps inparentId, is reported as before. calm_resourcessays how to read the tasks of a requirement and the requirement of a task
(task_relations, types0and10), with two new recipes.expected_modified_atofcalm_updateis optional in the tool schema.featurestill requires
it and refuses a call without it;task_tagsrefuses a call with it.
Behaviour changes
calm_listrefuses arest_filterskey that the endpoint does not take, naming the accepted
keys and the right spelling of one that differs only in case. Cloud ALM ignores an unknown key
and answers with the unfiltered list (objecttype=BusinessServiceonlandscape_objects
returned every object), so a misspelled filter looked applied.calm_resourceslists the
accepted keys of each resource asrestFilters.- Configuration is checked at startup. A malformed or out-of-range number (
CALM_TIMEOUT_SECONDS=0,
CALM_MAX_RESPONSE_BYTES=100kb,PORT=99999), a switch that is neither true nor false
(CALM_WRITE_ENABLED=ture) and an unknownCALM_TRANSPORTnow stop calmcp with a message naming
the variable. Before, a number fell back to its default, a switch read as false and an unknown
transport started stdio.CALM_TRANSPORTandCALM_HTTP_ALLOW_UNAUTHENTICATEDnow accept the same
spellings as the other switches (HTTP,1,yes). A deployment with such a value stops
starting after the upgrade; that is intended. - With XSUAA bound and no
CALM_DCR_SIGNING_SECRET, calmcp logs a warning that client
registrations are lost when the XSUAA client secret rotates.
Security
- Rich text is checked in linear time. One
calm_createorcalm_updatecall with a<or=
followed by a long run of spaces took minutes and stalled the server for every caller. The
summary of an upstream error body is bounded the same way. - HTTP transport: the rate limit and the bearer check now come before a request body is parsed, a
request whose body fails to parse counts towards the rate limit, and a compressed request body
is refused with 415 instead of being inflated. A caller without a valid token gets 401 where a
malformed body used to give 400.
Fixes
- Tenants in
eu10-004can sign in with tenant and region. calmcp requested the token from
authentication.eu10-004.hana.ondemand.com, which does not exist; it now uses the region without
its data-centre suffix (authentication.eu10).CALM_AUTH_REGIONoverrides the token host region. - BTP destination: after Cloud ALM refused a token (401), for example after the client secret was
rotated, calmcp kept getting the refused token from the Cloud SDK's destination cache, which does
not store an uncached lookup. Every later request was refused once before its retry, and of
several requests refused at the same time only one was sure to retry with a fresh token. calmcp
now remembers the refused token, fetches the destination afresh once for all waiting requests,
and uses the fresh token until it expires. - A browser-based MCP client (listed in
CALM_CORS_ORIGINS) can call the server after
initialize: CORS now allows themcp-protocol-versionheader.
Install in Claude Desktop with calmcp-1.1.0.mcpb below. The full history is in CHANGELOG.md.