Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
0.13.0 - 2026-11-30
Added
- (meta) report the largest inline upload in get_mcp_server_info
Fixed
- (http) let the request-body cap carry a 50 MiB inline upload
Other
- fix stale rustdoc, a broken config table, and Python leftovers
- (policy) [breaking] move pure policy vocabularies below config
- (tools) point oversize inline uploads at file_path
- (limits) move the upload size budget into a leaf module
0.12.2 - 2026-11-29
Other
- build the docs/ tree as an mdBook
- escape array<T> in generated tool reference
- move repo identity from mimi1vx to geckonia
0.12.1 - 2026-11-10
Other
- update Cargo.toml dependencies
0.12.0 - 2026-11-04
Added
- warn when the declared Redmine version is below a safe patch level
Fixed
- hint at the inactive-user cause of a Redmine 500
- (redmine-client) don’t retry a bearer-token 500
Other
- pin the 422 path for notes on closed issues
0.11.2 - 2026-10-27
Fixed
- (transport) raise the stdio line limit above the upload caps
0.11.1 - 2026-10-20
Other
- satisfy clippy 1.99 assert_is_empty lint
0.11.0 - 2026-09-30
Added
- surface journal edit metadata
- show allowed status transitions on get_redmine_issue
- expose issue-status descriptions
- (redmine-client) model fields Redmine 7.0 already sends
Fixed
- (custom-fields) decode project issue_custom_fields as {id, name}
- (redmine-client) [breaking] drop the issue-status is_default Redmine never sends
Other
- state supported Redmine versions and correct fixture provenance
0.10.3 - 2026-09-24
Fixed
- (schema) also collapse a scalar anyOf branch carrying enum
- (schema) process anyOf collapse post-order, not pre-order
0.10.2 - 2026-09-24
Fixed
- (schema) also collapse optional (nullable) scalar anyOf unions
0.10.1 - 2026-09-24
Fixed
- (schema) collapse untagged scalar anyOf unions in portable dialect
- migrate from deprecated rmcp::model::ServerInfo to ServerConfig
0.10.0 - 2026-09-04
Added
- clear issue fields by name so portable-schema clients can too
- [breaking] seal IssueUpdate and reject a stray Unchanged at serialization
- [breaking] clear issue fields that could previously only be set
Fixed
- close manage_subtasks bypass via clear_fields reparenting
0.9.3 - 2026-08-25
Other
- add project logo and GitHub social preview header
0.9.2 - 2026-08-24
Other
- fail the build when either README drifts from the code
- correct the Docker publish claim and expand both crate READMEs
0.9.1 - 2026-08-24
Fixed
- (deps) keep tower-http at 0.6 and rename rand 0.10 OsRng/TryRngCore
- (main) exit immediately on SIGTERM instead of falling through runtime drop
- (server) drop the unused async from list_tools
Other
- (redmine-client) make the chunked-abort limits test buffer-independent
[0.9.0] - 2026-08-24
Security
redmine-clientnow refuses to send credentials anywhere but the configured Redmine origin.download_attachment’scontent_url(an absolute URL Redmine itself returns) is checked against the client’s configured origin — scheme, host, and port must all match, and embedded userinfo is rejected outright — before the request is built, closing a credential-exfiltration path a compromised Redmine, plugin, or reverse proxy could otherwise use. Separately, the sharedreqwest::Clientnow carries a same-origin redirect policy: previously its defaultredirect::Policy::limited(10)would follow a cross-origin3xxresponse on any endpoint, and reqwest does not strip theX-Redmine-API-Keyheader (the default credential) on such a redirect — so a redirecting Redmine leaked the API key to whatever host it named. A Redmine that legitimately redirects to a different origin (e.g.httptohttps, or attachments served from a CDN) now fails with an in-bandUNEXPECTED_RESPONSEinstead of silently following the redirect; pointREDMINE_URLat the final origin directly.oauth-proxy’s refresh-token redemption is now single-use atomically: previously a refresh token was only looked up, not consumed, until the handler finished, so two requests presenting the same token concurrently could both refresh upstream and each mint an independent valid pair, defeating rotation and reuse detection (RFC 9700 §4.14.2). Redemption now transitions the token under one lock acquisition; a second concurrent redemption is treated the same as replaying an already-rotated token — the session is revoked upstream and both requests fail. A dropped, cancelled, or early-returning refresh leaves the token immediately reusable rather than stuck.UpstreamStore::replaceis now conditional too, so an in-flight refresh can no longer resurrect a session a concurrent/revokealready removed.- The default
legacyauth mode now refuses to start on a non-loopbackSERVER_HOSTunlessREDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=trueis set. A sharedREDMINE_API_KEYauthenticates this server to Redmine, not the caller to this server, so anyone who could reach a non-loopback bind acted as that Redmine account; this previously only logged aWARN, which the shippedDockerfile/docker-compose.ymlexample configuration (SERVER_HOST=0.0.0.0plus a published port) would have hit silently. TheWARNis unchanged and still fires once the variable is set.docker-compose.ymlnow also publishes127.0.0.1:8000:8000instead of8000:8000. Breaking: an existinglegacy+ non-loopback HTTP deployment will refuse to start until the variable is set, loopback is bound instead, or another auth mode is used — this speed bump is one env var away from being overridden, and does not by itself authenticate callers;legacy-per-user/oauth/oauth-proxystill exist for that. redmine-clientnow enforcesLimits::max_response_byteswhile streaming a response, instead of after buffering the whole body into memory. A response declaring an over-limitContent-Lengthis rejected before any body byte is read; a chunked response with no (or a lying)Content-Lengthis now read chunk-by-chunk and aborted mid-stream — dropping the connection — the moment the running total crosses the limit. Previously a malicious, compromised, or misconfigured upstream (or an intermediary error page returned in its place) could make the process allocate an unboundedBytesbuffer per in-flight request; this covers the status-error path, JSON decoding, and both OAuth token-exchange error paths.download_attachmentremains the sole, documented exemption: it streams to its caller, which owns its own byte cap.get_redmine_attachmentnow reserves its declaredfilesizeagainstATTACHMENT_STORE_MAX_BYTESatomically, before streaming a single byte, instead of only checking committed entries. Previously the check and the accounting were separated by the whole download: N concurrent downloads all observed the same (unchanged) committed total, all passed admission, and could together write up toN × ATTACHMENT_MAX_DOWNLOAD_BYTESto disk — enough concurrent requests could exhaust local storage regardless of the configured cap. The reservation grows mid-stream if the actual byte count exceeds the declared size (still bounded byATTACHMENT_MAX_DOWNLOAD_BYTES, so a stalefilesizedegrades to the previous behaviour rather than a hard failure) and is always released — on commit, abort, a mid-stream error, or a dropped/cancelled request — so a refused or failed download’s quota is immediately reusable.content_base64uploads (upload_file,manage_document’screateaction, and eachuploads[]item oncreate_redmine_issue/update_redmine_issue) are now capped at 50 MiB decoded, the same limitfile_pathalready enforced — previously only the HTTP transport’sREDMINE_MCP_MAX_REQUEST_BODY_BYTESbounded the encoded input, and stdio had no cap at all, so a locally connected client could make the process allocate an unbounded decode buffer. The check runs against the base64 crate’s own documented decode-length estimate before any decode allocation, then again on the exact decoded length, so peak allocation is bounded rather than proportional to the input.create_redmine_issue/update_redmine_issue’suploads[]also gained a 100 MiB aggregate budget across all items (either source): previously the existing 10-item cap alone still let one call buffer up to 10 × 50 MiB ≈ 500 MiB of decoded bytes before the first attachment was uploaded. Both checks run before anyPOST /uploads.jsonrequest, so a rejected batch never strands an orphaned upload token on the Redmine server. Breaking: a caller relying on acontent_base64upload over 50 MiB on stdio, or auploads[]batch over 100 MiB aggregate, is now refused with an in-bandFILE_TOO_LARGEinstead of succeeding.
Added
REDMINE_AUTH_MODE=oauth-proxy: this server discovers as its own OAuth authorization server and accepts RFC 7591 Dynamic Client Registration (POST /register), for MCP clients that expect to register themselves rather than being hand-added to Redmine’s admin panel. The RFC 8414 authorization-server document is always served at the root well-known path (issuer = REDMINE_MCP_BASE_URL), naming this server’s own/authorize//token//register//revoke,token_endpoint_auth_methods_supported: ["none"](every DCR client is public — no secret is ever issued or accepted), andauthorization_response_iss_parameter_supported: true.REDMINE_MCP_ALLOWED_CLIENT_REDIRECT_URISgates which redirect URIs a client may register (component-matched, never a raw-string glob — a pattern a glob would accept and this matcher rejects is a pattern nobody should have written), defaulting to loopback-only. The introspection credential, cache TTL, advertised scopes, and scope-enforcement flag are shared verbatim withoauthmode, sotools/listfiltering andINSUFFICIENT_SCOPEdenial apply identically once a caller holds a valid bearer token.oauth-proxymode’s authorization-code + PKCE flow:GET /authorizevalidates the client and redirect URI before anything else can redirect (an unregisteredclient_idor redirect URI is a plain400with noLocationheader — never an open redirect), then forwards the request to Redmine’s own/oauth/authorizebehind a second, independently generated PKCE pair this server holds on the client’s behalf.GET /auth/callbackexchanges the resulting Redmine code for an upstream access (and, when Doorkeeper issues one, refresh) token, and mints a short-lived authorization code of its own.POST /tokenredeems that code for an opaquerup_at_-prefixed proxy access token: a 256-bit CSPRNG handle, never a signed JWT and never the upstream Redmine token itself. Presenting the upstream token directly to/mcpis still401; presenting a valid proxy token resolves it to the stored upstream token and verifies that via the same introspection pathoauthmode uses, so scope enforcement andINSUFFICIENT_SCOPEdenial are unchanged. A replayed authorization code isinvalid_grantand revokes the session it minted.oauth-proxymode’srefresh_tokengrant and mode-specificPOST /revoke: arup_rt_-prefixed proxy refresh token is minted alongside the access token whenever the upstream OAuth application issues one, and redeeming it at/tokenrotates both — a new pair is issued and the presented refresh token stops working. Replaying an already-rotated refresh token is treated as theft: the whole session is killed and revoked upstream immediately, not just the reused token. Upstream applications withoutuse_refresh_tokenenabled still work access-only, with one process-wideWARNnaming the missing setting.POST /revokenow has proxy-mode semantics: it accepts arup_at_/rup_rt_token, deletes the pair and the upstream token set locally first (so revocation holds even if Redmine is unreachable), then revokes the upstream token, and always answers200per RFC 7009 —oauthmode’s/revokeis unchanged.get_mcp_server_inforeportsregistered_clientsandactive_sessionscounts in this mode (nullelsewhere) — no client identifiers, ever.- Three tools for the RedmineUP Checklists Pro plugin, registered only when
REDMINE_CHECKLISTS_ENABLED=true:get_checklist,create_checklist_item,update_checklist_item. With the flag off (the default) they are fully absent fromtools/listandtools/callfails with “tool not found” rather than an in-band error — the first user of a new plugin-gating mechanism (server.rs’sPLUGIN_TOOLSroute-removal table) that later plugin families reuse. The plugin’s wire shapes are synthetic, derived from the reference implementation’s handling of the plugin rather than a live capture (Checklists Pro is commercial) — seecrates/redmine-client/tests/fixtures/README.md. REDMINE_AGILE_ENABLED=truemakesget_redmine_issuereportstory_points/agile_sprint_id/agile_positionfrom the RedmineUP Agile plugin, and letsupdate_redmine_issuechange them — the three fields ride on both existing tools rather than adding a new one. Writes are a read-modify-write againstGET /issues/{id}/agile_data.jsonbecause the plugin’s nestedagile_data_attributesreplaces the whole row rather than merging it: an update naming only one field would otherwise null the others.story_points: nullclears it;agile_sprint_id: 0removes the issue from its sprint (the plugin’s own sentinel). With the flag off (the default), the three fields never appear and any of the three parameters onupdate_redmine_issuefails in-band withMISCONFIGUREDbefore any write happens. The wire shapes are synthetic, derived from the reference implementation’s handling of the plugin rather than a live capture (RedmineUP Agile is commercial) — seecrates/redmine-client/tests/fixtures/README.md.REDMINE_TAGS_ENABLED=truemakesget_redmine_issuereport an issue’stags(AlphaNodesadditional_tagsplugin, each{id, name}withidfrequentlynull) and letscreate_redmine_issue/update_redmine_issuereplace the full tag set viatag_list— no new tool, like Agile. Atag_listwrite always replaces the whole set ([]clears it); a tag name containing a comma is rejected rather than silently split, naming the array form. With the flag off,tagsnever appears andtag_listfails in-band withMISCONFIGUREDbefore any write happens. Settingtag_listrequirescreate_issue_tagsoredit_issue_tagsinoauthmode, on top of the tool’s usualadd_issues/edit_issuesrequirement. The wire shape is synthetic, derived from the reference implementation’s handling of the plugin rather than a live capture — seecrates/redmine-client/tests/fixtures/README.md.manage_product, registered only whenREDMINE_PRODUCTS_ENABLED=true(RedmineUP Products plugin):list/get/create/update— the plugin exposes no delete endpoint.list/getwork in read-only mode;create/updateare blocked. Flat typed parameters replace the reference’s untypedfieldsdict forupdate; an unknown parameter is rejected rather than silently dropped, and an addedoffsetparameter reaches results past the reference’s 100-item ceiling.manage_contact, registered only whenREDMINE_CRM_ENABLED=true(RedmineUP CRM plugin):list/get/create/update/delete/assign_to_project/remove_from_project.list/getwork in read-only mode; every other action is blocked. Same flat-typed-parameters andoffsetdivergence asmanage_product. Contact PII (email,phone,address,birthday,website) is returned to the caller unwrapped but never appears in a log line or an error message (errors referencecontact_idonly); display fields (name parts,company,job_title,background,assigned_to‘s name) are boundary-wrapped. Both tools’ wire shapes are synthetic, derived from the reference implementation’s handling of the plugins rather than a live capture (both plugins are commercial) — seecrates/redmine-client/tests/fixtures/README.md.manage_document, registered only whenREDMINE_DMSF_ENABLED=true(theredmine_dmsfplugin — open source, GPL v2, but still needs a server-side install this project has not verified against):list/get/create/update— there is nodeleteaction.list/getwork in read-only mode;create/updateare blocked.createacceptscontent_base64orfile_path(reusing the existing upload-path resolver and size cap, not a second implementation) and validates an optionalversionstring before ever uploading, so a malformed one sends zero requests; its response is deliberately sparse ({document_id}only), and thenotefield points ataction="get"for full metadata.updatealways creates a new revision — it never replaces one — and always pre-fetches the document first so a missingtitle/name(which 500s the plugin’s own endpoint) is never sent; a document with no revisions at all isNOT_FOUNDwith no write attempted. The update route is/dmsf/files/{id}/revision/create.json(a slash, notdmsf_files/{id}), and both write actions spell the stored filenamename(notfilename) and custom fieldscustom_field_values(notcustom_fields), matching the plugin’s own field names exactly. Same flat-typed-parameters divergence from the reference’s untypedfieldsdict asmanage_product/manage_contact. The wire shapes are synthetic, derived from the reference implementation’s handling of the plugin rather than a live capture — seecrates/redmine-client/tests/fixtures/README.md.create_redmine_issue/update_redmine_issuegain acustom_fieldsparameter — core Redmine, not plugin-gated, paying off a previously deferred decision (G8). Each entry gives exactly one ofid(free) orname(matched case- and punctuation-insensitively via a project lookup, e.g."Story Points"≡"story_points"; costs one extra request on create, two on update since that tool’s parameters carry onlyissue_id), plus avaluethat is a string, an array of strings for a multi-value field, ornullto clear it. An entry with neither/both ofid/name, an unknown or ambiguous name, or a duplicate field id is rejected before any request reaches Redmine. Diverges from the reference’s untypedfields/extra_fieldsdict (P4): an unresolvable key is a clear error, not silently dropped or passed through. Acustom_fields-only update is accepted, not rejected as a no-op; an empty array is not.REDMINE_AUTOFILL_REQUIRED_CUSTOM_FIELDS=truerecovers from a 422 naming a required issue custom field as blank or invalid:create_redmine_issue/update_redmine_issueretry the write exactly once, filled from the field’s owndefault_valueor from the newREDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTSmap, and report what was filled asautofilled_custom_fields. A caller-supplied value Redmine rejected as empty or outside the field’s allowed values is replaced the same way; a valid value is never touched. Never a guess from the field’s other allowed values, never a second retry. With the flag off (the default, unchanged from G8’s payoff above) or when nothing is fillable, the 422 still gainsmissing_required_fieldsand a hint.REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTSfails the boot on invalid JSON, a non-object, or a non-string/array value; neither its keys nor its values ever reach a log line,--print-config, orget_mcp_server_info— only their count. Matching Redmine’s validation message text is English-only.REDMINE_AUTH_MODE=oauthnow works end to end for bearer-token authentication: an axum middleware guards the whole/mcproute (includinginitialize), extracting the inboundAuthorization: Bearertoken and validating it by RFC 7662 introspection against Redmine’s Doorkeeper, cached by a SHA-256 digest of the token (never the token itself) with a TTL capped by the token’s ownexp. A missing/malformed/invalid token gets a401carryingWWW-Authenticate: Bearer resource_metadata="..."; a broken or misconfigured introspection endpoint gets a503withRetry-After, never a401. The validated token is forwarded to Redmine verbatim. Requires the newREDMINE_INTROSPECT_CLIENT_ID/REDMINE_INTROSPECT_CLIENT_SECRET(_FILE) variables;oauthon the stdio transport is now a startup error, matchinglegacy-per-user. Seedocs/oauth-setup.md.oauthmode now serves RFC 9728 protected-resource metadata at/.well-known/oauth-protected-resource{mcp_path}and RFC 8414 authorization-server metadata (pointing at Redmine’s real/oauth/authorize//oauth/token//oauth/revoke) at themcp_path-suffixed well-known path by default, or at the root well-known path withREDMINE_OAUTH_DISCOVERY_AS=self(for clients that probe the canonical root location) — the two modes never both serve a document, so one always 404s. Both documents’scopes_supportedcome from a new scope catalogue of Redmine Doorkeeper scope names, gated byREDMINE_MCP_READ_ONLYand the agile/tags plugin flags, and narrowable by the newREDMINE_MCP_SCOPES(an out-of-set entry refuses to boot, naming the accepted set).adminis never advertised. A newPOST /revokenarrowly proxies RFC 7009 token revocation to Redmine, forwarding onlytoken/token_type_hintplus the caller’s own client authentication, and purges the revoked token from this server’s introspection cache so it stops working on the very next request rather than after the cache TTL./readyzinoauthmode now probes introspection with a synthetic token (bypassing the token cache) instead of reportingnot_probed, gaining achecks.introspectionfield (ok/misconfigured/unreachable). All of the above are unauthenticated and unaffected by the bearer-auth middleware.oauthmode now enforces per-tool scopes:tools/listshows only the tools a bearer token’s scopes permit (withcache_scope: "private"once filtering is active, since the list is per-token), andtools/callon a hidden tool is refused in-band withINSUFFICIENT_SCOPE, naming the missing scope(s), before any Redmine request is made. The map (auth::scope::TOOL_SCOPES) is verified against this server’s ownredmine-clientcall sites, not transcribed from the reference; a token carryingadminbypasses it entirely, and an unmapped tool is denied by default.update_redmine_issuecarries a notes-only carve-out (add_issue_notesinstead ofedit_issueswhen onlynotes/private_noteschange) and requiresmanage_subtasksin addition when reparenting. The newREDMINE_OAUTH_SCOPE_ENFORCEMENT=offrestores the prior unfiltered behaviour for tokens minted before scopes existed, logging a startupWARN.REDMINE_AUTH_MODE=legacy-per-useris now implemented: each HTTP request carries its own Redmine credential inX-Redmine-API-Keyinstead of the server holding one shared key. No ambient fallback and no cross-request reuse — a missing, empty, malformed, oversized, or duplicated header is rejected before any Redmine request is attempted, whileinitialize/tools/liststill succeed with no header.REDMINE_PER_USER_AUDIT_IDENTITYlogs a non-reversible per-process fingerprint of the caller’s key, never the key itself. Seedocs/legacy-per-user-auth.mdfor the threat model.create_redmine_issue/update_redmine_issueaccept an optionaluploadsarray (max 10 items) to attach files in the same request, via the samecontent_base64/file_pathsources asupload_file(source_urlalways refused withUNSUPPORTED_SOURCE). Files are attached through Redmine’s issue-nativeuploads: [{token, ...}]shape, not the Files-module two-step flow; the response’sissue.attachmentsreflects the newly attached files.REDMINE_PUBLIC_URLnow rewrites everycontent_urlthis server emits (get_redmine_issue’s/create_redmine_issue’s/update_redmine_issue’sattachments[*],list_files/upload_file, wiki page attachments) whose origin matchesREDMINE_URL’s, preserving path, query, fragment, and any reverse-proxy sub-path baked intoREDMINE_PUBLIC_URLitself.upload_file: uploads a file and attaches it to a project’s Files module (POST /uploads.jsonthenPOST /projects/{id}/files.json). Acceptscontent_base64(requiresfilename) orfile_path(an absolute path insideATTACHMENTS_DIRor aREDMINE_MCP_UPLOAD_FILE_ROOTSentry, capped at 50 MiB and validated against symlink/FIFO/device traversal before it is ever opened);source_urlis recognised but always refused withUNSUPPORTED_SOURCE. Write tool, blocked in read-only mode.cleanup_attachment_files: runs the local attachment store’s expiry sweep on demand and reports{cleaned_files, cleaned_bytes, cleaned_mb}. Mutates only local disk, never Redmine, so it still works in read-only mode; registered only whenREDMINE_MCP_EXPOSE_ADMIN_TOOLS=true.REDMINE_MCP_UPLOAD_FILE_ROOTSandREDMINE_MCP_EXPOSE_ADMIN_TOOLSare now read byupload_file/cleanup_attachment_filesrespectively (previously validated but unread).list_files: lists a project’s Files-module entries (GET /projects/{id}/files.json) — not issue attachments, not DMSF.delete_file: deletes an attachment by id (DELETE /attachments/{id}.json). Redmine’s endpoint deletes any attachment this credential can reach, not just project Files, so the tool always requiresconfirm_delete_any_attachment=true; write tool, blocked in read-only mode.get_redmine_attachment: downloads a Redmine attachment by id and stages it in the local attachment store, returning a/files/{uuid}URL over HTTP or an absolutefile_pathover stdio (uri_typetells you which). The per-file byte cap (ATTACHMENT_MAX_DOWNLOAD_BYTES) is enforced against bytes actually streamed, never aContent-Lengthheader or Redmine’s ownfilesizemetadata; a full store first sweeps expired entries, then refuses withSTORE_FULLrather than filling the disk.- A local attachment store (now used by
get_redmine_attachment):AttachmentStorestages downloaded Redmine attachments underATTACHMENTS_DIRin per-UUID directories with a sanitised basename, enforces a per-file (ATTACHMENT_MAX_DOWNLOAD_BYTES) and whole-store (ATTACHMENT_STORE_MAX_BYTES) byte cap, and expires entries afterATTACHMENT_EXPIRES_MINUTESboth lazily (on lookup) and via a background sweeper (AUTO_CLEANUP_ENABLED,CLEANUP_INTERVAL_MINUTES) that also reclaims a predecessor process’s orphaned files after a restart. GET /files/{uuid}(HTTP transport only): serves a stored file withContent-Disposition: attachment,X-Content-Type-Options: nosniff,Cache-Control: no-store, and the sameHostallowlist check as/mcp.PUBLIC_SCHEMEand a derivedpublic_baseorigin, for building/files/{uuid}URLs correctly behind a TLS-terminating proxy.REDMINE_MCP_UPLOAD_FILE_ROOTS,REDMINE_MCP_EXPOSE_ADMIN_TOOLS, andREDMINE_PUBLIC_URLare now validated (previously listed as “not yet implemented”);REDMINE_PUBLIC_URL’scontent_url-rewriting behaviour is not applied yet.- Opt-in
REDMINE_MCP_SCHEMA_DIALECT=portablefor clients whose provider rejects$ref/$defsand nullable type arrays in function-calling declarations (Google Vertex/Gemini). Defaultstrictis unchanged. - Streamable HTTP transport (
--transport http), serving the same MCP server as stdio atFASTMCP_STREAMABLE_HTTP_PATH(default/mcp). Stateless mode:GET/DELETEon the MCP route return405, and no session id is issued. HostandOriginallowlisting, a streamed request-body cap, exact-match CORS,X-Content-Type-Options: nosniff, and graceful drain onSIGTERM./livez,/readyz, and a/healthalias, with a TTL-cached Redmine probe that collapses concurrent requests into one upstream call.- HTTP configuration:
SERVER_HOST,SERVER_PORT,PUBLIC_HOST,PUBLIC_PORT,FASTMCP_STREAMABLE_HTTP_PATH,REDMINE_MCP_ALLOWED_HOSTS,REDMINE_MCP_ALLOWED_ORIGINS,REDMINE_MCP_MAX_REQUEST_BODY_BYTES,HEALTH_INTROSPECTION_TTL_SECONDS. get_mcp_server_inforeports the activetransport.- Cargo workspace scaffold with
redmine-clientandruprogress-mcpcrates. - Workspace-wide lints,
rustfmt.toml,deny.toml, and CI gates. - Every tool returns structured content (
structuredContent) validating against a declared JSON output schema, plusreadOnlyHint/idempotentHint/openWorldHintannotations. - Redmine API failures are reported in-band as
{error, code, retryable, hint}results (isError: true) instead of protocol-level errors, so a model can see and react to them. REDMINE_MCP_MAX_RESPONSE_ITEMS(default 200) andREDMINE_MCP_MAX_RESPONSE_BYTES(default 256 KiB) cap list-tool response size, surfaced aspagination.truncatedplus a hint rather than a silent cut.redmine-client:Scoped::get_collection/Scoped::fetch_pagerequest primitives for Redmine’s un-paginated and single-page-only endpoints.- Six discovery/enumeration tools:
list_redmine_trackers,list_project_trackers,list_redmine_issue_statuses,list_redmine_issue_priorities,list_redmine_users,list_redmine_queries, alongside the existingget_current_user. Each resolves a name to an id before a create/update tool needs it.list_redmine_usersrequires an admin credential and clampslimitto 1-100; a non-admin call returns aFORBIDDENerror namingget_current_useras the next step instead of retrying. redmine-client:TrackerandIssueStatusmodels, anadminfield onUser, atrackersfield onProject(populated only wheninclude=trackerswas requested), andScoped::list_trackers/list_issue_statuses/list_issue_priorities/list_users/list_saved_queries.- A payload-safety logging floor: whatever
--log-level/RUST_LOGrequests is combined with a fixed cap onrmcp,hyper,hyper_util,h2,reqwest,rustls, andwiremockatinfo(andtower_http::traceatdebug, metadata only) — the dependencies whose ownDEBUG/TRACEoutput would otherwise include a tool call’s arguments or a whole JSON-RPC envelope, nothing this server’s own code can redact after the fact. This server’s own code is never floored; naming a floored target explicitly (RUST_LOG=trace,rmcp=trace) still lifts it, logging a startupWARNnaming the override. - Rate limiting on the HTTP transport, on by default
(
REDMINE_MCP_RATE_LIMIT_ENABLED): a standard token-bucket class on/mcp//files/{uuid}(REDMINE_MCP_RATE_LIMIT_RPS/_BURST, default 10 rps / burst 40) and a stricter strict class on theoauth-proxyflow routes (REDMINE_MCP_RATE_LIMIT_AUTH_RPS/_BURST, default 1 rps / burst 10, since those routes are attacker-attractive). Both key by peer IP — neverX-Forwarded-For/X-Real-IP, which a client could set itself to bypass the limiter — except the standard class, which keys/mcpby a bearer token’s digest instead of IP when one is present, so distinct users behind one NAT or proxy don’t share a bucket.REDMINE_MCP_RATE_LIMIT_MAX_KEYSbounds each class’s bucket map, evicting the least-recently-touched key at capacity. A rejected request gets429 {"error": "rate_limited"}withRetry-AfterandCache-Control: no-store;/livez,/readyz, and/healthare never rate limited. - One
tool_callspan pertools/call, on both transports, closed by a single event carrying the tool name, a process-localrequest_id(not a client-supplied or W3C trace id — nothing propagates it over the wire),outcome(ok/error/denied/panic) pluscodewhen notok, andduration_ms— never an argument value or key.REDMINE_MCP_LOG_FORMAT(text, default, orjson, one object per line) changes only how a line is written, never what is in it. - A distroless, non-root (
Dockerfile), locally-built container image (docker build --platform linux/arm64 …; no registry push, no multi-arch matrix), plus adocker-compose.ymlfor a locked-down run with a read-only root filesystem and a named volume for the attachments directory. A new--healthcheckCLI flag GETs/livezand exits0/1(distroless has no shell orcurlfor aHEALTHCHECKto invoke another way); the image’s ownHEALTHCHECKruns it, deliberately never probing/readyz, so a Redmine outage cannot turn into a container restart loop.
Fixed
- Tool schemas no longer advertise the non-standard
uint32/uint64integerformatvaluesschemarsemits foru32/u64fields, which made strict JSON Schema clients (e.g. opencode’s Ajv-based validator) log an “unknown format” warning per field on everytools/list. - A panicking tool handler used to hang the caller’s request forever (the
panic was caught by the tokio runtime, but nothing ever answered the
client).
call_toolnow catches the panic and returns an in-band{error, code: "INTERNAL", retryable: false, hint}result instead; the session and every other in-flight request are unaffected.
Changed
- The default HTTP bind is
127.0.0.1:8000, not0.0.0.0:8000. list_redmine_projectsnow returns{"projects": [...], "pagination": {...}}instead of a bare JSON array, sostructuredContentis a JSON object per the MCP spec.- The prompt-injection delimiter scheme is now explained once per session in
the MCP
initializeinstructions, instead of a repeated text block on every tool response. /healthreports readiness only; it no longer carries version, auth mode, read-only state, or plugin flags. Those remain onget_mcp_server_infoand--print-config.- A non-loopback
SERVER_HOSTwith neitherPUBLIC_HOSTnorREDMINE_MCP_ALLOWED_HOSTSnow fails at startup rather than serving withHostvalidation silently disabled. Porting an upstream.envthat sets onlySERVER_HOST=0.0.0.0needs one added variable; the error message names both options and the*opt-out. - The release build now sets
lto = "thin",codegen-units = 1, andstrip = "debuginfo"explicitly, shrinking the binary by roughly a quarter;panic = "unwind"is pinned (it was already the default) since the panic containment above depends on it.
Security
- Bumped
h2to 0.4.16, fixing an advisory where emptyDATAframes were accepted and queued without limit (unbounded memory, or a panic on length overflow) — pulled in transitively throughaxum,reqwest,rmcp, andwiremockalike.