Introduction
A Redmine MCP server in Rust. It exposes Redmine’s REST API to MCP clients as 41 tools over stdio and streamable HTTP (47 with every plugin flag on), with four authentication modes, a read-only mode, bounded responses, and a local attachment store.
Quick start
cp .env.example .env # set REDMINE_URL and REDMINE_API_KEY
cargo run -- --print-config # resolve and check the config, then exit
cargo run # stdio (the default)
cargo run -- --transport http # http on 127.0.0.1:8000
Or install the published crate, or run the container image:
cargo install ruprogress-mcp
docker run --rm -p 8000:8000 \
-e REDMINE_URL=https://redmine.example.com -e REDMINE_API_KEY=... \
ghcr.io/geckonia/ruprogress-mcp:latest --transport http
Point MCP Inspector at it:
npx @modelcontextprotocol/inspector --cli http://127.0.0.1:8000/mcp \
--transport http --method tools/list
CLI
| Flag | Default | Effect |
|---|---|---|
--transport <stdio|http> | stdio | Which transport to serve. |
--env-file <PATH> | .env if present | Env file to load; the real process environment still wins. |
--log-level <FILTER> | RUST_LOG, else info | Tracing filter. |
--print-config | — | Print the resolved, redacted config as JSON and exit 0. |
--healthcheck | — | GET /livez on the local SERVER_PORT and exit 0/1; the container HEALTHCHECK. |
The chapters in the sidebar cover configuration, authentication setup, the tool reference, and troubleshooting.
Configuration
Only the variables ruprogress-mcp currently reads are validated; the rest
are recorded here for later and are currently ignored.
Config is loaded via Config::from_map, a pure function over an injected
BTreeMap<String, String> — never the ambient environment directly (see ADR
0002). main.rs builds that map from, in increasing precedence: an optional
--env-file (or .env if present and --env-file is not given), then the
real process environment.
Currently implemented
| Variable | Required | Default | Notes |
|---|---|---|---|
REDMINE_URL | yes | — | Must be http/https and must not contain userinfo (https://user:pass@host is rejected — credentials belong in REDMINE_API_KEY, not the URL). |
REDMINE_AUTH_MODE | no | legacy | One of legacy, legacy-per-user, oauth, oauth-proxy. Any other value is Invalid. |
REDMINE_API_KEY | yes, in legacy mode | — | The API key sent as X-Redmine-API-Key. Mutually exclusive with REDMINE_API_KEY_FILE. |
REDMINE_API_KEY_FILE | yes, in legacy mode (alternative) | — | Path to a file containing the key (Docker/K8s secret mount). Exactly one trailing newline is trimmed. Setting both this and REDMINE_API_KEY is a Conflict. |
REDMINE_PER_USER_TRUST_PROXY | yes, in legacy-per-user mode | — | Must be exactly true. Absent/false refuses to start (Missing) — this is the operator’s explicit attestation that a TLS-terminating proxy sits in front and does not forward client X-Forwarded-Proto. legacy-per-user is additionally rejected outright on the stdio transport (Conflict): there is no per-request header to carry a credential over stdio. Startup logs a WARN naming this assumption every time the mode is enabled. See docs/legacy-per-user-auth.md. |
REDMINE_PER_USER_AUDIT_IDENTITY | no | false | In legacy-per-user mode, logs one line per tool call naming a per-process, non-reversible fingerprint of the inbound X-Redmine-API-Key (never the key or a resolved Redmine identity) — see docs/legacy-per-user-auth.md. |
REDMINE_MCP_BASE_URL | yes, in oauth mode | — | This server’s own public base URL, embedded in the WWW-Authenticate challenge and OAuth discovery documents. Must be absolute http/https with no userinfo, query, or fragment. http on a non-loopback host logs a WARN rather than erroring. |
REDMINE_INTROSPECT_CLIENT_ID | yes, in oauth mode | — | The confidential OAuth client id used to authenticate RFC 7662 introspection requests to Redmine’s Doorkeeper. |
REDMINE_INTROSPECT_CLIENT_SECRET | yes, in oauth mode | — | Mutually exclusive with REDMINE_INTROSPECT_CLIENT_SECRET_FILE. |
REDMINE_INTROSPECT_CLIENT_SECRET_FILE | yes, in oauth mode (alternative) | — | Path to a file containing the secret (Docker/K8s secret mount). Setting both this and REDMINE_INTROSPECT_CLIENT_SECRET is a Conflict. |
REDMINE_OAUTH_TOKEN_CACHE_TTL_SECONDS | no | 60 | 0–3600. How long a positive introspection result is cached, further capped by the token’s own exp. 0 disables caching entirely. See docs/oauth-setup.md. |
REDMINE_OAUTH_DISCOVERY_AS | no, oauth/oauth-proxy modes only | redmine (oauth), forced self (oauth-proxy) | redmine or self. In oauth mode, self serves the RFC 8414 authorization-server document at the root well-known path with issuer = REDMINE_MCP_BASE_URL (and 404s the suffixed path) instead of the default — see docs/oauth-setup.md. In oauth-proxy mode this server always advertises itself as the authorization server regardless of this variable; explicitly setting redmine there is a startup Conflict. |
REDMINE_MCP_SCOPES | no, oauth mode only | the full advertised set | Whitespace-separated subset of the scopes this server advertises in its OAuth discovery documents. Every entry must already be advertised in the current mode (respecting REDMINE_MCP_READ_ONLY/agile/tags gating); an out-of-set entry refuses to boot, listing the accepted set. Narrows advertisement; enforcement is REDMINE_OAUTH_SCOPE_ENFORCEMENT below. |
REDMINE_OAUTH_SCOPE_ENFORCEMENT | no, oauth/oauth-proxy modes only | on | on or off. off disables both tools/list filtering and tools/call scope denial, restoring unfiltered behaviour, and logs a startup WARN — intended only for tokens minted before the OAuth application advertised scopes. See docs/oauth-setup.md. |
REDMINE_OAUTH_CLIENT_ID | no, oauth-proxy mode only | REDMINE_INTROSPECT_CLIENT_ID | The upstream OAuth application oauth-proxy mode will run its own authorization-code flow against Redmine with. Setting this without REDMINE_OAUTH_CLIENT_SECRET (or vice versa) is a Conflict. |
REDMINE_OAUTH_CLIENT_SECRET | no, oauth-proxy mode only | REDMINE_INTROSPECT_CLIENT_SECRET | Mutually exclusive with REDMINE_OAUTH_CLIENT_SECRET_FILE. |
REDMINE_OAUTH_CLIENT_SECRET_FILE | no, oauth-proxy mode only (alternative) | — | Path to a file containing the secret. Setting both this and REDMINE_OAUTH_CLIENT_SECRET is a Conflict. |
REDMINE_MCP_ALLOWED_CLIENT_REDIRECT_URIS | no, oauth-proxy mode only | loopback only | Comma/whitespace-separated scheme://host[:port]/path* patterns a DCR-registered client’s redirect_uris are checked against (a single leading *. host label is the only wildcard form), or the literal * for no restriction beyond http/https-only, no userinfo, no fragment, and http restricted to loopback hosts (logs a startup WARN). Default: http://localhost:* and http://127.0.0.1:*. See docs/oauth-setup.md. |
REDMINE_MCP_JWT_SIGNING_KEY/_FILE | no | — | Accepted in oauth-proxy mode for compatibility with the reference server’s config surface, but unused: proxy tokens here are opaque server-side handles (never signed JWTs), so setting either logs a startup WARN naming it as ignored. Outside oauth-proxy mode it is still recognised-but-unread (see “Not yet implemented”). |
REDMINE_VERSION | no | — | Your Redmine’s MAJOR.MINOR.PATCH, for example 7.0.3. Declared, not detected: Redmine exposes its version nowhere over REST, so this server cannot check it and trusts the value. When set below the minimum safe patch level of its series (6.0.12 / 6.1.6 / 7.0.3), startup logs one WARN and get_mcp_server_info reports redmine_version_advisory. A malformed value is Invalid. Update it when you upgrade Redmine. See Minimum safe Redmine patch levels. |
REDMINE_SSL_VERIFY | no | true | false is accepted but logs a WARN — never silently downgrades without a trace. |
REDMINE_MCP_READ_ONLY | no | false | Removes every tool in readonly::write_tools::ALL from the router (hides from tools/list and rejects tools/call). |
REDMINE_MCP_MAX_RESPONSE_ITEMS | no | 200 | Caps the item count in any list-shaped tool response. A positive integer; 0 is Invalid. A truncated response reports it via pagination.truncated and a hint rather than a silent cut. |
REDMINE_MCP_MAX_RESPONSE_BYTES | no | 262144 (256 KiB) | Caps the serialized byte size of any tool response, applied together with the item cap above. A positive integer; 0 is Invalid. |
REDMINE_MCP_SCHEMA_DIALECT | no | strict | One of strict, portable. portable inlines every inputSchema’s $ref/$defs and collapses {"type":["T","null"]} to {"type":"T"}, for clients (Google Vertex/Gemini) whose function-calling schema validator rejects the rich JSON Schema 2020-12 form. outputSchema is unaffected either way — see ADR 0007. |
REDMINE_AGILE_ENABLED | no | false | plugin_flags.agile (get_mcp_server_info). Adds no new tools — true makes get_redmine_issue report story_points/agile_sprint_id/agile_position (RedmineUP Agile plugin) and lets update_redmine_issue change them; false (the default) makes the fields absent from get_redmine_issue and any of the three parameters on update_redmine_issue fail with MISCONFIGURED before any write happens. |
REDMINE_CHECKLISTS_ENABLED | no | false | plugin_flags.checklists. true registers get_checklist/create_checklist_item/update_checklist_item (RedmineUP Checklists Pro plugin); false (the default) de-registers them from the router entirely — they are absent from tools/list and tools/call fails with “tool not found”, not an in-band error. |
REDMINE_PRODUCTS_ENABLED | no | false | plugin_flags.products. true registers manage_product (RedmineUP Products plugin); false (the default) de-registers it from the router entirely — absent from tools/list, and tools/call fails with “tool not found”, not an in-band error. |
REDMINE_CRM_ENABLED | no | false | plugin_flags.crm. true registers manage_contact (RedmineUP CRM plugin); false (the default) de-registers it from the router entirely — absent from tools/list, and tools/call fails with “tool not found”, not an in-band error. |
REDMINE_DMSF_ENABLED | no | false | plugin_flags.dmsf. true registers manage_document (redmine_dmsf plugin, open source but still needs a server-side install); false (the default) de-registers it from the router entirely — absent from tools/list, and tools/call fails with “tool not found”, not an in-band error. |
REDMINE_TAGS_ENABLED | no | false | plugin_flags.tags (get_mcp_server_info). Adds no new tools — true makes get_redmine_issue report an issue’s tags (AlphaNodes additional_tags plugin) and lets create_redmine_issue/update_redmine_issue replace them via tag_list; false (the default) makes tags absent from get_redmine_issue and tag_list fail with MISCONFIGURED before any write happens. |
REDMINE_AUTOFILL_REQUIRED_CUSTOM_FIELDS | no | false | When create_redmine_issue/update_redmine_issue hit a 422 naming a required issue custom field as blank or invalid, retry the write exactly once with a value filled from the field’s own default_value or from REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTS, reported back as autofilled_custom_fields. false (the default) skips the retry; the 422 is still enriched with missing_required_fields and a hint. Matching Redmine’s validation message text is English-only — a non-English Redmine locale falls back to the plain 422. The field’s own default_value comes from the admin-only GET /custom_fields.json; with a non-admin credential only REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTS is used. |
REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTS | no | unset | A JSON object mapping a custom field’s display name to a default value (a string, or an array of strings for a multiple = true field), used only when the field has no default_value of its own and only when autofill is enabled. Invalid JSON, a non-object, {}, or a value that is neither a string nor an array of strings fails the boot, naming the accepted form — this is the codebase’s only map-valued env var, and a silently-ignored typo here is a safety feature that never worked. Neither the configured names nor their values appear in --print-config, get_mcp_server_info, /readyz, or any log line — only their count. Setting this with autofill off is accepted and logs a WARN; the map is simply unused. |
HTTP transport (--transport http only)
Ignored entirely on --transport stdio.
| Variable | Required | Default | Notes |
|---|---|---|---|
SERVER_HOST | no | 127.0.0.1 | Must be an IP literal (127.0.0.1, ::1, 0.0.0.0); hostnames are rejected so the bound interface never depends on DNS. A non-loopback value requires a Host policy — see “Exposing the server on a network”. |
SERVER_PORT | no | 8000 | 1–65535. 0 is rejected: the server would bind a port no client could be told about. |
PUBLIC_HOST | yes, for a non-loopback SERVER_HOST | — | The hostname clients use to reach this server. Added to the Host allowlist bare, which matches the host on any port. |
PUBLIC_PORT | no | — | Pins the PUBLIC_HOST entry to one port (host:port instead of bare host). Setting it alone is a Conflict. |
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK | yes, for a non-loopback SERVER_HOST in legacy auth mode | — | Must be exactly true. Absent/false refuses to start (Missing) — the operator’s explicit attestation that a single shared Redmine API key on a non-loopback bind is acceptable. See “Exposing the server on a network”. |
FASTMCP_STREAMABLE_HTTP_PATH | no | /mcp | Must start with /, have at least one segment, and contain no .., ?, #, {, }, *, or whitespace. |
REDMINE_MCP_ALLOWED_HOSTS | no | derived | Comma-separated host or host:port. Replaces the derived list entirely. * disables Host validation and logs a WARN; it is only accepted as the sole value. A port-less entry matches any port. |
REDMINE_MCP_ALLOWED_ORIGINS | no | [] (Origin validation off) | Comma-separated absolute origins, each with a scheme (https://app.example.com). * and null are rejected. When non-empty this also enables an exact-match CORS layer; when empty no CORS headers are sent at all. |
REDMINE_MCP_MAX_REQUEST_BODY_BYTES | no | 4194304 (4 MiB) | 1 KiB – 68 MiB. Enforced while streaming the body, so Content-Length cannot be lied about; oversized payloads get 413. Also bounds the inline content_base64 size: get_mcp_server_info reports it as max_inline_upload_bytes (about 2.25 MiB at the default, the full 50 MiB at the maximum). Each in-flight request can buffer up to this many bytes. |
HEALTH_INTROSPECTION_TTL_SECONDS | no | 30 | 0–3600. How long a /readyz Redmine probe stays cached. 0 disables caching. |
PUBLIC_SCHEME | no | https if PUBLIC_PORT is 443, else http | http or https. Feeds the origin used to build /files/{uuid} attachment URLs (public_base); has no effect on the Host allowlist. |
REDMINE_MCP_RATE_LIMIT_ENABLED | no | true | false constructs no limiter: no request is ever rejected for rate. |
REDMINE_MCP_RATE_LIMIT_RPS | no | 10 | The standard class’s refill rate (/mcp, /files/{uuid}). Must be > 0. |
REDMINE_MCP_RATE_LIMIT_BURST | no | 40 | The standard class’s bucket capacity. Must be >= REDMINE_MCP_RATE_LIMIT_RPS. |
REDMINE_MCP_RATE_LIMIT_AUTH_RPS | no | 1 | The strict class’s refill rate (/register, /authorize, /auth/callback, /token, /revoke — oauth-proxy mode only). Must be > 0. |
REDMINE_MCP_RATE_LIMIT_AUTH_BURST | no | 10 | The strict class’s bucket capacity. Must be >= REDMINE_MCP_RATE_LIMIT_AUTH_RPS. |
REDMINE_MCP_RATE_LIMIT_MAX_KEYS | no | 10000 | Hard cap on each class’s bucket map. At capacity, a new key evicts the least-recently-touched entry rather than being refused. The map is sharded (up to 16 shards) to bound lock contention, and the cap is enforced per shard, so effective total capacity under a skewed key distribution can be slightly below this value. |
Both classes key by the request’s peer IP address, never a header
(X-Forwarded-For/X-Real-IP are never read — see “Rate limiting” below); the
standard class keys /mcp by a bearer token’s digest instead when one is
present, so one NAT or containerised client does not share a bucket across
distinct users. A rejected request gets 429 with a Retry-After header and
Cache-Control: no-store, body {"error": "rate_limited"} — never a
JSON-RPC error. /livez, /readyz, and /health are never rate limited.
Both allowlists reject a value that is set but contains no usable entries
(" , "): “set, but empty” must not silently become “unset”, because an empty
Host allowlist means allow every host.
The derived Host allowlist is always localhost, 127.0.0.1, ::1, plus
the PUBLIC_HOST entry when set. It is logged at INFO on startup, so a 403
can be diagnosed from the boot line.
Host validation applies to the MCP route only — the health endpoints answer
regardless of the Host header. They carry no configuration, so the exposure
is the single bit of “is Redmine reachable”, but a rebound browser page can
read it. /files/{uuid} (below) gets its own copy of the same Host check,
reusing the same allowlist.
public_base: the origin used for /files/{uuid} links
Building an attachment download URL needs an origin, not just a Host
allowlist. It is derived once at startup, independently of
REDMINE_MCP_ALLOWED_HOSTS:
- With
PUBLIC_HOSTset:{PUBLIC_SCHEME}://{PUBLIC_HOST}[:{PUBLIC_PORT}]. - Without it: only a loopback
SERVER_HOSTcan derive one (http://<bind-ip>:<port>, correct for a client on the same machine).
A non-loopback SERVER_HOST with no PUBLIC_HOST is a startup error here
even when REDMINE_MCP_ALLOWED_HOSTS=* was set — that variable disables the
Host check, but building a working /files/{uuid} URL still needs a real
origin a client could reach.
ConfigError::Invalid never echoes a secret value — it describes the
expected shape instead (e.g. “must be a valid http(s) URL without userinfo”,
not the rejected URL string when it might contain credentials pasted in by
mistake).
Not yet implemented
These are recognised names that ruprogress-mcp does not read yet; setting
them today has no effect.
REDMINE_USERNAME, REDMINE_PASSWORD,
REDMINE_SSL_CERT, REDMINE_SSL_CLIENT_CERT, FASTMCP_HOME.
(REDMINE_MCP_JWT_SIGNING_KEY(_FILE), REDMINE_MCP_ALLOWED_CLIENT_REDIRECT_URIS,
and REDMINE_OAUTH_CLIENT_ID/REDMINE_OAUTH_CLIENT_SECRET(_FILE) moved to
the main table above once oauth-proxy mode existed to read them.)
The 8 attachment-related variables are validated and read (see “Attachment
store” below). get_redmine_attachment
reads ATTACHMENTS_DIR, ATTACHMENT_MAX_DOWNLOAD_BYTES,
ATTACHMENT_STORE_MAX_BYTES, AUTO_CLEANUP_ENABLED,
CLEANUP_INTERVAL_MINUTES, and ATTACHMENT_EXPIRES_MINUTES;
upload_file/cleanup_attachment_files read
REDMINE_MCP_UPLOAD_FILE_ROOTS and REDMINE_MCP_EXPOSE_ADMIN_TOOLS
respectively; REDMINE_PUBLIC_URL rewrites every content_url
this server emits.
Attachment store
Local, on-disk staging for downloaded Redmine attachments. The store always
exists (there is no way to disable it) and the directory is created at
startup. get_redmine_attachment is the first consumer: it
streams a Redmine attachment’s bytes into the store, enforcing the per-file
and whole-store caps below against bytes actually received rather than any
header or metadata field, then returns a /files/{uuid} URL (HTTP
transport) or an absolute file_path (stdio transport).
| Variable | Required | Default | Notes |
|---|---|---|---|
ATTACHMENTS_DIR | no | {temp_dir}/ruprogress-mcp-attachments | Created 0700 on Unix at startup; a WARN is logged on other platforms, where permissions rely on inherited ACLs. Per-installation, not per-process, so a restarted process can still reap a predecessor’s files. |
ATTACHMENT_MAX_DOWNLOAD_BYTES | no | 209715200 (200 MiB) | Positive integer. The per-file cap. |
ATTACHMENT_STORE_MAX_BYTES | no | 2147483648 (2 GiB) | Positive integer. The whole-store cap. Must be >= ATTACHMENT_MAX_DOWNLOAD_BYTES, or a startup Conflict — a smaller store cap would mean no single download could ever fit. Counts bytes reserved for in-flight downloads as well as committed ones, so a burst of concurrent downloads that would together exceed this cap now gets STORE_FULL on the excess requests instead of overshooting it. |
AUTO_CLEANUP_ENABLED | no | true | Whether the background sweeper task runs at all. |
CLEANUP_INTERVAL_MINUTES | no | 15 | Positive integer. How often the sweeper runs. |
ATTACHMENT_EXPIRES_MINUTES | no | 60 | Positive integer. How long a stored file stays fetchable. Checked on every lookup (not just by the interval sweeper), so an expired file is refused immediately rather than up to CLEANUP_INTERVAL_MINUTES late. |
REDMINE_MCP_UPLOAD_FILE_ROOTS | no | [] | Comma-separated absolute directory paths upload_file’s file_path source may read from, in addition to ATTACHMENTS_DIR itself (always allowed). Empty means only ATTACHMENTS_DIR is allowed. |
REDMINE_MCP_EXPOSE_ADMIN_TOOLS | no | false | Registers cleanup_attachment_files when true; otherwise the tool does not appear in tools/list at all. |
REDMINE_PUBLIC_URL | no | — | Must be a valid http/https URL. Rewrites every content_url this server emits (get_redmine_issue’s/create_redmine_issue’s/update_redmine_issue’s attachments[*], list_files/upload_file, wiki page attachments) whose scheme+host+port matches REDMINE_URL’s, preserving path, query, fragment, and any reverse-proxy sub-path baked into REDMINE_PUBLIC_URL itself. A content_url whose origin does not match is left untouched. |
GET /files/{uuid} (HTTP transport only) serves a stored file:
Content-Disposition: attachment, X-Content-Type-Options: nosniff,
Cache-Control: no-store, and a sanitised filename. 404 for an unknown or
expired UUID; 403 for a Host header outside the same allowlist /mcp
uses (see “public_base” above).
upload_file’s two sources (and manage_document’s create action, and each
uploads[] item on create_redmine_issue/update_redmine_issue) share the
same fixed 50 MiB per-file cap, independent of ATTACHMENT_MAX_DOWNLOAD_BYTES
(which bounds the opposite direction, a Redmine attachment downloading onto
local disk). For content_base64 this is enforced against the decoded
byte count, before the full decode buffer is allocated; a file_path upload
is refused with PATH_NOT_ALLOWED — never a path or existence detail —
unless it resolves inside ATTACHMENTS_DIR or a REDMINE_MCP_UPLOAD_FILE_ROOTS
entry. uploads[] additionally shares a 100 MiB aggregate budget across all
its items (both sources) for one call.
The largest inline content_base64 file also depends on the transport (the
max_inline_upload_bytes field of get_mcp_server_info). On the HTTP
transport, REDMINE_MCP_MAX_REQUEST_BODY_BYTES bounds the whole request body,
so the inline limit is about 2.25 MiB at the default and the full 50 MiB from
a 68 MiB body cap; the 100 MiB uploads[] total is reachable over HTTP only
through file_path items. On stdio, each JSON-RPC message is bounded at a
fixed 144 MiB, sized above the largest upload budget, so the full 50 MiB
fits inline; the transport drops a longer message without replying.
Exposing the server on a network
The default bind is loopback-only (127.0.0.1:8000). Nothing outside the
machine can reach it until you change SERVER_HOST.
SERVER_HOST=0.0.0.0 on its own is a startup error. The exact message:
PUBLIC_HOST is required because SERVER_HOST is not a loopback address, so the
Host allowlist cannot be derived. Set PUBLIC_HOST to the hostname clients use
to reach this server, or set REDMINE_MCP_ALLOWED_HOSTS explicitly ("*" disables
Host validation entirely — only do this when a reverse proxy already validates
Host).
Why it is an error and not a warning: the Host allowlist is the only control
that detects DNS rebinding. Rebinding works by making the request same-origin
from the browser’s point of view — evil.com resolves to your server’s address
and a page on evil.com fetches evil.com/mcp — so there is no preflight and
CORS never runs. The one remaining signal is that the request arrives with
Host: evil.com. And in rmcp an empty allowlist means allow every host,
not “validation off”, so a silently underivable list is fail-open. A boot-time
error beats a runtime 403 whose body explains nothing, after a startup warning
that scrolled away hours ago.
Three valid configurations:
# 1. Clients reach you by hostname (most deployments).
SERVER_HOST=0.0.0.0
PUBLIC_HOST=mcp.example.com # allowlist gains mcp.example.com[:8000]
# 2. Several names, or a name that differs from PUBLIC_HOST's derivation.
SERVER_HOST=0.0.0.0
REDMINE_MCP_ALLOWED_HOSTS=mcp.example.com,mcp.internal:8000
# 3. A reverse proxy in front already validates Host. Logs a WARN.
SERVER_HOST=0.0.0.0
REDMINE_MCP_ALLOWED_HOSTS=*
A container published on localhost:
docker run --rm -p 8000:8000 \
-e REDMINE_URL=https://redmine.example.com \
-e REDMINE_API_KEY=... \
-e SERVER_HOST=0.0.0.0 \
-e PUBLIC_HOST=localhost \
-e REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=true \
ruprogress-mcp --transport http
services:
ruprogress-mcp:
image: ruprogress-mcp
command: ["--transport", "http"]
ports: ["127.0.0.1:8000:8000"]
environment:
REDMINE_URL: https://redmine.example.com
REDMINE_API_KEY: ${REDMINE_API_KEY}
SERVER_HOST: 0.0.0.0
PUBLIC_HOST: localhost
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK: "true"
The default legacy auth mode also requires an explicit opt-in
A shared REDMINE_API_KEY authenticates this server to Redmine, not the
caller to this server: anyone who can reach a non-loopback bind acts as that
Redmine account. REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK unset on a
non-loopback bind under legacy auth is a startup error. The exact message:
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK is required because legacy auth mode
authenticates this server to Redmine with a single shared API key, not the
caller to this server: anyone who can reach a non-loopback bind acts as that
Redmine account. Bind loopback instead, put an authenticating proxy in front,
switch to legacy-per-user/oauth/oauth-proxy, or set this variable to "true" to
accept the risk
Why an error and not just the pre-existing WARN (which still fires,
byte-for-byte unchanged, once the variable is set): a log line that scrolls
away is not consent, and the shipped Dockerfile/docker-compose.yml example
is exactly this configuration — ENV SERVER_HOST=0.0.0.0 plus a published
port — so an operator who never reads the log would otherwise get
unauthenticated network exposure by default. Four ways out, in order of
preference:
- Bind loopback (
SERVER_HOST=127.0.0.1, the default) and put your own authenticating layer in front if remote access is needed. - Put a proxy that authenticates the caller in front of a non-loopback bind.
- Switch to
REDMINE_AUTH_MODE=legacy-per-user,oauth, oroauth-proxyso each caller presents their own credential instead of sharing this server’s. - Set
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=trueto accept the risk — the operator’s explicit attestation, not something this process can verify.
Health endpoints
Served on the HTTP transport only.
| Path | Checks | Codes |
|---|---|---|
/livez | The process, and nothing else. | Always 200 |
/readyz | A TTL-cached probe: GET /my/account.json in legacy mode, RFC 7662 introspection with a synthetic token in oauth/oauth-proxy modes, none in legacy-per-user. | 200 ready, 503 not ready |
/health | Alias for /readyz. | as /readyz |
/livez deliberately never touches Redmine: wired to a Kubernetes
livenessProbe, a dependency check would turn a Redmine blip into a restart
storm. Concurrent /readyz requests collapse into a single upstream probe —
setting HEALTH_INTROSPECTION_TTL_SECONDS=0 turns that off along with the
cache, so concurrent probes each hit Redmine.
The body is readiness facts only, legacy/legacy-per-user:
{ "status": "ready", "redmine": "up", "checked_at": "2026-08-06T12:00:00.123456+00:00" }
checked_at is when the probe actually ran, which on a cache hit is up to
HEALTH_INTROSPECTION_TTL_SECONDS ago. redmine is up, down, or
not_probed. not_probed (with a 200) is returned in legacy-per-user
mode, where the server owns no credential to probe with; reporting “down”
there would take the instance out of rotation permanently.
oauth/oauth-proxy modes probe introspection instead (bypassing the token cache — the
probe uses a synthetic token no real Doorkeeper token matches) and gains a
checks field:
{ "status": "ready", "redmine": "ok", "checks": { "introspection": "ok" }, "checked_at": "..." }
redmine/checks.introspection (identical) is ok (200 {"active": false}
— the inactive result is expected, what matters is that introspection
answered), misconfigured (Doorkeeper rejected this server’s own client
credentials — 401/403/404, 503 overall), or unreachable (transport
error, 5xx, or timeout — 503 overall).
All three endpoints send Cache-Control: no-store and are excluded from
request tracing.
Logging
--log-level (falling back to RUST_LOG, defaulting to info) is a
standard tracing_subscriber::EnvFilter directive string,
written to stderr — stdout is reserved for the JSON-RPC stream on the
stdio transport.
Whatever is requested is combined with a payload-safety floor: rmcp,
hyper, hyper_util, h2, reqwest, rustls, and wiremock are capped at
info, and tower_http::trace at debug (its debug output is
request/response metadata — method, path, status, latency — never a body).
These are the dependencies whose own DEBUG/TRACE output includes a tool
call’s arguments, a full JSON-RPC envelope, or wire-level bodies and
headers — nothing this server’s own code can redact after the fact, since it
isn’t this server’s Debug impl. ruprogress_mcp and redmine_client are
never floored: RUST_LOG=trace (or --log-level trace) stays fully verbose
for this server’s own code.
Naming a floored target explicitly wins: RUST_LOG=trace,rmcp=trace logs
rmcp at trace — including tool payloads — and a startup WARN names the
override, since that is a real trade a protocol-bug hunt sometimes needs.
Observability
Every tools/call, on both transports, opens one tool_call span and closes
it with a single INFO event carrying:
tool— the tool namerequest_id— an 8-hex-digit process prefix (random at startup, stable for the process’s life) plus a 16-hex-digit per-server call counter, e.g.9f3ac210-0000000000000042. This is not a client-supplied or W3C trace id — nothing propagates it over the wire. It exists only to tie one call’s log lines together and to tell two processes’ logs apart in an aggregator; do not plumb it into a header expecting distributed tracing.outcome— one ofok,error,denied(a scope or read-only refusal), orpanic, pluscode(the tool’s own in-bandErrorCode, e.g.NOT_FOUND) whenoutcomeis notokduration_ms— wall-clock time of the guarded call body
The span deliberately carries only the tool name and the request id — never an argument value, and never an argument key either. Some tools’ argument keys are themselves sensitive (Redmine custom-field names, CRM contact-field names), and there is no per-tool review budget for “which of this tool’s keys are safe to log” — the rule is simply: log the call, never its content.
REDMINE_MCP_LOG_FORMAT (text, default, or json — one JSON object per
line, for a log aggregator) only changes how a line is written, never what is
in it.
What “redaction” does and does not mean here. There is no tracing
layer that scrubs credentials or PII out of formatted log output, and there
will not be one: a layer like that can only remove strings it has already
been told about, so it protects nothing new and would advertise a guarantee
this server cannot keep. What actually holds the line is two things working
together: the payload-safety floor above (dependencies that would otherwise
print a tool’s arguments or a whole JSON-RPC envelope are capped below the
level that does so) and this server’s own code never logging tool argument
values or response PII in the first place (this section, plus the per-mode
tests that assert it). “Redaction” in this codebase means the sites that
would print a secret are not enabled and are not written, not a filter
removes secrets after the fact.
--print-config
ruprogress-mcp --print-config resolves the config and prints
Config::redacted_summary() as JSON to stdout, then exits 0 without starting
a server. It includes the Redmine host, the transport (and its bind address and
MCP path), and the auth mode for operator debugging, but never a credential.
The three redaction surfaces
They differ on purpose, because they have different audiences. Do not unify them.
| Surface | Audience | Redmine host | Bind address | Config | Secrets |
|---|---|---|---|---|---|
Config::redacted_summary() (--print-config) | An operator, locally | yes | yes | yes | never |
get_mcp_server_info (MCP tool) | A language model | no | no | yes | never |
/readyz | Anyone who can reach the port | no | no | no | never |
get_mcp_server_info omits internal topology because a model that has been
prompt-injected will happily relay it. /readyz is unauthenticated, so it
answers only the question it exists to answer.
--healthcheck
ruprogress-mcp --healthcheck sends one GET http://127.0.0.1:<port>/livez,
prints nothing, and exits 0 if it answered with a success status or 1
otherwise. The container image’s HEALTHCHECK is exactly this — the distroless
runtime has no shell and no curl, so the binary has to probe itself:
healthcheck:
test: ["CMD", "/usr/local/bin/ruprogress-mcp", "--healthcheck"]
Three properties matter when wiring it up:
- It reads only
SERVER_PORT(default8000), straight from the process environment. The flag is handled before config resolution, so an--env-file/.envis not consulted and no Redmine credential, attachments directory, or anything else is required — the probe answers in a container that would fail to start a server. - It targets
/livez, never/readyz. A Redmine outage must not become a container restart loop. Point an orchestrator’s readiness probe at/readyzseparately — see “Health endpoints”. - It gives up after 2 seconds and reports failure, so a hung probe never outlasts the orchestrator’s own timeout.
Deliberately conservative defaults
Four choices that trade convenience for a safer default. A silent behaviour difference is worse than a documented one.
- The default bind is
127.0.0.1:8000, not0.0.0.0:8000. An MCP server whose only auth is one shared API key, reachable on every interface, is onedocker run -paway from being an unauthenticated Redmine proxy. /healthreports readiness only — noversion,auth_mode,read_only, orplugin_flags. Those answer no readiness question and are configuration disclosure on an unauthenticated endpoint. They remain available viaget_mcp_server_infoand--print-config.- A non-loopback
SERVER_HOSTwithoutPUBLIC_HOSTorREDMINE_MCP_ALLOWED_HOSTSrefuses to start. See “Exposing the server on a network”. PUBLIC_HOSTis required for a non-loopbackSERVER_HOSTeven whenREDMINE_MCP_ALLOWED_HOSTS=*is set. That variable turns off theHostcheck, but/files/{uuid}URLs still need a real origin to build from — an unreachablehttp://0.0.0.0:8000/files/...link is worse than a startup error naming the fix.
OAuth (bearer-token) setup
REDMINE_AUTH_MODE=oauth — each MCP client presents its own Redmine
Doorkeeper access token as Authorization: Bearer, and this server validates
it by RFC 7662 introspection before forwarding it upstream verbatim. Every
user acts as themselves, with their own token’s permissions.
Status
Live now: bearer extraction, RFC 7662 introspection with
a digest-keyed cache, the 401 WWW-Authenticate: Bearer / 503 Retry-After
challenge, forwarding the validated token to Redmine, RFC 9728/RFC 8414
discovery documents, POST /revoke, an introspection-backed /readyz probe,
and per-tool scope enforcement: tools/list shows only the tools a token’s
scopes permit, and tools/call on a hidden tool is refused in-band with
INSUFFICIENT_SCOPE.
REDMINE_AUTH_MODE=oauth-proxy is the other bearer-token mode: this server
is the authorization server MCP clients talk to, registering themselves
with RFC 7591 Dynamic Client Registration rather than being hand-registered
in Redmine’s admin panel. See oauth-proxy setup
below.
Scope enforcement
Every tool call is checked against a hand-maintained map from tool name to
the Redmine permission(s) it needs — crates/ruprogress-mcp/src/auth/scope.rs
(TOOL_SCOPES), the source of truth for both tools/list filtering and
tools/call denial. Adding a new tool means adding its row to that map in
the same change: an unmapped tool is denied by default and logged at
ERROR, and a CI anti-drift test
(crates/ruprogress-mcp/tests/oauth_scopes.rs) fails the build if a
registered tool has no entry.
Semantics:
- A tool’s requirement is either fixed, or depends on its
actionargument (mirroringmanage_issue_relation’s/manage_redmine_wiki_page’s existing per-action shape). The token must hold every scope in the matching requirement; an empty requirement means any authenticated token may call the tool. - A token carrying the
adminscope bypasses the map entirely, for both visibility and calls — matching Redmine’s own admin semantics. update_redmine_issuehas a notes-only carve-out: a call whose changed fields are onlynotes/private_notes, with nouploads, needsadd_issue_notesinstead ofedit_issues; reparenting (parent_issue_id) additionally needsmanage_subtasks. A token holding eitheredit_issuesoradd_issue_notessees the tool intools/list.- A
tools/calldenial returns the in-band envelope{error, code: "INSUFFICIENT_SCOPE", retryable: false, hint}, naming the missing scope(s) — never a protocol-level error, and never “tool not found” even though the tool is hidden fromtools/list. - Argument-conditional Redmine permissions that do not map to a distinct MCP
parameter shape (e.g.
tag_listwrites, agile-board fetches) are left to Redmine’s own enforcement: the call reaches Redmine and comes back as a normal in-band403, exactly as it would through Redmine’s own UI.
REDMINE_OAUTH_SCOPE_ENFORCEMENT=off (default on) disables both
tools/list filtering and tools/call denial, restoring unfiltered
behaviour, and logs a startup WARN. This exists only for the documented
migration case: tokens minted before the OAuth application advertised
scopes introspect with an empty scope set and would otherwise be denied
everything.
REDMINE_OAUTH_SCOPE_ENFORCEMENT=off
A client that caches tools/list across users despite the cache_scope: "private" hint this server sends once filtering is active will show the
wrong list to the wrong user — this server cannot fix a client that ignores
that hint.
Patch-level caveats on the Redmine side:
- Redmine before 6.1.6/7.0.3 ignores token scopes when it decides which
projects a request may see. The
INSUFFICIENT_SCOPEgate filters tools but cannot narrow what an allowed tool returns, so on those patch levels a scoped token sees more than its scopes allow. See minimum safe patch levels. manage_issue_categorywithaction="list"is mapped toview_issues, which is only what Redmine requires from 6.0.11/6.1.4/7.0.1. Before those patch levels it needsmanage_categories.
Step 1: Register an OAuth app for your users
- Log in to Redmine as admin → Administration → Applications → New Application.
- Fill in:
- Name: anything recognisable, e.g.
MCP Server. - Redirect URI: whatever your MCP client’s own OAuth flow uses (this server does not participate in that flow — it only validates the resulting token).
- Confidential: Yes.
- Name: anything recognisable, e.g.
- Save and note the Client ID and Client Secret — your MCP client needs these to obtain tokens; this server never sees them.
Step 2: Register a Doorkeeper introspection client
This server validates incoming bearer tokens by calling Doorkeeper’s RFC 7662
introspection endpoint (POST /oauth/introspect), authenticating itself with
its own confidential OAuth application. This can be the same application as
Step 1, or a separate one for independent credential rotation.
2a. Register the application
- Administration → Applications → New Application.
- Fill in:
- Name:
Redmine MCP Server (introspection). - Redirect URI:
urn:ietf:wg:oauth:2.0:oob(unused, but required by the form — this client never performs an authorization-code flow). - Confidential: Yes.
- Scopes: leave empty.
- Name:
- Save and note the Client ID and Client Secret.
If Administration → Applications 403s: enable Administration → Settings → API → “Enable REST web service” first (or, from a Rails console,
Setting.rest_api_enabled = "1").
2b. Enable cross-app token introspection in Doorkeeper
Redmine ships with allow_token_introspection false hard-coded, so even an
authenticated introspection client cannot introspect a token issued to a
different OAuth app — exactly the case here, since the introspection client
(Step 2a) must introspect tokens issued to the user-flow app (Step 1).
Edit Redmine’s own initializer in place, on the Redmine server:
config/initializers/30-redmine.rb. Find:
allow_token_introspection false
Replace it with:
allow_token_introspection do |_token, authorized_client, _resource_owner|
!authorized_client.nil? && authorized_client.confidential?
end
This grants introspection rights to any confidential OAuth client. Restart Redmine after the change.
Why edit
30-redmine.rbdirectly instead of a new initializer? Redmine wraps its Doorkeeper configuration in aRails.application.config.to_prepare do ... endblock, andDoorkeeper.configure do ... endrebuilds the entire config from scratch on every call rather than merging. A secondDoorkeeper.configureblock in your own initializer would silently wipe Redmine’sadmin_authenticator,resource_owner_authenticator,grant_flows, and everything else it sets — the visible symptom is Administration → Applications 403ing with a log line aboutadmin_authenticator being unconfigured. Track this edit as a deployment patch (e.g. a DockerfileRUN sed -i ...step) so it survives Redmine upgrades.
2c. Verify
curl -X POST "$REDMINE_URL/oauth/introspect" \
-u "$REDMINE_INTROSPECT_CLIENT_ID:$REDMINE_INTROSPECT_CLIENT_SECRET" \
-d "token=any-test-token&token_type_hint=access_token"
Expect 200 {"active":false} — the false is correct (the token is made
up); what matters is the 200.
| Response | Meaning |
|---|---|
404 Page not found | The route isn’t mounted. Confirm step 2b was applied and Redmine was restarted. |
401 invalid_client | The introspection client’s id/secret are wrong, or it isn’t confidential. |
200 {"active": false} for a known-valid token | allow_token_introspection is returning falsy for this client — recheck 2b. |
Step 3: Configure ruprogress-mcp
REDMINE_AUTH_MODE=oauth
REDMINE_URL=https://redmine.example.com
REDMINE_MCP_BASE_URL=https://mcp.example.com # this server's own public URL
# Introspection client (Step 2)
REDMINE_INTROSPECT_CLIENT_ID=<Client ID from Redmine>
REDMINE_INTROSPECT_CLIENT_SECRET=<Client Secret from Redmine>
# Or: REDMINE_INTROSPECT_CLIENT_SECRET_FILE=/run/secrets/redmine_introspect_client_secret
# Optional: positive-introspection cache TTL, 0..3600 seconds (default 60).
# 0 disables caching. No upstream counterpart — a ruprogress-mcp addition.
# REDMINE_OAUTH_TOKEN_CACHE_TTL_SECONDS=60
# Optional: /readyz's introspection-probe cache TTL in seconds (default 30).
# HEALTH_INTROSPECTION_TTL_SECONDS=30
oauth mode requires --transport http (or FASTMCP_TRANSPORT=http): there
is no per-request header, and nothing to challenge with, on stdio. Missing
REDMINE_INTROSPECT_CLIENT_ID/REDMINE_INTROSPECT_CLIENT_SECRET, or oauth
on stdio, both refuse to start with a message naming the variable.
Step 4: Start and verify
cargo run -- --transport http
# No token: 401 with a WWW-Authenticate challenge naming the
# resource-metadata document below.
curl -i http://127.0.0.1:8000/mcp
# A real token, obtained however your MCP client obtains one:
curl -i http://127.0.0.1:8000/mcp \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
Verify discovery and readiness, both unauthenticated:
# RFC 9728 protected-resource metadata
curl http://127.0.0.1:8000/.well-known/oauth-protected-resource/mcp
# RFC 8414 authorization-server metadata (suffixed path; see the
# "Cursor and self-AS discovery" section below for the root-path variant)
curl http://127.0.0.1:8000/.well-known/oauth-authorization-server/mcp
# /readyz probes Doorkeeper introspection in oauth mode
curl http://127.0.0.1:8000/readyz
# {"status":"ready","redmine":"ok","checks":{"introspection":"ok"},"checked_at":"..."}
If /readyz reports "status":"not_ready" with "introspection":"misconfigured",
the introspection client is misconfigured — recheck Step 2 (confidential,
allow_token_introspection applied). "unreachable" means the endpoint could
not be reached at all (network, REDMINE_URL, or Redmine itself down).
Endpoints exposed in oauth mode
| Endpoint | Standard | Purpose |
|---|---|---|
GET /.well-known/oauth-protected-resource{mcp_path} | RFC 9728 §3.1 | Tells clients where to find the authorization server |
GET /.well-known/oauth-authorization-server{mcp_path} (or the root path — see below) | RFC 8414 | Advertises Redmine’s Doorkeeper endpoints, scoped to this MCP resource |
POST /revoke | RFC 7009 | Revokes an OAuth2 token (proxies to Redmine’s /oauth/revoke, and purges the token from this server’s introspection cache) |
Redmine ships the Doorkeeper
gem for OAuth2 but does not serve the RFC 8414 discovery document itself; this
server serves path-scoped metadata on Redmine’s behalf, pointing
authorization_endpoint/token_endpoint/revocation_endpoint at Redmine’s
real /oauth/authorize, /oauth/token, and /oauth/revoke. POST /revoke
is separate from revocation_endpoint: it is a narrow, field-allowlisting
proxy mounted on this server itself, for clients that expect a revocation
endpoint at the resource server rather than the authorization server. It
accepts only application/x-www-form-urlencoded bodies up to 8 KiB, and
forwards only token/token_type_hint plus the caller’s own client
authentication (an Authorization: Basic header, or client_id/
client_secret form fields) — never this server’s own introspection
credential.
Cursor and self-AS discovery
Some MCP clients (for example Cursor) discover the authorization server by
probing its canonical RFC 8414 well-known location, /.well-known/oauth-authorization-server
(no suffix). Because the default redmine discovery mode names Redmine as the
authorization server and serves the document at the /mcp-suffixed path only,
those clients fail discovery.
Set REDMINE_OAUTH_DISCOVERY_AS=self to have this server advertise itself as
the authorization server instead: the RFC 8414 document moves to the root
well-known path with issuer = REDMINE_MCP_BASE_URL, and the suffixed path
404s. authorization_endpoint/token_endpoint/revocation_endpoint still
point directly at Redmine either way — this server issues no tokens itself.
This mode is opt-in; the default redmine mode is unchanged.
REDMINE_OAUTH_DISCOVERY_AS=self
If your Redmine OAuth Application (Step 1) enables only a subset of
permissions, set REDMINE_MCP_SCOPES to that subset (space-separated) so the
advertised scopes_supported matches what the Application can grant and
consent does not fail with invalid_scope:
REDMINE_MCP_SCOPES="view_project view_issues add_issues edit_issues"
REDMINE_MCP_SCOPES is a subset of the scopes this server already advertises
(the Redmine permissions its tools actually use), not a mirror of the
Application’s full permission list; an out-of-set entry refuses to boot with
the full accepted set listed in the error. admin is never advertised —
tokens with admin scope bypass Redmine’s own per-permission checks, so
advertising it by default would make every consent screen request full
administrative access.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Every request is 401 with no Authorization header sent | Client isn’t attaching a bearer token | Confirm the client actually obtained one from Redmine and is sending Authorization: Bearer <token> |
401 with error="invalid_token" | Token is inactive, revoked, or expired per introspection | Re-authorize; test directly with the Step 2c curl command against the real token |
Every request is 503 | Introspection endpoint unreachable, misconfigured, or unmounted | Re-run Step 2c’s verification curl; check REDMINE_URL and the introspection credentials |
/readyz reports "introspection":"misconfigured" | Introspection client rejected by Doorkeeper | Recheck Step 2: the client must be confidential and allow_token_introspection (2b) applied |
/readyz reports "introspection":"unreachable" | Introspection endpoint unreachable | Check REDMINE_URL and network connectivity from this server to Redmine |
Discovery endpoints 404 | Not in oauth mode, wrong path, or the wrong discovery mode’s canonical path | Ensure REDMINE_AUTH_MODE=oauth; the suffixed path 404s in self discovery mode and vice versa |
Server refuses to start naming REDMINE_INTROSPECT_CLIENT_ID/_SECRET | oauth mode requires them | Register the introspection client per Step 2 |
Server refuses to start naming REDMINE_MCP_SCOPES | An entry is not in the current mode’s advertised set | Use one of the scopes the error message lists as accepted |
Server refuses to start with a Conflict naming the transport | oauth mode was requested on stdio | Use --transport http |
| Token works directly against Redmine but not through this server | Wrong REDMINE_URL, or a proxy stripping the Authorization header | In Docker, use the internal hostname (e.g. http://redmine:3000); check for a proxy that drops Authorization |
oauth-proxy: this server as the authorization server
Plain oauth mode requires every MCP client to be hand-registered in
Redmine’s admin panel with its exact redirect URI — fine for a known client
list, awkward for a client that expects to discover and register itself.
REDMINE_AUTH_MODE=oauth-proxy closes that gap: MCP clients discover this
server as their authorization server, register via RFC 7591 Dynamic Client
Registration, and run authorization-code + PKCE against this server’s own
/authorize and /token, which in turn drive a second, independent
authorization-code + PKCE flow against Redmine using one
operator-registered upstream OAuth application. Redmine’s own authorize
page remains the consent screen — this server renders no HTML and sets no
cookies in any mode.
The token an MCP client ends up holding is an opaque rup_at_-prefixed
handle minted by this server, never the upstream Redmine token: presenting
the upstream token directly to /mcp in this mode is always 401. A proxy
token resolves to the upstream token on every request and is verified via
the same RFC 7662 introspection oauth mode uses, so scope enforcement and
INSUFFICIENT_SCOPE denial behave identically once a client holds one.
Configure
REDMINE_AUTH_MODE=oauth-proxy
REDMINE_URL=https://redmine.example.com
REDMINE_MCP_BASE_URL=https://mcp.example.com # this server's own public URL
# Introspection client — same requirements as oauth mode (see Steps 1-2
# above): a confidential Redmine OAuth application with
# allow_token_introspection enabled.
REDMINE_INTROSPECT_CLIENT_ID=<Client ID from Redmine>
REDMINE_INTROSPECT_CLIENT_SECRET=<Client Secret from Redmine>
# Optional: a dedicated upstream OAuth application for the authorization-code
# flow this server will run against Redmine on a client's behalf. Defaults to
# the introspection client above when both are left unset; setting one
# without the other is a startup Conflict. The application needs the
# authorization-code grant and ${REDMINE_MCP_BASE_URL}/auth/callback
# registered as its redirect URI. Also enable use_refresh_token on this
# application if you want a session to survive the upstream access token's
# expiry without a browser — see "Refresh, revocation, and no-refresh-token
# deployments" below.
# REDMINE_OAUTH_CLIENT_ID=<upstream Client ID>
# REDMINE_OAUTH_CLIENT_SECRET=<upstream Client Secret>
# Optional: which redirect URIs a DCR client may register (comma/whitespace
# separated scheme://host[:port]/path* patterns, or the literal "*" for no
# restriction beyond http(s)-only). Default: loopback only
# (http://localhost:*, http://127.0.0.1:*) — the right choice for CLI/desktop
# MCP clients and the only setting that needs no further thought.
# REDMINE_MCP_ALLOWED_CLIENT_REDIRECT_URIS=https://your-hosted-client.example.com/callback
REDMINE_OAUTH_DISCOVERY_AS does not apply here: this server always
advertises itself as the authorization server in oauth-proxy mode, at the
root well-known path. Explicitly setting it to redmine is a startup
Conflict. REDMINE_MCP_JWT_SIGNING_KEY/_FILE, if set, is accepted and
ignored with a startup WARN — proxy tokens here are opaque server-side
handles, never signed JWTs, so there is nothing for a signing key to do.
oauth-proxy, like oauth, requires --transport http.
Register a client and verify discovery
cargo run -- --transport http
# RFC 8414 authorization-server metadata, at the root path (not the
# /mcp-suffixed one — that 404s in this mode).
curl http://127.0.0.1:8000/.well-known/oauth-authorization-server
# {"issuer":"...","authorization_endpoint":"...../authorize",
# "token_endpoint":"...../token","registration_endpoint":"...../register",
# "token_endpoint_auth_methods_supported":["none"], ...}
# RFC 7591 Dynamic Client Registration — no credential needed.
curl -X POST http://127.0.0.1:8000/register \
-H 'content-type: application/json' \
-d '{"redirect_uris": ["http://localhost:4000/callback"]}'
# {"client_id":"...","token_endpoint_auth_method":"none",
# "redirect_uris":["http://localhost:4000/callback"], ...}
# Note: no client_secret is ever issued — every client registered here is
# public (PKCE plus the redirect allowlist is the real control).
A redirect URI outside the allowlist is rejected with
{"error": "invalid_redirect_uri"}; malformed or unsupported client
metadata (e.g. "token_endpoint_auth_method": "client_secret_post", which
this server never accepts) is {"error": "invalid_client_metadata"}.
Endpoints exposed in oauth-proxy mode
| Endpoint | Standard | Purpose |
|---|---|---|
GET /.well-known/oauth-protected-resource{mcp_path} | RFC 9728 §3.1 | Names this server as the resource and points at itself as the authorization server |
GET /.well-known/oauth-authorization-server (root only) | RFC 8414 | Advertises this server’s own /authorize, /token, /register, /revoke |
POST /register | RFC 7591 | Dynamic Client Registration — open, no initial access token, every client public |
GET /authorize | RFC 6749 §3.1 | Validates the client/redirect URI/PKCE, then redirects to Redmine’s own /oauth/authorize behind a second, independently generated upstream PKCE pair |
GET /auth/callback | — (this server’s own) | Where Redmine redirects back to; exchanges Redmine’s code for an upstream token and redirects to the client with this server’s own code |
POST /token (grant_type=authorization_code) | RFC 6749 §4.1.3 | Redeems that code (mandatory S256 PKCE) for a rup_at_ proxy access token — and a rup_rt_ proxy refresh token, if the upstream application issued one |
POST /token (grant_type=refresh_token) | RFC 6749 §6 | Rotates: refreshes upstream and returns a brand-new rup_at_/rup_rt_ pair, invalidating the presented refresh token |
POST /revoke | RFC 7009 | Accepts a rup_at_/rup_rt_ token, deletes it (and its sibling) locally first, then revokes the upstream Redmine token — no client authentication, since every client here is public |
Refresh, revocation, and no-refresh-token deployments
A rup_at_ proxy access token never outlives the upstream Redmine token it
resolves to. When the authorization-code exchange or a refresh grants one, a
rup_rt_ proxy refresh token comes with it — present that at /token with
grant_type=refresh_token and client_id before the access token expires to
get a new pair without a browser. Refresh tokens rotate: each one works
exactly once, and presenting an already-rotated one again is treated as a
stolen credential — the whole session (including the newest pair) is killed
and revoked upstream immediately.
If your Redmine OAuth application does not have use_refresh_token
enabled, Doorkeeper never issues a refresh token, /token’s response has
no refresh_token field, and this server logs one WARN per process saying
so. The proxy access token still works — for as long as Redmine’s own
(typically 2 hour) access-token lifetime — but once it expires the client
must send its user through /authorize again, in a browser, exactly as if
this were the first sign-in. Enable use_refresh_token on the upstream
application to avoid that.
POST /revoke in this mode always answers 200, per RFC 7009, whether the
token was ours, already gone, or never issued. A revoked access token stops
authenticating on the very next request; a revoked refresh token also kills
the access token it was issued alongside.
Known limitation: in-memory, single-replica state
Every DCR registration, in-flight authorization transaction, authorization
code, and issued proxy token lives in this process’s memory only — nothing
is persisted, and nothing is shared between replicas. A restart drops
everything: clients re-register and re-authorize, driven by the same 401
challenge they already handle. Behind a load balancer with more than one
replica, a flow that starts on one instance and continues on another (e.g.
/authorize on instance A, /auth/callback on instance B) fails. Bind
oauth-proxy to a single instance, or route by a sticky session, until a
durable backend exists.
Known limitation: no audience binding
Doorkeeper introspection returns no aud claim, so this server cannot verify
that a presented token was issued for it specifically rather than for
another OAuth client of the same Redmine instance. Any holder of any valid
Redmine access token can drive this server as that user. This is not fixable
without changes upstream in
Redmine/Doorkeeper; it is bounded by the fact that the token grants no more
against this server than it already grants directly against Redmine’s own
REST API. See docs/adr/0008-oauth-resource-server.md.
legacy-per-user authentication
REDMINE_AUTH_MODE=legacy-per-user — each HTTP request carries its own
Redmine API key instead of the server holding one shared credential. This is
the operator-facing summary of how the mode works and what it does and does
not protect against.
How it works
Every request must carry the key it wants to act as, in the
X-Redmine-API-Key header — the same header legacy mode’s single
credential is sent under, just supplied per request instead of once at
startup:
X-Redmine-API-Key: <the caller's Redmine API key>
Authorization: Bearer/Basic are never accepted or forwarded in this mode.
Bearer-token handling belongs to a future oauth mode, where a token is
validated, not blindly relayed — accepting one here would be a strictly
worse, unvalidated version of that mode.
The header is read once, at the start of the tool call, turned into a
Credential::ApiKey that lives only for that one request, and used to scope
exactly one Redmine client call. Nothing caches it, nothing reuses it for a
later request from the same connection, and no ambient/default credential
ever substitutes for a missing header — the request that didn’t bring a key
gets nothing, not the last key seen.
A request that arrives with no header, an empty header, a header that isn’t visible ASCII, a header over 512 bytes, or the header sent more than once is rejected before any request reaches Redmine, with a protocol-level error naming the problem (never the header’s value).
initialize and tools/list succeed with no credential header — the
credential check happens only at the point a tool actually needs Redmine, so
a client can discover the tool inventory before it has a key configured.
Nothing Redmine-shaped is reachable that way: tool descriptions, schemas, and
server metadata (not Redmine data) are all tools/list exposes.
REDMINE_PER_USER_TRUST_PROXY
This mode refuses to start unless REDMINE_PER_USER_TRUST_PROXY=true is set.
Setting it is the operator’s explicit attestation that:
- a TLS-terminating reverse proxy sits in front of this server, so
X-Redmine-API-Keynever crosses a network in cleartext, and - that proxy does not forward a client-supplied
X-Forwarded-Proto(or equivalent) that this server would otherwise have to trust blindly.
This server cannot verify either claim. There is no way, from inside the
process, to tell a TLS-terminated request forwarded correctly from a plaintext
one forwarded by a misconfigured or absent proxy. Setting the variable without
actually having that proxy in place means every request’s API key crosses the
network in the clear. Startup logs an unmissable WARN naming this assumption
every time the mode is enabled — that log line is the whole enforcement
mechanism beyond the attestation itself.
This mode also refuses to start on the stdio transport (Conflict): there
is no per-request header on stdio to carry a credential over, so the mode is
meaningless there.
REDMINE_PER_USER_AUDIT_IDENTITY
REDMINE_PER_USER_AUDIT_IDENTITY=true logs one line per tool call:
per-user request caller=<16 hex chars> request_id=<...>
caller is not the API key, not a Redmine login, and not reversible to
either: it is a SipHash over the key bytes, keyed by a random value chosen
once per process start (std::collections::hash_map::RandomState). The same
key produces the same fingerprint for the lifetime of one server process, so
requests from the same caller can be correlated within a run — but the
fingerprint changes on every restart and cannot be looked up against a
rainbow table, which is the privacy-correct shape for an audit breadcrumb.
This server never resolves the fingerprint back to a Redmine identity (that
would cost an extra /users/current call per tool call, doubling Redmine
traffic, for a log line).
Threat model
- In scope, mitigated structurally: one caller’s key can never scope
another caller’s request.
Scoped(the only handle with a Redmine API surface) owns one credential for its entire lifetime and is built fresh per request; there is no shared, mutable, ambient credential slot for a bug to mis-point. - In scope, mitigated by testing: the API key must never reach a log
line, an error message, or a response body. Inbound HTTP headers are not
marked
set_sensitiveby the underlying HTTP stack the way this server’s own outboundX-Redmine-API-Keyheader is, so a straytracing::debug!(? parts)anywhere on the request path would print it verbatim. This is covered by an end-to-end test that captures real log output atTRACEacross success and failure paths and asserts on the captured bytes, not on the absence of a source-code pattern. - Accepted risk —
REDMINE_PER_USER_TRUST_PROXYis unverifiable: see above. Mitigated only by the explicit attestation requirement, the startupWARN, and this document. - Accepted risk —
tools/list/get_mcp_server_infoare unauthenticated: an unauthenticated caller can learn the tool inventory, server version, and read-only/plugin flags. None of it is Redmine data, and gating discovery behind a credential would break clients that probe the tool list before they are configured with a key. - Accepted risk —
/files/{uuid}has no credential check in this mode: the UUID in aget_redmine_attachment-produced URL is an unguessable, TTL-bounded bearer capability, and the route exists specifically so a browser (or any non-MCP HTTP client) can fetch the bytes from a plain URL with no Redmine credential of its own. Binding that route to the fetching request’sX-Redmine-API-Keywould defeat that use case entirely, and disabling the route would breakget_redmine_attachmentoutright. The route is marked with aSECURITY:comment at its definition (src/transport/http.rs) recording this trade-off.
Out of scope
oauth and oauth-proxy are separate modes; nothing here changes how they
work.
Troubleshooting
Operator-facing symptoms and their causes.
403 on /mcp
Symptom: every request to the streamable-HTTP endpoint gets a bare
403, before any MCP handshake happens.
Cause: the Host (and, for browser-originated requests, Origin)
allowlist rejected the request. REDMINE_MCP_ALLOWED_HOSTS is derived
automatically from SERVER_HOST: a loopback bind (the default) allows
localhost/127.0.0.1/::1; a non-loopback bind (0.0.0.0, a real
interface address) requires PUBLIC_HOST so the server knows the hostname
clients actually use — startup refuses to guess. REDMINE_MCP_ALLOWED_ORIGINS
is a separate, explicit list for browser clients; "*" is rejected there
outright, since it would let any website drive the server through a user’s
browser.
Fix: set PUBLIC_HOST (and PUBLIC_PORT/PUBLIC_SCHEME if a proxy
changes them) to the hostname clients connect through, or list the exact
values in REDMINE_MCP_ALLOWED_HOSTS/REDMINE_MCP_ALLOWED_ORIGINS.
REDMINE_MCP_ALLOWED_HOSTS=* disables Host validation entirely and is a
last resort — it removes the only signal that distinguishes a legitimate
request from DNS rebinding, and is only safe when a reverse proxy in front
of this server already validates Host itself.
413
Symptom: a request with a large body (typically upload_file sending
content_base64) is rejected before reaching the tool.
Cause: REDMINE_MCP_MAX_REQUEST_BODY_BYTES (default 4 MiB, range 1 KiB
to 68 MiB), enforced mid-stream inside rmcp’s own HTTP transport, not by a
separate body-limit middleware.
Fix: read max_inline_upload_bytes from get_mcp_server_info: it is the
largest file that fits inline. Raise the limit if the deployment needs larger
inline uploads (68 MiB fits a 50 MiB file; each in-flight request can buffer
up to that many bytes), or have the client send file_path/a smaller file
instead of inlining base64.
401 with a WWW-Authenticate header
Symptom: a bearer-authenticated call is rejected with 401, and the
response carries a WWW-Authenticate: Bearer resource_metadata="..." header
pointing at a discovery document.
Cause: this is the intended discovery signal, not a misconfiguration —
the client is expected to fetch that
/.well-known/oauth-protected-resource URL, follow it to the authorization
server’s own /.well-known/oauth-authorization-server metadata, and
(re-)authenticate. In oauth mode that document names Redmine’s own
/oauth/authorize//oauth/token//oauth/revoke endpoints; in
oauth-proxy mode it names this server’s own /authorize//token/
/register//revoke endpoints instead (with
token_endpoint_auth_methods_supported: ["none"], since every
dynamically-registered client is public).
Fix: if the client is not following discovery at all, check its MCP
client library supports RFC 9728 discovery; if it is authenticating against
the wrong endpoint set, confirm REDMINE_AUTH_MODE (oauth vs
oauth-proxy) matches what the client was configured to expect.
INSUFFICIENT_SCOPE, or a tool is missing from tools/list
Symptom: a tool call returns an in-band {code: "INSUFFICIENT_SCOPE"}
error, or a tool the caller expects simply does not appear in tools/list.
Cause: both are the same per-tool scope table (TOOL_SCOPES) applied
twice — once to filter tools/list down to what the held token could
successfully call, and once to actually enforce a call. A token missing a
required scope never sees the tool listed, and a call to it (by name,
bypassing the list) gets the in-band error instead of a silent no-op.
Fix: re-authorize with the missing scope(s), or use a different tool.
get_mcp_server_info’s oauth_scope_enforcement field confirms whether
enforcement is on at all.
MISCONFIGURED on an agile or tag parameter
Symptom: setting story_points/agile_sprint_id/agile_position on
update_redmine_issue, or tag_list on create_redmine_issue/
update_redmine_issue, returns {code: "MISCONFIGURED"} instead of
reaching Redmine.
Cause: the corresponding plugin flag (REDMINE_AGILE_ENABLED for the
agile fields, REDMINE_TAGS_ENABLED for tag_list) is off. This is a
deliberate in-band error rather than a hidden parameter or a de-registered
tool: update_redmine_issue/create_redmine_issue themselves are always
registered, and only these specific parameters are gated, so hiding the
whole tool would be the wrong granularity.
Fix: set the flag if the plugin is actually installed on the target Redmine, or omit the parameter.
READ_ONLY
Symptom: a write call returns {code: "READ_ONLY"}, or a write-only
tool has vanished from tools/list entirely.
Cause: REDMINE_MCP_READ_ONLY=true. Tools that are always a write
(create_redmine_issue, upload_file, manage_time_entry, …) are removed
from the router outright, so calling one by name fails as “tool not found”.
Tools with a mix of read and write actions (manage_issue_relation,
manage_product, manage_contact, manage_document, …) stay registered —
their read actions (list/get) keep working, and only the write actions
refuse with READ_ONLY.
Fix: this is working as configured; disable read-only mode if the deployment is meant to allow writes.
429
Symptom: a call to /mcp or to an oauth-proxy flow route (/register,
/authorize, /auth/callback, /token, /revoke) gets 429 {"error": "rate_limited"} with a Retry-After header.
Cause: REDMINE_MCP_RATE_LIMIT_ENABLED (on by default) applies two
independent limits: a standard class on /mcp//files/{uuid}
(REDMINE_MCP_RATE_LIMIT_RPS/_BURST, default 10 rps / burst 40) and a
much stricter class on the oauth-proxy flow routes
(REDMINE_MCP_RATE_LIMIT_AUTH_RPS/_BURST, default 1 rps / burst 10),
since those routes are attacker-attractive (registration, token exchange).
A single legitimate client can hit either ceiling during a burst of calls or
a multi-step DCR/authorization flow, with no proxy involved at all.
Fix: raise the relevant REDMINE_MCP_RATE_LIMIT_*/_AUTH_* variable if
the deployment’s legitimate traffic needs a higher ceiling.
Everything gets 429 behind my reverse proxy
Symptom: every client behind a load balancer, NAT gateway, or
TLS-terminating reverse proxy starts getting 429 from /mcp, even though
no single client is sending anywhere near the configured rate.
Cause: the rate limiter keys by the request’s peer IP address only — it
deliberately never reads X-Forwarded-For or X-Real-IP, since either
header is attacker-controllable input a client could set itself to bypass
the limiter entirely. If every client’s connection to this server arrives
from one address (a proxy’s own egress IP), they all share one bucket.
Fix: rate-limit at the proxy, which can see real client addresses,
rather than raising this server’s limits to compensate — a higher limit
here would also raise the ceiling for a single misbehaving client sharing
that address. If the deployment authenticates with oauth/oauth-proxy
bearer tokens, /mcp requests already key by token digest instead of IP
when a token is present, which sidesteps this for that route; the strict
class (/register &c.) and any legacy-mode request with no bearer token
still key by IP only.
INTERNAL
Symptom: a tool call returns {code: "INTERNAL", retryable: false}
with a generic “the server encountered an internal error” message.
Cause: the tool’s handler panicked. The panic is caught before it can
take down the request (and is logged server-side via tracing::error! with
the tool name and panic message — never returned to the caller), but the
underlying bug is still there.
Fix: this is a bug report, not a retry — the same call will panic again. File it with the tool name, arguments (redacted of secrets), and the server-side log line.
A stdio client sees corrupt or unparseable JSON-RPC output
Symptom: an stdio-transport client fails to parse a line from the server’s stdout, or the connection desyncs entirely.
Cause: on stdio, stdout is the JSON-RPC wire — any stray println! or
library that writes to stdout corrupts the stream for every subsequent
message. The project guards against this with a deny-level clippy lint on
print!/println! and an end-to-end test that spawns the real binary and
asserts every stdout line is valid JSON, so a regression here should not
reach a release. If it does anyway, it points at a new dependency or code
path that writes to stdout directly.
Fix: run with --transport http as a workaround while filing the issue;
the HTTP transport has no such constraint since stdout isn’t the wire.
oauth-proxy clients must re-register after a restart
Symptom: every dynamically-registered OAuth client (and every active authorization session) stops working immediately after the server process restarts, and clients have to go through Dynamic Client Registration again.
Cause: by design (see the ADR for oauth-proxy’s authorization-server
role), all proxy state — registered clients, authorization codes, refresh
tokens — is in-memory only, with no persistence and no shared state across
replicas. A restart drops all of it.
Fix: none needed — this is the same 401 challenge-and-reauthorize flow
a client already implements for ordinary token expiry, so a well-behaved
MCP client recovers on its own. Avoid restarting the process during a burst
of user-facing authorization flows if that’s disruptive; there is no way to
preserve state across a restart in this mode today.
/register returns 503 temporarily_unavailable
Symptom: POST /register answers 503/temporarily_unavailable with a
Retry-After: 5 header, even though the deployment has not registered
anywhere near 1000 real clients.
Cause: the client registry is at its 1000-entry capacity, and every
entry is either recently used or holds a live proxy access/refresh token
(see oauth/proxy/store.rs and the ADR for oauth-proxy’s
authorization-server role). Unlike the other proxy stores, this one never
evicts a live-or-recent registration just to make room for a new one,
since /register is intentionally unauthenticated and an attacker
flooding it must not be able to knock a legitimate, mid-authorization
client out of the registry.
Fix: retry after a short wait, or wait out CLIENT_IDLE_TTL (one hour):
a registration idle that long with no live session becomes reclaimable on
the next capacity-pressure /register. A deployment that sustains 1000
concurrent registered clients is not a configuration this mode supports
today; there is no registry-size override to tune.
/authorize answers client_id is not a registered client after a long idle period
Symptom: a client that registered successfully some time ago gets a
plain 400 from /authorize naming an unknown client_id, with no prior
restart or /revoke call.
Cause: the registry was at capacity when some other client registered,
and this client’s registration had gone unused (no /authorize, code
redemption, or refresh) for over CLIENT_IDLE_TTL (one hour) with no live
session — so it was reclaimed to make room, per the policy described above.
Fix: re-register (POST /register) and restart the authorization flow
from scratch — the same recovery as the restart case above. A client that
authorizes at least once an hour never triggers this.
A refresh token “stopped working”
Symptom: a client that stored an old refresh token gets invalid_grant
on /token, and its whole session (not just that refresh) is now dead.
Cause: oauth-proxy refresh tokens rotate on every use, and reusing an
already-rotated (retired) token is treated as evidence of token theft or a
client bug that duplicated a request — the server responds by revoking the
entire session upstream, not just rejecting the stale token. The same
containment applies to a refresh token that is still current: redemption
is single-use and atomic, so two requests presenting the same refresh token
at the same time are indistinguishable from an attacker racing the
legitimate client — both fail and the session dies.
Fix: the client must always use the most recent refresh token returned, never a cached older one, and must serialize its refreshes — never fire a speculative parallel refresh alongside one already in flight; if this happens after a genuine crash mid-refresh (the client can’t tell if its own request succeeded), the fix is to re-authorize from scratch, not to retry the old refresh token.
/token returns server_error in oauth-proxy mode
Symptom: POST /token with grant_type=authorization_code answers
500/server_error, even though the authorization code itself was valid.
Cause: the upstream-session store is at its 10 000-entry capacity. Every proxy store degrades by refusing new state rather than evicting a live session, so this is a saturated deployment, not a bug. Sessions expire and are swept lazily on the next successful authorization: a session with no refresh token disappears at its upstream access token’s own expiry, and a refresh-bearing one after 30 days of last use.
Fix: none needed for a transient spike — retry after the next authorization sweeps some expired sessions. A deployment that sustains 10 000 concurrent sessions is not a configuration this mode supports today; there is no session-TTL override to tune.
UNEXPECTED_RESPONSE on get_redmine_attachment
Symptom: get_redmine_attachment returns {code: "UNEXPECTED_RESPONSE", retryable: false} instead of downloading the file, even though the
attachment’s metadata looked fine.
Cause: the attachment’s content_url (or a redirect Redmine sent while
fetching it) points at a different origin than REDMINE_URL — different
scheme, host, or port. This client only ever sends its credential to the
configured Redmine origin, so a Redmine that serves attachments from a CDN
or that redirects http to https is refused rather than leaking the
credential to that other origin.
Fix: set REDMINE_URL to the origin attachments are actually served
from (e.g. the https form if Redmine redirects to it).
Attachment 404
Symptom: GET /files/{uuid} (or get_redmine_attachment referencing a
previously uploaded id) returns 404 not found for an id that worked
earlier.
Cause: attachments expire after ATTACHMENT_EXPIRES_MINUTES (default
60 minutes) and are swept from disk by a periodic cleanup task
(CLEANUP_INTERVAL_MINUTES, default every 15 minutes, disabled entirely by
AUTO_CLEANUP_ENABLED=false). This store is meant to bridge an upload to a
Redmine attach call, not to serve as long-term file storage.
Fix: re-upload if the file is still needed; if attachments need a
longer lifetime for a specific workflow, raise
ATTACHMENT_EXPIRES_MINUTES.
PUBLIC_HOST missing at startup in a container
Symptom: the container exits immediately on start with a PUBLIC_HOST
config error, even though the image’s default SERVER_HOST=0.0.0.0 looks
correct for a container.
Cause: a non-loopback bind (which 0.0.0.0 is) means the server cannot
derive a safe Host allowlist by itself — it needs to know the hostname
clients will actually use to reach it, which only the operator knows for a
given deployment.
Fix: set PUBLIC_HOST (the docker-compose.yml example already
requires it, defaulting to localhost for local use). Set it to the real
hostname or IP the container is reachable at in production.
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK missing at startup
Symptom: the process exits immediately with a
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK config error, on a legacy auth
mode deployment that previously started fine on a non-loopback SERVER_HOST.
Cause: a shared REDMINE_API_KEY authenticates this server to Redmine,
not the caller to this server — anyone who can reach a non-loopback bind acts
as that Redmine account. This used to only log a WARN; it is now a startup
error so the risk cannot go unnoticed. This is a breaking change on upgrade
for any existing legacy + non-loopback HTTP deployment.
Fix: pick one — bind loopback (SERVER_HOST=127.0.0.1, the default), put
an authenticating proxy in front, switch to
REDMINE_AUTH_MODE=legacy-per-user/oauth/oauth-proxy, or set
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=true to accept the risk. See
docs/configuration.md#exposing-the-server-on-a-network.
Redmine unreachable
Symptom: /readyz returns 503, but the process is otherwise running
and /livez still returns 200.
Cause: this is the intended split — /livez never checks Redmine (a
dependency blip must not be able to trigger a container restart storm),
while /readyz runs a TTL-cached probe (HEALTH_INTROSPECTION_TTL_SECONDS,
default 30s) against Redmine (or, in oauth mode, the introspection
endpoint) and reports 503 while it stays unreachable.
Fix: point an orchestrator’s restart policy at /livez and its
traffic-routing/readiness policy at /readyz separately, exactly as
distinguished by their names; a 503 on /readyz alone should not restart
the container, only pull it out of rotation until Redmine recovers.
UNEXPECTED_RESPONSE or a 500 under OAuth
Symptom: a call in oauth/oauth-proxy mode fails with
UNEXPECTED_RESPONSE and a Redmine 500, for one user only.
Cause: Redmine before 6.1.6/7.0.3 answers an OAuth request from a locked
or inactive user with an internal 500 instead of 401. This server does not
retry a 500 made with a bearer token, because the failure is deterministic;
a 502, 503 or 504 is still retried.
Fix: check that the Redmine account is active, or upgrade Redmine to 6.1.6/7.0.3 or later.
VALIDATION_FAILED “Assignee is invalid” on create
Symptom: create_redmine_issue fails with VALIDATION_FAILED and
Assignee is invalid, although the call set no assignee.
Cause: the project or category has a default assignee who can no longer be assigned issues. Redmine before 6.1.5/7.0.2 fails the create instead of skipping the default.
Fix: pass assigned_to_id explicitly, change the default assignee in
Redmine, or upgrade to 6.1.5/7.0.2 or later.
Minimum safe Redmine patch levels
Earlier patch levels leak data through endpoints this server calls:
| Series | Run at least | What leaks on earlier patch levels |
|---|---|---|
| 6.0 | 6.0.12 | get_redmine_issue with include_children exposes subjects of issues the caller cannot see (fixed in 6.0.12); manage_issue_relation list bypasses issue visibility (fixed in 6.0.11) |
| 6.1 | 6.1.6 | Token scopes are ignored in project visibility (fixed in 6.1.6); include_children leak (6.1.5); relations (6.1.4) |
| 7.0 | 7.0.3 | Token scopes are ignored in project visibility (fixed in 7.0.3); include_children leak (7.0.2); relations (7.0.1) |
Redmine before 6.0 is not supported.
This server cannot read your Redmine version: Redmine does not expose it over
REST. Set REDMINE_VERSION (see configuration) to what
you run, and startup logs a WARN when it is below the floor of its series.
The value is declared, so keep it current after an upgrade.
Tool reference
Generated from the live router by cargo test -p ruprogress-mcp docs_reference (tests/tool_reference_doc.rs) — do not hand-edit. Run with UPDATE_DOCS=1 to regenerate after a tool’s schema changes.
Every tool this build can register is listed, including the ones behind a plugin or admin flag; a tool without a “Gated by” line is registered unconditionally. “Kind” is write for tools read-only mode always hides, partial for tools with a mix of read/write actions, and read otherwise. “Required scopes” is this server’s oauth/oauth-proxy scope-enforcement requirement for the common case; see docs/tool-contract.md for the argument-sensitive exceptions.
Meta
get_mcp_server_info
Return the MCP server’s version, read-only/auth mode, plugin flags, and the identity of the authenticated Redmine user (or null if Redmine is unreachable). Use this once at the start of a session to learn what the server can do before calling other tools. Plugin-gated tools (e.g. get_checklist) are absent from tools/list unless their plugin_flags entry is on.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: active_sessions, auth_mode, autofill_required_custom_fields, current_user, max_inline_upload_bytes, oauth_scope_enforcement, plugin_flags, read_only_mode, redmine_version, redmine_version_advisory, registered_clients, required_custom_field_defaults_count, server_version, transport
Discovery
list_redmine_trackers
List every tracker (Bug, Feature, …) configured on the Redmine instance. Use this to resolve a tracker name to an id before creating an issue, when no project is known yet. Prefer list_project_trackers when a project id is available, since a project can restrict which trackers it accepts. An empty list means no trackers are configured — do not retry with the same arguments.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: trackers
list_project_trackers
List the trackers enabled for a specific project (numeric id or slug identifier). Use this instead of list_redmine_trackers whenever a project is known, since a project’s settings can restrict which trackers it accepts. An empty list means no trackers are enabled for this project — do not retry with the same arguments.
- Kind: read
- Required scopes:
view_project
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | The project to list enabled trackers for: numeric id or slug |
Output: object: trackers
list_redmine_issue_statuses
List every issue status (New, In Progress, Closed, …) configured on the Redmine instance, including which ones count as closed. Use this to resolve a status name to an id before filtering or updating issues. An empty list would mean the instance has none configured — do not retry with the same arguments.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: issue_statuses
list_redmine_issue_priorities
List every issue priority (Low, Normal, High, …) configured on the Redmine instance. Use this to resolve a priority name to an id before creating or updating an issue. An empty list means no priorities are configured — do not retry with the same arguments.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: issue_priorities
list_redmine_users
List Redmine user accounts, optionally filtered by name or group. Requires an admin credential. Use this to resolve a user’s name to an id before assigning an issue. If this returns a FORBIDDEN error, the credential is not an admin — do not retry; call get_current_user to check your own identity, or ask the user for an admin account.
- Kind: read
- Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
group_id | integer | null | no | Restrict to members of this group. |
limit | integer | null | no | Page size, clamped to 1-100. Defaults to 25. |
name | string | null | no | Filter by name: matches login, firstname, lastname, or a |
offset | integer | null | no | Offset of the first result. Defaults to 0. |
Output: object: pagination, users
get_current_user
Retrieve the currently authenticated user’s profile (id, login, name, mail, admin flag). Use this to resolve “me” or to check whether the credential is an admin before calling admin-only tools like list_redmine_users.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: admin, created_on, firstname, id, last_login_on, lastname, login, mail
list_redmine_queries
List the current user’s saved (custom) issue queries. Redmine has no API to create, update, or delete saved queries, so this is the only query-related tool — do not look for a manage_redmine_query tool. Use this to resolve a saved query’s name to an id. An empty list means the user has no saved queries.
- Kind: read
- Required scopes:
view_issues
Parameters
(no parameters)
Output: object: pagination, queries
Projects
list_redmine_projects
List all accessible projects in the Redmine instance. Use this first to resolve a project’s numeric id or identifier before calling project- or issue-scoped tools. An empty list means the credential cannot see any projects — do not retry with the same arguments.
- Kind: read
- Required scopes:
view_project
Parameters
(no parameters)
Output: object: pagination, projects
list_project_issue_custom_fields
List issue custom fields configured for a project, including allowed values and tracker bindings. Use this before create_redmine_issue/update_redmine_issue to discover which fields a project accepts. Requires an admin credential (this endpoint is admin-only regardless of field sensitivity). is_required is not authoritative: workflow rules can still require a field reported as optional.
- Kind: read
- Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | The project to list issue custom fields for: numeric id or slug |
tracker_id | integer | null | no | Restrict output to fields applicable to this tracker id. |
Output: object: custom_fields
summarize_project_status
Summarize project status: recent issue activity, status/priority/assignee breakdowns, and open/closed totals over a configurable time window. Use this when the user wants a written project health summary, not a raw issue list. The breakdowns are computed over a capped recent-issue sample (see sample_truncated), not necessarily every issue.
- Kind: read
- Required scopes:
view_project,view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
days | integer | null | no | Number of days of history to analyze for the recent-activity |
project_id | integer | yes | The project to summarize. |
Output: object: analysis_period_days, assignee_breakdown, priority_breakdown, project_id, project_name, recent_activity, sample_size, sample_truncated, status_breakdown, totals
list_redmine_versions
List versions (roadmap milestones) for a Redmine project. Use this to discover a target version’s id before filtering issues by fixed_version_id or calling manage_redmine_version. An empty list means the project has no versions configured — do not retry with the same arguments.
- Kind: read
- Required scopes:
view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | The project to list versions for: numeric id or slug identifier. |
status_filter | string | null | no | Filter by version status. Applied after fetching every version — |
Output: object: versions
manage_redmine_version
Create, update, or delete a Redmine version (roadmap milestone). Use this when the user wants to add, change, or remove a milestone. action=“create” needs project_id and name; “update”/“delete” need version_id (find one via list_redmine_versions). Blocked entirely in read-only mode.
- Kind: write
- Required scopes:
manage_versions
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. |
description | string | null | no | |
due_date | string | null | no | YYYY-MM-DD. |
name | string | null | no | Version name. Required for action = "create", optional for |
project_id | integer | string | null | no | Project id or identifier. Required for action = "create". |
sharing | string | null | no | Defaults to none on create if omitted. |
status | string | null | no | Defaults to open on create if omitted. |
version_id | integer | null | no | Version id. Required for action = "update" and action = "delete". |
wiki_page_title | string | null | no |
Output: object: deleted_version_id, success, version
list_project_members
List all members (users and groups) of a Redmine project along with their assigned roles. Use this to see who has access to a project, or before manage_project_member to find a membership_id to update or remove.
- Kind: read
- Required scopes:
view_members
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | Numeric id or slug identifier. |
Output: object: memberships, pagination
list_redmine_roles
List all roles defined in the Redmine instance (id and name only). Call this before manage_project_member(action=“add”|“update”) to discover valid role_ids — role ids vary between Redmine instances and must not be guessed. Unlike list_redmine_users, this does not require an admin credential.
- Kind: read
- Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: roles
get_project_modules
Retrieve the list of enabled modules for a project (e.g. issue_tracking, time_tracking, wiki, repository). Use this to check whether a feature (like time tracking or the wiki) is available in a project before calling a module-specific tool.
- Kind: read
- Required scopes:
view_project
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | Numeric id or slug identifier. |
Output: object: enabled_modules, project_id, project_name
manage_project_member
Add, update, or remove a Redmine project membership. Use this to grant or change project access. action=“add” needs project_id, one of user_id/group_id, and role_ids; “update” needs membership_id and role_ids; “remove” needs membership_id (use list_redmine_roles first to find valid role_ids). Blocked in read-only mode; inherited memberships must be removed from the parent project instead.
- Kind: write
- Required scopes:
manage_members
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | |
group_id | integer | null | no | Exactly one of user_id/group_id is required for action = "add". |
membership_id | integer | null | no | Required for action = "update" and action = "remove". |
project_id | integer | string | null | no | Required for action = "add". |
role_ids | array<integer> | no | Non-empty. Required for action = "add" and action = "update". Use |
user_id | integer | null | no | Exactly one of user_id/group_id is required for action = "add". |
Output: object: deleted_membership_id, membership, success
Issues
get_redmine_issue
Retrieve full details of one Redmine issue by numeric id, including by default journals and attachments. Use this when the issue id is already known; use list_redmine_issues or search_redmine_issues to find one first. include_watchers/include_relations/include_children default false; journal_limit pages long journal history. children nests one level deep — use list_subtasks for deeper trees.
- Kind: read
- Required scopes:
view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
include_allowed_statuses | boolean | no | Include the statuses the current credential may move this issue to; |
include_attachments | boolean | no | Include attachment metadata. Default true. |
include_children | boolean | no | Include direct sub-issues, nested one level deep. Default false. Use |
include_custom_fields | boolean | no | Include custom field values. Default true. |
include_journals | boolean | no | Include journals (comments and field-change history). Default true. |
include_relations | boolean | no | Include issue relations. Default false. |
include_watchers | boolean | no | Include the watcher list. Default false. |
issue_id | integer | yes | The id of the issue to retrieve. |
journal_limit | integer | null | no | Maximum number of journals to return, applied client-side after |
journal_offset | integer | null | no | Number of journals to skip, used with journal_limit. Default 0. |
Output: object: agile_position, agile_sprint_id, allowed_statuses, assigned_to, attachments, author, category, children, closed_on, created_on, custom_fields, description, done_ratio, due_date, estimated_hours, fixed_version, id, is_private, journal_pagination, journals, parent, priority, project, relations, spent_hours, start_date, status, story_points, subject, tags, tracker, updated_on, watchers
list_redmine_issues
List Redmine issues with flexible filtering and pagination. Supports filtering by project, status, tracker, priority, assignee, and target version. Use this for advanced filtering by field value; use search_redmine_issues for free-text search instead. An empty list means nothing matched — try widening the filters before retrying.
- Kind: read
- Required scopes:
view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
assigned_to_id | integer | string | null | no | Filter by assignee: a numeric user id, or "me" for the credential’s |
fields | array<string> | no | Restrict which fields each issue carries. Omit for every field; |
fixed_version_id | integer | null | no | Filter by target version (roadmap milestone) id. |
include_pagination_info | boolean | no | Include the pagination member in the result. Default false. |
limit | integer | null | no | Page size, clamped to 1-1000. Defaults to 25. |
offset | integer | null | no | Offset of the first result. Defaults to 0. |
priority_id | integer | null | no | Filter by priority id. |
project_id | integer | string | null | no | Restrict to one project: numeric id or slug identifier. |
sort | string | null | no | Redmine sort syntax, e.g. "updated_on:desc". |
status_id | integer | null | no | Filter by status id. Absent means Redmine’s own default (open |
tracker_id | integer | null | no | Filter by tracker id. |
Output: object: issues, pagination
search_redmine_issues
Search issues by free text, with pagination and native Search API filters (scope, open_issues). Use this for text-based search; use list_redmine_issues for filtering by exact field values (project_id, status_id, priority_id, etc). An empty list means nothing matched the search text.
- Kind: read
- Required scopes:
search_project,view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | array<string> | no | Restrict which fields each issue carries. See list_redmine_issues. |
include_pagination_info | boolean | no | Include the pagination member in the result. Default false. |
limit | integer | null | no | Page size, clamped to 1-1000. Defaults to 25. |
offset | integer | null | no | Offset of the first result. Defaults to 0. |
open_issues | boolean | no | Search only open issues. Default false. |
query | string | yes | The search text. Must not be empty. |
scope | string | null | no | Restrict which projects are searched. Default: all. |
Output: object: issues, pagination
list_subtasks
List subtasks (child issues) of a given issue, including closed ones. Use this to see the full immediate-child list; get_redmine_issue’s own children field nests only one level. An empty list means the issue has no subtasks.
- Kind: read
- Required scopes:
view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
issue_id | integer | yes | The issue id. |
Output: object: subtasks
get_private_notes
Retrieve only the private notes (journals with private_notes=true and non-empty text) of an issue. Use this instead of get_redmine_issue when only private notes are wanted. An empty list means either no private notes exist, or the credential lacks the “View private notes” permission — this tool cannot tell the two apart, so do not assume an empty result means none exist.
- Kind: read
- Required scopes:
view_issues,view_private_notes
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
issue_id | integer | yes | The issue id. |
Output: object: private_notes
create_redmine_issue
Create a new Redmine issue. Use this to add a task, bug, or feature request to a project. Only project_id and subject are required; every other field defaults to the project’s/tracker’s own default when omitted. A rejected required custom field may be autofilled once and reported in autofilled_custom_fields, if the operator enabled that. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
add_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
assigned_to_id | integer | null | no | Who to assign the issue to. |
category_id | integer | null | no | The issue category id. |
custom_fields | array<object> | no | Custom field values to set on the new issue. Each entry gives |
description | string | null | no | The issue description. |
done_ratio | integer | null | no | Percent done, 0-100. |
due_date | string | null | no | Planned due date (YYYY-MM-DD). |
estimated_hours | number | null | no | Estimated hours. |
fixed_version_id | integer | null | no | The target version (roadmap milestone) id. |
is_private | boolean | null | no | Whether the issue is private. |
parent_issue_id | integer | null | no | Parent issue id, to create this as a sub-issue. |
priority_id | integer | null | no | The priority id, if not the default. |
project_id | integer | string | yes | The project to create the issue in: numeric id or slug identifier. |
start_date | string | null | no | Planned start date (YYYY-MM-DD). |
status_id | integer | null | no | The status id, if not the tracker’s default. |
subject | string | yes | The issue subject/title. Must not be empty. |
tag_list | array<string> | no | Tags to set on the new issue (AlphaNodes additional_tags plugin). |
tracker_id | integer | null | no | The tracker id, if not the project’s default. |
uploads | array<object> | no | Files to attach to the issue in this same request. Maximum 10 items; |
Output: object: autofilled_custom_fields, issue, success
update_redmine_issue
Update fields on an existing issue, or add a note to its history. Use this when a field needs to change or a comment should be added; omit any parameter to leave that field unchanged. If the operator enabled required-custom-field autofill, a rejected required custom field may be filled from its default and reported in autofilled_custom_fields, at most once. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
edit_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agile_position | integer | null | no | New position within its sprint/board (RedmineUP Agile plugin). |
agile_sprint_id | integer | null | no | New sprint id (RedmineUP Agile plugin). 0 removes the issue from |
assigned_to_id | integer | null | no | New assignee user id. Unassign with clear_fields. |
category_id | integer | null | no | New category id. Uncategorise with clear_fields. |
clear_fields | array<string> | no | Fields to unset back to empty (e.g. unassign, detach version). |
custom_fields | array<object> | no | Custom field values to set, if changing any. Each entry gives |
description | string | null | no | New description. An empty string clears it; omit to leave unchanged. |
done_ratio | integer | null | no | New percent done, 0-100. |
due_date | string | null | no | New planned due date. Remove it with clear_fields. |
estimated_hours | number | null | no | New estimated hours. Remove the estimate with clear_fields. |
fixed_version_id | integer | null | no | New target version id. Detach from the version with clear_fields. |
is_private | boolean | null | no | New privacy flag. |
issue_id | integer | yes | The id of the issue to update. |
notes | string | null | no | A note to add to the issue’s history, independent of any field |
parent_issue_id | integer | null | no | New parent issue id, to reparent this issue. Make it top-level again |
priority_id | integer | null | no | New priority id. |
private_notes | boolean | null | no | Whether the note added via notes is private. Requires the “set |
start_date | string | null | no | New planned start date. Remove it with clear_fields. |
status_id | integer | null | no | New status id. |
story_points | integer | null | no | New story points (RedmineUP Agile plugin). Omit to leave unchanged, |
subject | string | null | no | New subject, if changing it. |
tag_list | array<string> | no | Replaces the issue’s full tag set (AlphaNodes additional_tags |
tracker_id | integer | null | no | New tracker id. |
uploads | array<object> | no | Files to attach to the issue in this same request. Maximum 10 items; |
Output: object: autofilled_custom_fields, issue, success
delete_redmine_issue
Delete a Redmine issue. Refuses by default and returns an impact preview (children/journals/attachments/relations/time-entry counts); pass confirm_delete=true to proceed, and confirm_delete_with_children=true too if it has subtasks. A refusal is a normal result, not an error. Use when the user explicitly asks to delete an issue. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
delete_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
confirm_delete | boolean | no | When false (default), the tool refuses and returns an impact |
confirm_delete_with_children | boolean | no | When the issue has direct subtasks, confirm_delete=true alone still |
issue_id | integer | yes | The id of the issue to delete. |
Output: object: cascade_deleted, code, deleted_issue_id, error, hint, impact, success
copy_issue
Copy an issue to a new one, optionally into another project, optionally recursively copying subtasks. Most fields are copied from the source unless overridden; status is never copied. Attachments are never copied. Bounded to 50 issues per call. Use this instead of create_redmine_issue when duplicating an existing issue. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
view_issues,add_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
assigned_to_id | integer | null | no | Override the assignee on the copy. Defaults to the source’s. |
category_id | integer | null | no | Override the category on the copy. Defaults to the source’s. |
copy_subtasks | boolean | no | Recursively copy the source’s direct subtasks (and their own |
description | string | null | no | Override the description on the copy. Defaults to the source’s. |
fixed_version_id | integer | null | no | Override the target version on the copy. Defaults to the source’s. |
issue_id | integer | yes | The id of the source issue to copy. |
link_original | boolean | no | Create a copied_to/copied_from relation between the original and |
priority_id | integer | null | no | Override the priority on the copy. Defaults to the source’s. |
project_id | integer | string | null | no | Target project for the copy: numeric id or slug identifier. Defaults |
subject | string | null | no | New subject for the copy. Defaults to the source subject. |
tracker_id | integer | null | no | Override the tracker on the copy. Defaults to the source’s. |
Output: object: issue, subtasks_copied, subtasks_truncated, success
manage_issue_relation
Manage relations between issues (relates, blocks, precedes, …). Use this to list (issue_id, works read-only), create (issue_id+issue_to_id), or delete (relation_id) a relation. create/delete are blocked in read-only mode.
- Kind: partial (per
action) - Required scopes:
list:view_issues;create:manage_issue_relations;delete:manage_issue_relations
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. list is always available, even in read-only |
delay | integer | null | no | Delay in days. Only meaningful for precedes. |
issue_id | integer | null | no | Source issue id. Required for action="list" and action="create". |
issue_to_id | integer | null | no | Target issue id. Required for action="create". |
relation_id | integer | null | no | Relation id. Required for action="delete". |
relation_type | string | null | no | One of relates, duplicates, duplicated, blocks, blocked, |
Output: object: deleted_relation_id, relation, relations, success
manage_issue_watcher
Add or remove a watcher on an issue. Use this to subscribe/unsubscribe a user to an issue’s notifications. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
add:add_issue_watchers;remove:delete_issue_watchers
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | |
issue_id | integer | yes | The issue id. |
user_id | integer | yes | The user id to add or remove as a watcher. |
Output: object: issue_id, success, user_id
manage_issue_note
Edit an issue note’s text and/or private flag. Use this to edit (journal_id+notes; empty string clears it) or set_private (journal_id+is_private) alone. journal_id comes from get_redmine_issue or get_private_notes. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
edit:edit_issue_notes;set_private:set_notes_private
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | |
is_private | boolean | null | no | true to mark the note private, false to make it public. Required |
journal_id | integer | yes | The journal (note) id, from get_redmine_issue with |
notes | string | null | no | New note text. May be empty to clear it. Required for |
private_notes | boolean | null | no | Toggle the private flag while editing. Optional for |
Output: object: journal_id, notes, private_notes, success
manage_issue_category
Manage issue categories on a project. Use this to list (project_id, works read-only), create (project_id+name), update, or delete (category_id) categories; delete accepts reassign_to_id to move issues instead of leaving them uncategorised. create/update/delete are blocked in read-only mode.
- Kind: partial (per
action) - Required scopes:
list:view_issues;create:manage_categories;update:manage_categories;delete:manage_categories
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. list is always available, even in read-only |
assigned_to_id | integer | null | no | Default assignee user id. For create/update. |
category_id | integer | null | no | Category id. Required for action="update" and action="delete". |
name | string | null | no | Category name. Required for action="create"; optional (but not |
project_id | integer | string | null | no | Project identifier. Required for action="list" and |
reassign_to_id | integer | null | no | Reassign the deleted category’s issues to this category id instead |
Output: object: categories, category, deleted_category_id, success
Time tracking
list_time_entries
List logged time entries, optionally filtered by project, issue, user, or date range. Use this to review time already logged before summarizing or exporting it. from_date/to_date are translated into Redmine’s own spent_on filter syntax. An empty list means no matching entries — do not retry with the same arguments.
- Kind: read
- Required scopes:
view_time_entries
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from_date | string | null | no | Only entries spent on or after this date (YYYY-MM-DD). |
issue_id | integer | null | no | Restrict to one issue. |
limit | integer | null | no | Page size, clamped to 1-100. Defaults to 25. |
offset | integer | null | no | Offset of the first result. Defaults to 0. |
project_id | integer | string | null | no | Restrict to one project: numeric id or slug identifier. |
to_date | string | null | no | Only entries spent on or before this date (YYYY-MM-DD). |
user_id | integer | string | null | no | Restrict to one user: a numeric user id, or "me" for the |
Output: object: pagination, time_entries
manage_time_entry
Log or update a time entry against an issue or project. Use this when the user wants to record time spent. action=“create” needs hours and at least one of project_id/issue_id; “update” needs time_entry_id. Blocked entirely in read-only mode.
- Kind: write
- Required scopes:
create:log_time;update:edit_time_entries
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. |
activity_id | integer | null | no | |
comments | string | null | no | Description. An empty string clears the field on action = "update"; |
hours | number | null | no | Hours spent. Required (and must be positive) for action = "create"; |
issue_id | integer | null | no | Required for action = "create" if project_id is not provided. |
project_id | integer | string | null | no | Project id or identifier. Required for action = "create" if |
spent_on | string | null | no | YYYY-MM-DD. Defaults to today on create if omitted. |
time_entry_id | integer | null | no | Entry id to update. Required for action = "update". |
user_id | integer | null | no | Log time on behalf of this user (action = "create" only). Requires |
Output: object: success, time_entry
list_time_entry_activities
List time-tracking activities (Development, QA, …). Pass project_id to see only activities enabled for that project (Redmine 3.4.0+); without it, lists every activity defined on the instance, including active/is_default flags the project-scoped form does not carry. Use this to resolve an activity name to an id before manage_time_entry/import_time_entries.
- Kind: read
- Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | null | no | When given, returns this project’s enabled activities instead of the |
Output: object: time_entry_activities
import_time_entries
Bulk-log up to 500 time entries in one call. Use this instead of repeated manage_time_entry calls when importing time from an external source. Each entry needs hours and at least one of project_id/issue_id. Continues past a failing entry by default and reports every outcome; stop_on_error=true halts at the first failure. Created entries are never rolled back. Blocked in read-only mode.
- Kind: write
- Required scopes:
log_time
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
entries | array<object> | yes | At most 500 entries per call. |
stop_on_error | boolean | no | Abort on the first error. Default false: keep attempting every |
Output: object: attempted, failed, results, succeeded, total
Search & wiki
search_entire_redmine
Search across issues and wiki pages in one call. Use this for a broad text search when the resource type is not yet known. Prefer search_redmine_issues for issue-only search with richer filtering (scope, open_issues, field selection). Results are thin (id, title, excerpt only) — follow up with get_redmine_issue or manage_redmine_wiki_page(action=“get”) for full details.
- Kind: read
- Required scopes:
search_project
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | null | no | Maximum results to return, clamped to 1-100. Defaults to 100. |
offset | integer | null | no | Pagination offset. Defaults to 0. |
query | string | yes | Text to search for. |
resources | array<string> | no | Restrict to these resource types. Defaults to both issues and wiki |
Output: object: pagination, results, results_by_type
manage_redmine_wiki_page
List, get, create, update, delete, or rename a wiki page. Use this to manage project documentation. project_id and action are required; wiki_page_title is required except for list. create/update need text; rename needs new_title. list/get work in read-only mode; the rest are blocked. Deleting a page un-parents its children rather than deleting them.
- Kind: partial (per
action) - Required scopes:
list:view_wiki_pages;get:view_wiki_pages;create:edit_wiki_pages;update:edit_wiki_pages;delete:delete_wiki_pages;rename:rename_wiki_pages
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. |
comments | string | null | no | Change-log comment for create/update/rename. |
include_attachments | boolean | null | no | Include attachment metadata in the get response. Defaults to |
new_title | string | null | no | The new title. Required for rename; must differ from |
project_id | integer | string | yes | The project the wiki page belongs to. Required for every action. |
redirect_existing_links | boolean | null | no | When true (default), rename leaves a redirect from the old title |
text | string | null | no | Page content. Required for create and update. |
version | integer | null | no | Specific revision to fetch. get only; defaults to the latest. |
wiki_page_title | string | null | no | The page title. Required for every action except list. |
Output: object: deleted_title, message, page, pages, success
Gantt
get_gantt_chart
Build a Gantt-chart projection for a project: issues with start/due dates, percent-done, and parent hierarchy, plus the project’s versions as milestones. Use this when the user wants a timeline or roadmap view rather than a flat issue list. Defaults to open issues only; set include_closed=true for a full historical timeline.
- Kind: read
- Required scopes:
view_issues
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
due_date_before | string | null | no | Only include issues with due_date <= this (YYYY-MM-DD). |
include_closed | boolean | null | no | Include closed issues. Defaults to false to keep response size and |
limit | integer | null | no | Max issues to return, clamped to 1-500. Defaults to 100. |
project_id | integer | string | yes | The project to chart: numeric id or slug identifier. |
start_date_after | string | null | no | Only include issues with start_date >= this (YYYY-MM-DD). |
Output: object: issues, milestones, pagination, project_id, project_name
Files
get_redmine_attachment
Download a Redmine attachment by numeric id, staging it in the server local file store. Use this when the actual file bytes are needed, not just metadata. Returns a /files/{uuid} URL (HTTP transport) or an absolute file_path (stdio) per uri_type; the copy expires after ATTACHMENT_EXPIRES_MINUTES (60 min default), so fetch promptly. attachment_id comes from get_redmine_issue or list_files.
- Kind: read
- Required scopes:
view_files
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
attachment_id | integer | yes | The id of the attachment to retrieve. |
Output: object: attachment_id, content_type, expires_at, file_path, filename, size, uri, uri_type
list_files
List files in a project’s Files module (GET /projects/{id}/files.json) — not issue attachments (use get_redmine_issue for those) and not the DMSF plugin. Returns metadata only; call get_redmine_attachment with the returned id to download the actual bytes. Use this when the user asks what files are attached to a project.
- Kind: read
- Required scopes:
view_files
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | integer | string | yes | The project to list Files-module entries for: numeric id or slug |
Output: object: files
delete_file
Delete a Redmine attachment by id. This can delete ANY attachment this credential can reach, not just project Files — issue and wiki attachments too — since Redmine does not report which container an attachment belongs to. Requires confirm_delete_any_attachment=true. Use this when the user explicitly asks to delete an attachment. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
manage_files
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
confirm_delete_any_attachment | boolean | no | DELETE /attachments/{id}.json deletes any attachment this |
file_id | integer | yes | The id of the attachment to delete, from list_files or an issue’s |
Output: object: deleted_file_id, success
upload_file
Upload a file and attach it to a project’s Files module. Exactly one of content_base64 (requires filename) or file_path is required; source_url is not supported and returns UNSUPPORTED_SOURCE. Both sources are capped at 50 MiB; file_path must additionally be inside ATTACHMENTS_DIR or REDMINE_MCP_UPLOAD_FILE_ROOTS. Use this when attaching a file to a project. Write tool; blocked in read-only mode.
- Kind: write
- Required scopes:
manage_files
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
content_base64 | string | null | no | Raw file bytes, base64-encoded. Exactly one of content_base64/ |
description | string | null | no | Human-readable description shown in the Files module. |
file_path | string | null | no | Absolute path to a file already on this server: inside |
filename | string | null | no | Name the file should have in Redmine. Required when using |
project_id | integer | string | yes | The project to attach the uploaded file to. |
source_url | string | null | no | Not supported by this server. Present only so a caller who sends it |
version_id | integer | null | no | Attach to this version instead of the project directly. |
Output: object: author, content_type, content_url, created_on, description, digest, downloads, filename, filesize, id, version
cleanup_attachment_files
Immediately sweep expired files out of the local attachment store, the same cleanup the background sweeper performs on a timer, and report how much was reclaimed. Local-disk-only; never touches Redmine, so it still works in read-only mode. Use this to free disk space now instead of waiting for CLEANUP_INTERVAL_MINUTES. Admin tool, requires REDMINE_MCP_EXPOSE_ADMIN_TOOLS=true.
- Kind: read
- Gated by:
REDMINE_MCP_EXPOSE_ADMIN_TOOLS - Required scopes: any authenticated token
Parameters
(no parameters)
Output: object: cleaned_bytes, cleaned_files, cleaned_mb
Plugins: RedmineUP Checklists
get_checklist
Get the checklist items on an issue (RedmineUP Checklists Pro plugin). Use this to see an issue’s checklist before adding or editing an item; an empty list means the issue has no checklist — do not retry. A very large checklist may be silently truncated by this server’s response-size caps, with no further page to fetch.
- Kind: read
- Gated by:
REDMINE_CHECKLISTS_ENABLED - Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
issue_id | integer | yes | The issue whose checklist to retrieve. |
Output: object: issue_id, items, total_count
create_checklist_item
Add a checklist item or section header to an issue (RedmineUP Checklists Pro plugin). Use this after get_checklist to add a new checkable item (is_section=false, the default) or a section header (is_section=true). Write tool; blocked in read-only mode.
- Kind: write
- Gated by:
REDMINE_CHECKLISTS_ENABLED - Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
is_done | boolean | null | no | Initial checked state for a checkable item. Sent as given even when |
is_section | boolean | null | no | true to create a section header rather than a checkable item. |
issue_id | integer | yes | The issue to add the checklist item to. |
position | integer | null | no | 1-based position in the checklist. Omit to append at the end. |
subject | string | yes | Text of the new checklist item, or the section header’s title. Must |
Output: object: checklist_item_id, is_done, is_section, issue_id, position, subject, success
update_checklist_item
Edit a checklist item’s text, done state, or position (RedmineUP Checklists Pro plugin). Use this after get_checklist to change one existing item; at least one of subject/is_done/position is required. Write tool; blocked in read-only mode.
- Kind: write
- Gated by:
REDMINE_CHECKLISTS_ENABLED - Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
checklist_item_id | integer | yes | The checklist item to update, from get_checklist. |
is_done | boolean | null | no | New checked state, if changing it. |
position | integer | null | no | New 1-based position, if changing it. |
subject | string | null | no | New text, if changing it. Must not be blank if given. |
Output: object: checklist_item_id, success, updated_fields
Plugins: RedmineUP Products
manage_product
List, get, create, or update RedmineUP products (RedmineUP Products plugin). There is no delete action. list/get work in read-only mode; create/update are blocked. name is required for create; product_id is required for get/update.
- Kind: partial (per
action) - Gated by:
REDMINE_PRODUCTS_ENABLED - Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. There is no delete action — the Products |
category_id | integer | null | no | The product category id. For create/update. |
code | string | null | no | A short product code/SKU. For create/update. |
currency | string | null | no | The price’s currency, e.g. "USD". For create/update. |
custom_fields | array<object> | no | Custom field values to set, by id. For create/update. |
description | string | null | no | Free-text description. For create/update. |
limit | integer | null | no | For list, max results per call, clamped to 1-100. Default 100. |
name | string | null | no | The product’s display name. Required for create. |
offset | integer | null | no | For list, pagination offset. Default 0. |
price | number | null | no | Unit price. For create/update. |
product_id | integer | null | no | The product to act on. Required for get and update. |
project_id | integer | string | null | no | For list, restrict to this project’s products (omit for every |
status_id | integer | null | no | 1 = Active, 2 = Inactive. For create/update. Defaults to |
tag_list | array<string> | no | Replaces the product’s full tag set. For create/update. |
Output: object: pagination, product, products, success, updated_fields
Plugins: RedmineUP CRM
manage_contact
List, get, create, update, or delete a RedmineUP CRM contact, or attach/detach one from a project (RedmineUP CRM plugin). list/get work read-only; other actions are blocked. first_name required for create; contact_id required except for list/create; project_id required for create/assign_to_project/remove_from_project. assign_to_project does not create; remove_from_project does not delete.
- Kind: partial (per
action) - Gated by:
REDMINE_CRM_ENABLED - Required scopes: any authenticated token
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. |
address | object | null | no | |
assigned_to_id | integer | null | no | For list, filter by assignee user id. For create/update, the |
background | string | null | no | |
birthday | string | null | no | YYYY-MM-DD. |
company | string | null | no | |
contact_id | integer | null | no | The contact to act on. Required for every action except list and |
email | string | null | no | |
first_name | string | null | no | Given name. Required for create. |
include | array<string> | no | For get, additional data to include. |
is_company | boolean | null | no | true to mark this contact as a company rather than a person. |
job_title | string | null | no | |
last_name | string | null | no | |
limit | integer | null | no | For list, max results per call, clamped to 1-100. Default 100. |
middle_name | string | null | no | |
offset | integer | null | no | For list, pagination offset. Default 0. |
phone | string | null | no | |
project_id | integer | string | null | no | For list, optional project filter. For create, required (the |
search | string | null | no | For list, free-text search (matches name/company/email). |
skype_name | string | null | no | |
tags | string | null | no | For list, a comma-separated tag filter, passed through as given |
visibility | integer | null | no | 0 = Project (default), 1 = Public, 2 = Private. |
website | string | null | no |
Output: object: contact, contacts, deleted_contact_id, message, pagination, success, updated_fields
Plugins: DMSF
manage_document
List, get, create, or update documents in the DMSF plugin (redmine_dmsf, GPL v2; must be installed server-side, and its DMSF module replaces rather than complements Redmine’s built-in Documents). There is no delete action. list/get work in read-only mode; create/update are blocked. create requires project_id and exactly one of content_base64 (requires name) or file_path, both capped at 50 MiB; its response is sparse ({document_id} only) — follow up with action=“get”. update always creates a new revision rather than replacing one, and requires document_id.
- Kind: partial (per
action) - Gated by:
REDMINE_DMSF_ENABLED - Required scopes:
list:view_documents;get:view_documents;create:add_documents;update:edit_documents
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
action | string | yes | Operation to perform. There is no delete action. |
comment | string | null | no | A revision comment. For create/update. |
content_base64 | string | null | no | Raw file bytes, base64-encoded. For create; exactly one of |
custom_fields | array<object> | no | Custom field values to set, by id. For create/update. |
description | string | null | no | Free-text description. For create/update. |
document_id | integer | null | no | The document to act on. Required for get and update. |
file_path | string | null | no | Absolute path to a file already on this server: inside |
folder_id | integer | null | no | For list, restrict to one folder (omit for the whole project). For |
limit | integer | null | no | For list, max results per call, clamped to 1-100. Default 100. |
name | string | null | no | The stored filename (DMSF’s own name field, trap 2). For create, |
offset | integer | null | no | For list, pagination offset. Default 0. |
project_id | integer | string | null | no | The project to act on: numeric id or slug identifier. Required for |
source_url | string | null | no | Not supported by this server. Present only so a caller who sends it |
title | string | null | no | Display title. For create/update; on update, defaults to the |
version | string | null | no | "X", "X.Y", or "X.Y.Z", each part a non-negative integer. For |
Output: object: document, document_id, documents, note, pagination, success, updated_fields
Tool contract
The full tool surface ruprogress-mcp targets: 52 tools. 41 are always
registered; 3 more (the Checklist family) join when
REDMINE_CHECKLISTS_ENABLED=true (44); manage_product, manage_contact,
and manage_document each join independently under their own plugin flag,
for 47 when every plugin flag implemented so far is on. The remaining 4 (MCP
Apps) are not implemented — see below. For each tool: name, parameter names +
types + required-ness, and a one-line return shape; for the exact schema
(including nested parameter shapes, required OAuth scopes, and whether read-only
mode hides it) see the generated docs/tool-reference.md instead of
duplicating that detail here.
Tools currently implemented (the non-app core tools plus the
attachment-related get_redmine_attachment, list_files, delete_file,
upload_file, the admin-gated cleanup_attachment_files, the
plugin-gated Checklist tools, and the plugin-gated Products/CRM/DMSF tools
below; kept in sync with IMPLEMENTED_TOOLS in
crates/ruprogress-mcp/tests/tools_basic.rs, which fails CI on drift):
get_mcp_server_info, get_current_user, list_redmine_projects,
list_redmine_trackers, list_project_trackers,
list_redmine_issue_statuses, list_redmine_issue_priorities,
list_redmine_users, list_redmine_queries,
list_project_issue_custom_fields, summarize_project_status,
list_redmine_versions, manage_redmine_version, list_project_members,
list_redmine_roles, get_project_modules, manage_project_member,
get_redmine_issue, list_redmine_issues, search_redmine_issues,
list_subtasks, get_private_notes, list_time_entries,
manage_time_entry, list_time_entry_activities, import_time_entries,
create_redmine_issue, update_redmine_issue, delete_redmine_issue,
copy_issue, manage_issue_relation, manage_issue_watcher,
manage_issue_note, manage_issue_category, search_entire_redmine,
manage_redmine_wiki_page, get_gantt_chart, get_redmine_attachment,
list_files, delete_file, upload_file, (only with
REDMINE_MCP_EXPOSE_ADMIN_TOOLS=true) cleanup_attachment_files,
(only with REDMINE_CHECKLISTS_ENABLED=true) get_checklist,
create_checklist_item, update_checklist_item, (only with
REDMINE_PRODUCTS_ENABLED=true) manage_product, (only with
REDMINE_CRM_ENABLED=true) manage_contact, and (only with
REDMINE_DMSF_ENABLED=true) manage_document.
upload_file accepts content_base64/file_path only — source_url is
recognised as a parameter but always refused with UNSUPPORTED_SOURCE;
fetching a caller-supplied URL server-side is out of scope for this release
pending a decision on SSRF exposure. manage_document’s DMSF plugin has the
same source_url limitation on its create action. The only section below
that remains genuinely out of scope for this implementation is MCP Apps: it
requires an interactive UI-resource client capability this server does not
implement, so show_triage_board, get_triage_board_data,
show_project_dashboard, and get_project_dashboard_data are not
registered and have no plugin flag.
In REDMINE_AUTH_MODE=oauth, which of these tools a given bearer token can
see and call is governed by TOOL_SCOPES in
crates/ruprogress-mcp/src/auth/scope.rs — every tool implemented above must
have an entry there; see docs/oauth-setup.md’s “Scope enforcement” section.
Every tool’s failures come back in-band as {error, code, retryable, hint}
rather than as MCP protocol errors — see ErrorCode in
crates/ruprogress-mcp/src/tools/output.rs for the closed set of code
values, most of which are tool-specific (NOT_FOUND, VALIDATION_FAILED,
RATE_LIMITED, READ_ONLY, INSUFFICIENT_SCOPE, …). One code applies to
every tool: INTERNAL means a tool handler panicked — a bug in this server,
not in Redmine or in the caller’s arguments — and is never retryable.
Project Management
list_redmine_projects
Parameters: none
Returns: List of project dictionaries with id, name, identifier, and description
list_project_issue_custom_fields
Parameters:
project_id(integer or string, required): Project ID (numeric) or identifier (string)tracker_id(integer, optional): Restrict output to fields applicable to the given tracker ID
Returns: List of custom field metadata dictionaries
summarize_project_status
Parameters:
project_id(integer, required): The ID of the project to summarizedays(integer, optional): Number of days to analyze. Default:30
Returns: Comprehensive project status summary including:
list_redmine_versions
Parameters:
project_id(integer or string, required): The project ID (numeric) or identifier (string)status_filter(string, optional): Filter by version status. Allowed values:open,locked,closed. Default: all versions
Returns: List of version dictionaries
manage_redmine_version
Parameters:
action(string, required): Operation to perform. Allowed values:create,update,deleteproject_id(integer or string): Project ID or identifier. Required foraction="create"version_id(integer): Version ID. Required foraction="update"andaction="delete"name(string): Version name. Required foraction="create", optional foraction="update"description(string, optional): Version descriptionstatus(string, optional): Version status. Allowed values:open,locked,closed. Defaults toopenon createdue_date(string, optional): Due date inYYYY-MM-DDformatsharing(string, optional): Sharing scope. Allowed values:none,descendants,hierarchy,tree,system. Defaults tononeon createwiki_page_title(string, optional): Associated wiki page title
Returns: - create/update: full version dictionary (same shape as list_redmine_versions entries)
list_project_members
Parameters:
project_id(integer or string, required): Project ID (numeric) or identifier (string)
Returns: List of membership dictionaries containing user/group info and roles
list_redmine_roles
Parameters: none
Returns: List of role dictionaries with id and name.
get_project_modules
Parameters:
project_id(integer or string, required): Project identifier (numeric ID or string identifier).
Returns: Dictionary with project_id, project_name, and enabled_modules (list of module name strings).
manage_project_member
Parameters:
action(string, required): Operation to perform. Allowed:add,update,removeproject_id(integer or string): Project identifier. Required foraction="add"membership_id(integer): Membership ID. Required foraction="update"andaction="remove"user_id(integer): ID of the user. Exactly one ofuser_idorgroup_idrequired foraction="add"group_id(integer): ID of the group. Exactly one ofuser_idorgroup_idrequired foraction="add"role_ids(array of integers): Non-empty list of role IDs. Required foraction="add"andaction="update". Uselist_redmine_rolesto discover valid IDs
Returns: - add/update: membership dictionary (with id, user/group, project, roles)
Issue Operations
get_redmine_issue
Parameters:
issue_id(integer, required): The ID of the issue to retrieveinclude_journals(boolean, optional): Include journals (comments) in result. Default:trueinclude_attachments(boolean, optional): Include attachments metadata. Default:trueinclude_custom_fields(boolean, optional): Include custom fields in result. Default:truejournal_limit(integer, optional): Maximum number of journals to return. When set, enables journal pagination and addsjournal_paginationmetadata. Default:null(all journals)journal_offset(integer, optional): Number of journals to skip (used withjournal_limit). Default:0include_watchers(boolean, optional): Include watcher list. Default:falseinclude_relations(boolean, optional): Include issue relations. Default:falseinclude_children(boolean, optional): Include child issues. Default:false. Results respect issue visibility only on Redmine 6.0.12/6.1.5/7.0.2 or laterinclude_allowed_statuses(boolean, optional): Includeallowed_statuses, the statuses the current credential may move this issue to ([{id, name, is_closed}]); use beforeupdate_redmine_issuestatus_id. Default:false. An addition beyond the reference contract’s sixinclude_*flags.
Returns: Issue dictionary with details, journals, and attachments. Standard fields include category, fixed_version (target version), and parent (each {id, ...} or None), plus start_date, due_date, closed_on (ISO-8601 or None), done_ratio, estimated_hours, spent_hours, and is_private. Each is None when not set on the issue. A journal whose note was edited also carries updated_on and updated_by; both keys are absent on unedited journals. When REDMINE_AGILE_ENABLED=true, also includes story_points, agile_sprint_id, and agile_position from the RedmineUP Agile plugin. When REDMINE_TAGS_ENABLED=true, also includes tags (array of {id, name}, id frequently null) from the AlphaNodes additional_tags plugin; the key is absent both when the flag is off and when Redmine itself omitted it (e.g. the caller lacks view_issue_tags) — the two cases are indistinguishable.
list_redmine_issues
Parameters:
project_id(integer or string, optional): Filter by project (numeric ID or string identifier)status_id(integer, optional): Filter by status IDtracker_id(integer, optional): Filter by tracker IDassigned_to_id(integer or string, optional): Filter by assignee. Use a numeric user ID or the special value'me'to retrieve issues assigned to the currently authenticated user. Note that'me'resolves to the owner of the configuredREDMINE_API_KEY, which may be a shared or robot account rather than the human operator. If results come back unexpectedly empty, callget_mcp_server_infoto confirm who'me'maps to.priority_id(integer, optional): Filter by priority IDfixed_version_id(integer, optional): Filter by target version/milestone IDsort(string, optional): Sort order (e.g.,"updated_on:desc")limit(integer, optional): Maximum issues to return. Default:25, Max:1000offset(integer, optional): Number of issues to skip for pagination. Default:0include_pagination_info(boolean, optional): Return structured response with metadata. Default:falsefields(array of strings, optional): List of field names to include in results. Default: all fields Available fields:id,subject,description,project,status,priority,tracker,author,assigned_to,created_on,updated_on—trackeris returned by default Special values:["*"]or["all"]for all fields
Returns: List of issue dictionaries, or structured response with pagination metadata
search_redmine_issues
Parameters:
query(string, required): Text to search for in issueslimit(integer, optional): Maximum number of issues to return. Default:25, Max:1000offset(integer, optional): Number of issues to skip for pagination. Default:0include_pagination_info(boolean, optional): Return structured response with pagination metadata. Default:falsefields(array of strings, optional): List of field names to include in results. Default:null(all fields) Available fields:id,subject,description,project,status,priority,tracker,author,assigned_to,created_on,updated_on—trackeris returned by default Special values:["*"]or["all"]for all fieldsscope(string, optional): Search scope. Default:"all"Values:"all","my_project","subprojects"open_issues(boolean, optional): Search only open issues. Default:false
Returns: - By default: List of issue dictionaries
create_redmine_issue
Parameters:
project_id(integer, required): Target project IDsubject(string, required): Issue subject/titledescription(string, optional): Issue description. Default:""fields(object|string, optional): Additional Redmine fields as: an object ({"priority_id": 3, "tracker_id": 1}), or a serialized JSON object string (for MCP clients that pass string payloads)extra_fields(object|string, optional): Additional Redmine fields as: an object ({"priority_id": 3, "tracker_id": 1}), or a serialized JSON object stringuploads(list, optional): Files to attach to the issue. Maximum 10 items. Each item is an object with: Exactly ONE source key:content_base64(string): Raw file bytes encoded as base64.filenameis required when using this source.source_url(string): HTTP(S) URL the server fetches. Filename is derived from the URL orContent-Dispositionif omitted.file_path(string): Absolute path to a file already on the server. Must be insideATTACHMENTS_DIRor a directory listed inREDMINE_MCP_UPLOAD_FILE_ROOTS. Filename is derived from the path if omitted.filename(string, optional): Name the attachment will have in Redmine. Required forcontent_base64; derived for other sources when omitted.content_type(string, optional): MIME type override (e.g."application/pdf").description(string, optional): Human-readable description for the attachment.tag_list(array of strings, optional): The issue’s initial tags (AlphaNodesadditional_tagsplugin). A tag name containing a comma is rejected — pass separate array entries instead of a comma-separated string. RequiresREDMINE_TAGS_ENABLED=true; wire shape unverified against a live instance.custom_fields(array of objects, optional): Custom field values to set. Each entry gives exactly one ofid(integer, no extra request) orname(string, matched case- and punctuation-insensitively, e.g."Story Points"≡"story_points"; resolved via one project lookup shared across everynameentry in the call) plusvalue(a string, an array of strings for a multi-value field, ornull). Diverges from the reference’s untypedfields/extra_fieldsdict (P4): an unresolvable, ambiguous, or duplicate entry is rejected before any request reaches Redmine, rather than passed through as an arbitrary key. Core Redmine, not plugin-gated — this is the write side of a previously deferred custom-field support decision (G8).
Returns: Created issue dictionary. When uploads is provided and at least one attachment succeeds, the response includes: an attachments array. When REDMINE_AUTOFILL_REQUIRED_CUSTOM_FIELDS=true and a first attempt’s 422 named a required custom field that was recovered on the one retry, the response also includes autofilled_custom_fields (array of {id, name, value}); absent otherwise.
update_redmine_issue
Parameters:
issue_id(integer, required): ID of the issue to updatefields(object, required): Dictionary of fields to updateuploads(list, optional): Files to attach to the issue. Maximum 10 items. Each item is an object with: Exactly ONE source key:content_base64(string): Raw file bytes encoded as base64.filenameis required when using this source.source_url(string): HTTP(S) URL the server fetches. Filename is derived from the URL orContent-Dispositionif omitted.file_path(string): Absolute path to a file already on the server. Must be insideATTACHMENTS_DIRor a directory listed inREDMINE_MCP_UPLOAD_FILE_ROOTS. Filename is derived from the path if omitted.filename(string, optional): Name the attachment will have in Redmine. Required forcontent_base64; derived for other sources when omitted.content_type(string, optional): MIME type override (e.g."application/pdf").description(string, optional): Human-readable description for the attachment.clear_fields(array of strings, optional): the fields to unset back to empty, named rather than set — any ofassigned_to_id,category_id,fixed_version_id,parent_issue_id,start_date,due_date,estimated_hours. Unassigns the issue, uncategorises it, detaches it from its target version, makes it top-level again, or removes a date or the estimate. A field that is both named here and given a value is rejected withinvalid_params; a non-empty array alone makes this a valid call. Each named field goes to Redmine as an empty string, which is what actually clears a field there:{"assigned_to_id": null}answers204and leaves the assignee in place. Verified against a live Redmine 6.x for every field exceptcategory_id, which is sent identically but was never exercised — the test project defines no categories. A string enum rather than a nullable value so the operation survives the portable schema dialect, which collapses{"type": ["integer", "null"]}to{"type": "integer"}(ADR 0007).story_points(integer, optional, nullable),agile_sprint_id(integer, optional),agile_position(integer, optional): RedmineUP Agile plugin fields. Omit to leave unchanged;story_points: nullclears it;agile_sprint_id: 0removes the issue from its sprint (the plugin’s own sentinel). RequireREDMINE_AGILE_ENABLED=true; wire shape unverified against a live instance — Agile is a commercial plugin.tag_list(array of strings, optional): Replaces the issue’s full tag set (AlphaNodesadditional_tagsplugin) — not additive.[]clears every tag; omit to leave the tag set unchanged. A tag name containing a comma is rejected — pass separate array entries instead of a comma-separated string. RequiresREDMINE_TAGS_ENABLED=true; wire shape unverified against a live instance.custom_fields(array of objects, optional): Custom field values to set, if changing any. Same entry shape ascreate_redmine_issue’scustom_fields(exactly one ofid/name, plusvalue;nullclears a field). Since this tool’s parameters carry onlyissue_id, anameentry costs a dedicated issue lookup on top of the project lookup (two extra reads); an all-idarray costs nothing. A non-emptycustom_fieldsalone makes this a valid call — it does not need another field ornotes. Core Redmine, not plugin-gated (G8).
Returns: Updated issue dictionary. When uploads is provided and at least one attachment succeeds, the response includes: an attachments array. When REDMINE_AUTOFILL_REQUIRED_CUSTOM_FIELDS=true and the core write’s 422 named a required custom field that was recovered on the one retry, the response also includes autofilled_custom_fields (array of {id, name, value}); absent otherwise. A 422 naming a required field always gains missing_required_fields and a hint, whether or not autofill is enabled or able to recover.
delete_redmine_issue
Parameters:
issue_id(integer, required): ID of the issue to delete. Must be a positive integer.confirm_delete(boolean, optional): WhenFalse(default), the tool refuses and returns an impact preview. PassTrueto actually delete.confirm_delete_with_children(boolean, optional): When the issue has subtasks,confirm_delete=Truealone refuses with codeCHILDREN_PRESENT. Pass this flag too to opt in to cascade-deleting the subtasks.
Returns: Refusal envelope {error, code, hint, impact} (default, or when subtasks present) or success envelope {success, deleted_issue_id, cascade_deleted}. Write tool; requires confirm_delete=true (and confirm_delete_with_children=true if the issue has subtasks).
copy_issue
Parameters:
issue_id(integer, required): ID of the source issue to copy.project_id(integer or string, optional): Target project for the copy. Defaults to the source issue’s project.subject(string, optional): New subject for the copy. Defaults to the source subject.link_original(boolean, optional): Create acopied_to/copied_fromrelation between the original and the copy. Default:true.copy_subtasks(boolean, optional): Recursively copy the source’s subtasks. Default:true.copy_attachments(boolean, optional): Copy attachments to the new issue. Default:true.field_overrides(object or JSON string, optional): Field values to override on the copy (e.g.,{"assigned_to_id": 5, "description": "..."}).
Returns: Dictionary containing the newly created issue. On failure, a dict with an "error" key.
manage_issue_relation
Parameters:
action(string, required): Operation to perform. Allowed:list,create,deleteissue_id(integer): Source issue ID. Required foraction="list"andaction="create"issue_to_id(integer): Target issue ID. Required foraction="create"relation_id(integer): Relation ID. Required foraction="delete"relation_type(string, optional): One ofrelates,duplicates,duplicated,blocks,blocked,precedes,follows,copied_to,copied_from. Defaults torelateson createdelay(integer, optional): Delay in days. Only meaningful forprecedes/follows
Returns: - list: array of relation dicts (id, issue_id, issue_to_id, relation_type, delay). list respects issue visibility only on Redmine 6.0.11/6.1.4/7.0.1 or later
list_subtasks
Parameters:
issue_id(integer, required): ID of the parent issue.
Returns: List of child issue dictionaries.
manage_issue_watcher
Parameters:
action(string, required): Allowed:add,removeissue_id(integer, required): ID of the issueuser_id(integer, required): ID of the user to add or remove
Returns: {"success": true, "issue_id": ..., "user_id": ...} on success; {"error": "..."} on failure.
manage_issue_note
Parameters:
action(string, required): Allowed:edit,set_privatejournal_id(integer, required): ID of the journal entry (fromget_redmine_issuewithinclude_journals=true)notes(string): New notes text (may be empty to clear). Required foraction="edit"private_notes(boolean, optional): Optionally toggle the private flag duringeditis_private(boolean): Required foraction="set_private"—trueto mark private,falseto make public
Returns: - edit: {"success": true, "journal_id": ..., "notes": ..., "private_notes": ...}
get_private_notes
Parameters:
issue_id(integer, required): ID of the issue.
Returns: List of journal dictionaries where private_notes is true. Journals with empty note bodies are omitted.
manage_issue_category
Parameters:
action(string, required): Allowed:list,create,update,deleteproject_id(integer or string): Project identifier. Required foraction="list"andaction="create"category_id(integer): Category ID. Required foraction="update"andaction="delete"name(string): Category name. Required foraction="create", optional foraction="update"(cannot be blank)assigned_to_id(integer, optional): Default assignee user ID. Forcreateandupdatereassign_to_id(integer, optional): Reassign existing issues to this category ID ondelete. If omitted, issues become uncategorised
Returns: - list: array of category dicts (id, name, project, assigned_to)
MCP Apps (Interactive Tools)
show_triage_board
Parameters:
project_id(int | str, required): project to display.filters(dict, optional): extra Redmine filters, same aslist_redmine_issues.
Returns: MCP Apps UI resource (interactive Kanban board); no plain-JSON return.
get_triage_board_data
Parameters:
- same parameters as
show_triage_board
Returns: Same JSON payload as show_triage_board, without the UI resource (used by the board iframe’s Refresh action).
show_project_dashboard
Parameters:
project_id(int | str, required): project to display.filters(dict, optional): extra Redmine filters, same aslist_redmine_issues.
Returns: MCP Apps UI resource (interactive project dashboard); no plain-JSON return.
get_project_dashboard_data
Parameters:
- same parameters as
show_project_dashboard
Returns: Same JSON payload as show_project_dashboard, without the UI resource (used by the dashboard iframe’s Refresh action).
Time Tracking
list_time_entries
Parameters:
project_id(integer or string, optional): Filter by project (numeric ID or string identifier)issue_id(integer, optional): Filter by issue IDuser_id(integer or string, optional): Filter by user ID. Use"me"for current userfrom_date(string, optional): Start date filter (YYYY-MM-DD format)to_date(string, optional): End date filter (YYYY-MM-DD format)limit(integer, optional): Maximum entries to return. Default:25, Max:100offset(integer, optional): Number of entries to skip for pagination. Default:0
Returns: List of time entry dictionaries
manage_time_entry
Parameters:
action(string, required): Allowed:create,updatehours(float): Hours spent. Required foraction="create"; optional forupdate(must be positive if provided)project_id(integer or string): Required foraction="create"ifissue_idis not providedissue_id(integer): Required foraction="create"ifproject_idis not provideduser_id(integer, optional): Log on behalf of this user (createonly). Requireslog_time_for_other_userspermissiontime_entry_id(integer): Entry ID to update. Required foraction="update"activity_id(integer, optional): Activity type (e.g., Development, Design)comments(string, optional): Description. Empty string clears the field onupdatespent_on(string, optional): Date inYYYY-MM-DDformat
Returns: - create/update: time entry dict (id, hours, comments, spent_on, user, project, issue, activity, etc.)
list_time_entry_activities
Parameters:
project_id(string or integer, optional): Project identifier. When provided, returns project-specific activities viaGET /projects/:id.json?include=time_entry_activities(Redmine 3.4.0+).
Returns: - Without project_id: list of activity dicts with id, name, active, is_default
Discovery / Enumeration Tools
list_redmine_trackers
Parameters: none
Returns: List of {id, name, description} dicts.
list_project_trackers
Parameters:
project_id(integer or string, required): Project ID (numeric) or identifier (string)
Returns: List of {id, name} dicts for trackers enabled on the project.
list_redmine_issue_statuses
Parameters: none
Returns: List of {id, name, is_closed, description} dicts — is_closed flags statuses that count as “closed” for reporting purposes; description is the admin-authored text, or None.
list_redmine_issue_priorities
Parameters: none
Returns: List of {id, name, active, is_default} dicts.
list_redmine_users
Parameters:
name(string, optional): Case-insensitive substring filter (matches login, firstname, lastname, email).group_id(integer, optional): Filter users who belong to a specific group.limit(integer, optional): Maximum users to return (default 25, clamped to 1–100).offset(integer, optional): Pagination offset. Default 0.
Returns: List of {id, login, firstname, lastname, mail, created_on} dicts.
get_current_user
Parameters: none
Returns: Dict with id, login, firstname, lastname, mail, admin, created_on, last_login_on.
list_redmine_queries
Parameters: none
Returns: List of {id, name, is_public, project_id} dicts. project_id is null for cross-project queries.
import_time_entries
Parameters:
entries(array of objects, required): List of time entry dicts. Each entry accepts:hours(required), plus at least one ofproject_id/issue_id. Optional:user_id(log on behalf of a teammate),activity_id,comments,spent_on. Capped at 500 entries per call – split larger imports into multiple invocations. Must be an array; a JSON string is rejected at the schema boundary.stop_on_error(boolean, optional): Abort on the first error. Default:false(continue past errors).
Returns: Dictionary with:
Search & Wiki
search_entire_redmine
Parameters:
query(string, required): Text to search forresources(list, optional): Filter by resource types. Allowed:["issues", "wiki_pages"]. Default: both typeslimit(integer, optional): Maximum results to return (max 100). Default: 100offset(integer, optional): Pagination offset. Default: 0
Returns: ```json
manage_redmine_wiki_page
Parameters:
action(string, required): Allowed:list,get,create,update,delete,renameproject_id(integer or string, required): Project identifier (numeric ID or short name)wiki_page_title(string): Wiki page title. Required for all actions exceptlistversion(integer, optional): Specific version number forget(default: latest)include_attachments(boolean, optional): Include attachment metadata ingetresponse. Default:truetext(string): Page content. Required forcreateandupdatecomments(string, optional): Change log comment forcreateandupdatenew_title(string): New title forrename(must differ fromwiki_page_title)redirect_existing_links(boolean, optional): Whentrue(default),renamecreates aWikiRedirectfrom the old title to the new title
Returns: - list: array of page metadata dicts (title, version, parent_title if present, created_on, updated_on) — no body text
File Operations
list_files
Parameters:
project_id(integer or string, required): Project identifier.
Returns: List of file metadata dictionaries (id, filename, filesize, content_type, description, content_url, digest, downloads, author, version, created_on).
upload_file
Parameters:
project_id(integer or string, required): Project identifier.filename(string, optional): Name the file should have in Redmine. Required when usingcontent_base64. Optional withsource_urlorfile_path, inferred from the URL path,Content-Dispositionheader, or file path if omitted, but always prefer passing an explicit filename.source_url(string, conditional): HTTP(S) URL to download from.content_base64(string, conditional): File content as base64. At most 50 MiB decoded, and over HTTP at mostmax_inline_upload_bytes(seeget_mcp_server_info), which followsREDMINE_MCP_MAX_REQUEST_BODY_BYTES: about 2.25 MiB at the default, 50 MiB at the maximum. On stdio the full 50 MiB fits.file_path(string, conditional): Absolute path to a file on the server. Restricted toATTACHMENTS_DIRand directories inREDMINE_MCP_UPLOAD_FILE_ROOTS. At most 50 MiB.description(string, optional): Human-readable description.version_id(integer, optional): Version/release ID to attach the file to (uselist_redmine_versionsto discover valid IDs).
Returns: Dictionary containing the uploaded file’s metadata, or {"error": "..."} on failure.
delete_file
Parameters:
file_id(integer, required): ID of the attachment to delete (fromlist_files).confirm_delete_any_attachment(boolean, optional): Bypass the project-scope check to delete issue/wiki/news attachments. Default:false.
Returns: {"success": true, "deleted_file_id": <id>} on success.
get_redmine_attachment
Parameters:
attachment_id(integer, required): The ID of the attachment to retrieve
Returns: {uri, uri_type, filename, content_type, size, expires_at, attachment_id} in HTTP mode (uri_type="http"), or {file_path, uri_type, filename, content_type, size, expires_at, attachment_id} in stdio mode (uri_type="file").
cleanup_attachment_files
Parameters: none
Returns: Cleanup statistics:
Checklist Tools
Requires the RedmineUP Checklists Pro plugin (commercial); registered only
with REDMINE_CHECKLISTS_ENABLED=true. The wire shapes these tools rely on
are synthetic, derived from the reference implementation’s handling of the
plugin rather than a live capture — see
crates/redmine-client/tests/fixtures/README.md’s plugin fixtures section.
get_checklist
Parameters:
issue_id(int, Yes): The ID of the issue whose checklist to retrieve
Returns: {issue_id, total_count, items: [{id, subject, is_done, is_section, position, created_on, updated_on}]}
update_checklist_item
Parameters:
checklist_item_id(int, Yes): The ID of the checklist item to updatesubject(string, No): New text for the checklist itemis_done(bool, No): New done stateposition(int, No): New position/order- At least one of
subject/is_done/positionis required
Returns: {success, checklist_item_id, updated_fields: [string]} — echoes the names of the fields that were sent, not a re-fetched item
create_checklist_item
Parameters:
issue_id(int, Yes): The ID of the issue to add the checklist item tosubject(string, Yes): Text of the new checklist item or section headeris_section(bool, No): Whentrue, creates a section header rather than a checkable itemis_done(bool, No): Initial done state for checkable items (ignored whenis_section=true)position(int, No): 1-based position in the checklist. Omit to append at the end
Returns: {success, issue_id, checklist_item_id, subject, is_section, is_done, position} — checklist_item_id is null when the plugin’s response carried no id
Gantt Chart
get_gantt_chart
Parameters:
project_id(int or string, Yes): Project identifierstart_date_after(string, No):YYYY-MM-DDfilter (issues withstart_date >= this)due_date_before(string, No):YYYY-MM-DDfilter (issues withdue_date <= this)include_closed(bool, No): Include closed issues. Defaultfalsekeeps response size and pagination cost low on long-lived projects; set totruefor full historical timelines.limit(int, No): Max issues (1–500)
Returns: | Field | Type | Description |
Products (RedmineUP Products plugin)
Requires the RedmineUP Products plugin (commercial); registered only with
REDMINE_PRODUCTS_ENABLED=true. The wire shapes this tool relies on are
synthetic, derived from the reference implementation’s handling of the
plugin rather than a live capture — see
crates/redmine-client/tests/fixtures/README.md’s plugin fixtures section.
Unlike the reference’s untyped fields dict for update, parameters here
are flat and typed and shared between create/update; an unknown
parameter key is rejected, not silently filtered. offset is an addition
over the reference, which exposes only limit.
manage_product
Parameters:
action(string, required):list,get,create, orupdate. There is nodeleteaction — the plugin exposes no delete endpointproject_id(integer or string, optional): Forlist, filters products by project (omitted = all accessible). Forcreate, optionally associates the new product with a projectlimit(integer, optional): Forlist, max results per call, clamped to 1–100. Default100offset(integer, optional): Forlist, pagination offset. Default0product_id(integer): Required forgetandupdatename(string): Required forcreate; must not be blank if given onupdatedescription,code,currency(string, optional): Forcreate/updateprice(float, optional): Forcreate/updatestatus_id(integer, optional): Forcreate/update. Must be1(Active) or2(Inactive)category_id(integer, optional): Forcreate/updatetag_list(array of strings, optional): Forcreate/update; replaces the product’s full tag setcustom_fields(array of{"id": integer, "value": string or array of strings}, optional): Forcreate/update. Values are accepted by id only — there is no discovery tool for product custom-field definitions to resolve a name against
update requires at least one of the fields above besides product_id.
Returns: {success, products, pagination, product, updated_fields} — products/pagination for list; product for get/create/update; updated_fields (names of the fields the call changed) for update only.
Contacts / CRM (RedmineUP CRM plugin)
Requires the RedmineUP CRM plugin (commercial); registered only with
REDMINE_CRM_ENABLED=true. The wire shapes this tool relies on are
synthetic, derived from the reference implementation’s handling of the
plugin rather than a live capture — see
crates/redmine-client/tests/fixtures/README.md’s plugin fixtures section.
Unlike the reference’s untyped fields dict for update, parameters here
are flat and typed and shared between create/update; an unknown
parameter key is rejected, not silently filtered. offset is an addition
over the reference, which exposes only limit. Contact PII (email,
phone, address, birthday, website) is returned to the caller
unwrapped but never logged and never named in an error message.
manage_contact
Parameters:
action(string, required):list,get,create,update,delete,assign_to_project, orremove_from_projectproject_id(integer or string): Forlist, optional project filter. Forcreate, required (project to associate the new contact with). Forassign_to_project/remove_from_project, the project to attach to or detach fromsearch(string, optional): Forlist, free-text search (matches name/company/email)tags(string, optional): Forlist, a comma-separated tag filter, passed through as given — a filter expression the plugin parses, not a set of values being writtenassigned_to_id(integer, optional): Forlist, filter by assignee user id. Forcreate/update, the user to assign the contact tolimit(integer, optional): Forlist, max results per call, clamped to 1–100. Default100offset(integer, optional): Forlist, pagination offset. Default0contact_id(integer): Required for every action exceptlistandcreateinclude(array of"notes"/"deals"/"contacts", optional): Forgetfirst_name(string): Required forcreate; must not be blank if given onupdatelast_name,middle_name,company,job_title,phone,email,website,skype_name,background(string, optional): Forcreate/updatebirthday(string, optional):YYYY-MM-DD. Forcreate/updateaddress(object{street1, street2, city, region, country, postcode}, all optional): Forcreate/update; only the sub-fields given are changedis_company(boolean, optional): Forcreate/update.trueto mark as a company entity. Defaultfalsevisibility(integer, optional): Forcreate/update.0=Project (default),1=Public,2=Private
update requires at least one of the fields above besides contact_id. assign_to_project does not create a contact; remove_from_project does not delete one.
Returns: {success, contacts, pagination, contact, updated_fields, deleted_contact_id, message} — contacts/pagination for list; contact for get/create/update; updated_fields for update only; deleted_contact_id for delete only; message for assign_to_project/remove_from_project only, clarifying that neither creates nor deletes the contact.
Documents (DMSF plugin)
Requires the redmine_dmsf plugin (open source, GPL v2, but still needs a
server-side install neither this repository nor CI has); registered only
with REDMINE_DMSF_ENABLED=true. DMSF replaces rather than complements
Redmine’s built-in Documents module — an instance with legacy documents
needs rake redmine:dmsf_convert_documents before they are visible here.
The wire shapes this tool relies on are synthetic, derived from the
reference implementation’s handling of the plugin rather than a live
capture — see crates/redmine-client/tests/fixtures/README.md’s plugin
fixtures section; unlike the other three plugin families this one could in
principle be verified against a live instance later. Unlike the reference’s
untyped fields dict for update, parameters here are flat and typed and
shared between create/update; an unknown parameter key is rejected, not
silently filtered. offset is an addition over the reference, which
exposes only limit.
manage_document
Parameters:
action(string, required):list,get,create, orupdate. There is nodeleteactionproject_id(integer or string): Required forlist/createfolder_id(integer, optional): Forlist, restrict to one folder (omit for the whole project). Forcreate, the destination folder (omit for the project root)limit(integer, optional): Forlist, max results per call, clamped to 1–100. Default100offset(integer, optional): Forlist, pagination offset. Default0document_id(integer): Required forgetandupdatecontent_base64(string, optional): Forcreate; exactly one ofcontent_base64/file_pathis requiredfile_path(string, optional): Forcreate. Absolute path to a file already on this server: insideATTACHMENTS_DIRor a directory listed inREDMINE_MCP_UPLOAD_FILE_ROOTSname(string, optional): The stored filename (DMSF’s ownnamefield, notfilename). Required forcreatewhen usingcontent_base64; inferred fromfile_pathotherwise. Forupdate, defaults to the document’s current name if omittedtitle(string, optional): Display title. Forcreate/update; onupdate, defaults to the document’s current title if omitted (the plugin 500s on a missing title on a revision, so this server never sends one blank)description,comment(string, optional): Forcreate/updateversion(string, optional):"X","X.Y", or"X.Y.Z", each part a non-negative integer.createonly —update’s endpoint reads version fields from a different place and DMSF auto-increments the patch version on every revision regardlesscustom_fields(array of{"id": integer, "value": string or array of strings}, optional): Forcreate/update. Values are accepted by id only
update always creates a new revision rather than replacing one; earlier revisions survive. update requires at least one of title/name/description/comment/custom_fields.
Returns: {success, documents, pagination, document, document_id, updated_fields, note} — documents/pagination for list; document for get only; document_id for create/update; updated_fields for update only; note for create (the commit response is sparse; call get for full metadata) and update (a new revision was created). Each node/document has id, type (file / folder / file-link / folder-link), filename, title, name, description, version, size, content_type, folder_id, project_id, author ({id, name}), created_on, updated_on.
Meta
get_mcp_server_info
Parameters: none
Returns: the server version (the crate version built into the binary), read-only/auth/transport mode, plugin flags, and the authenticated user; every output field is listed in docs/tool-reference.md.
max_inline_upload_bytes(integer): the largest file, in decoded bytes, that fits inline ascontent_base64in one request on this transport. Send larger files asfile_path.
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.
Security Policy
Supported Versions
This project has not yet reached a 1.0 release. No versions are supported for security patches until the first tagged release.
Reporting a Vulnerability
Please report suspected vulnerabilities privately via GitHub’s private vulnerability reporting feature rather than opening a public issue.
Releasing
Versions, the changelog, tags, GitHub Releases, the ghcr.io image, and both
crates.io publishes are driven by release-plz
from conventional-commit history. There is no manual version bump after the
one-time bootstrap below.
One-time bootstrap
Trusted Publishing cannot create a crate on crates.io, and its OIDC exchange fails with an opaque 400 if no publisher is registered yet. These steps are load-bearing in this order:
-
Land the release-automation changes on
main; confirm CI (including thepackagejob) is green. -
Manually publish
0.9.0from a clean checkout of that commit, using a personal crates.io API token:cargo publish -p redmine-client --locked cargo publish -p ruprogress-mcp --lockedThis is the only step that ever needs a long-lived token — it is not stored anywhere in this repo.
-
On crates.io, add four trusted-publisher configs (2 crates × 2 workflow filenames), each with owner
geckonia, reporuprogress-mcp, environmentrelease:release.yml(the hand-pushed-tag /workflow_dispatchpath)release-plz.yml(the automated path — crates.io matches the calling workflow’sworkflow_ref, notjob_workflow_ref, so aworkflow_callfromrelease-plz.ymlpresents that filename, notrelease.yml)
Registering only
release.ymlleaves the automated path broken in a way that only shows up on the second release. -
In the GitHub repo settings: create a
releaseenvironment, and enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests (release-plz’s PR job needs it). -
Push the
v0.9.0tag by hand.release.ymlfires onpush: tags, builds the Linux x86_64/aarch64 tarballs, creates the GitHub Release, pushes the multi-archghcr.ioimage, and itspublishjob no-ops onalready uploaded— exercising that retry tolerance for real on day one. -
Set the
ghcr.io/geckonia/ruprogress-mcppackage visibility to public and link it to the repository. -
From the next merge to
main, release-plz owns versions, changelog, tag, and release — see the steady-state flow below.
Steady state
- Merge conventional-commit PRs (
fix:,feat:,feat!:/BREAKING CHANGE:, …) tomainas usual. release-plz.yml’srelease-plz-prjob opens or updates a release PR proposing the next version and itsCHANGELOG.mdentry.- Merging that PR runs
release-plz-release, which tagsv<x.y.z>and creates the GitHub Release (git_tag_enable/git_release_enableare pinned to theruprogress-mcppackage inrelease-plz.toml, so exactly one tag is created even though this is a two-crate workspace). - That job’s
publishstep callsrelease.ymlwith the new tag, which builds the tarballs, uploads them to the release, builds and pushes the multi-arch image, and publishes both crates to crates.io via OIDC — no token, no manual step.
Retrying a failed release
- A
release.ymljob failed (build, assets, container, or publish): re-run it withworkflow_dispatch, passing the existing tag (ref: v<x.y.z>). Every job is idempotent:assetsreuses an existing GitHub Release,container/container-manifestoverwrite the same tag, andpublishtreats crates.io’salready uploaded/already existsas success. - The tag or GitHub Release never got created: push it by hand
(
git tag v<x.y.z> && git push origin v<x.y.z>); thepush: tagstrigger picks it up. - crates.io accepted
redmine-clientbut the job died beforeruprogress-mcp: just re-runpublish(viaworkflow_dispatchonrelease.ymlor a re-run of the failed run) — the per-crate-ppublish calls are independently retry-safe.
ADR 0001: rustfmt nightly import options
Context
The upstream rmcp rust-sdk uses nightly-only rustfmt options
(group_imports = "StdExternalCrate", imports_granularity = "Crate") which
produce a tidier import style than stable rustfmt defaults. Enabling them
requires a cargo +nightly fmt CI job, since stable rustfmt silently
ignores nightly-only keys (or errors, depending on version).
Options
- (a) Stable-only
rustfmt.toml, defaults +edition = "2024". - (b) Add the nightly options and a corresponding nightly
fmtCI job.
Decision
(a) — stable-only. A nightly toolchain dependency in CI buys style and costs breakage (nightly rustfmt behaviour is not guaranteed stable across releases). Revisit if import churn becomes a recurring review friction point.
ADR 0002: Config loading — figment vs. hand-rolled
Context
The original design assumed figment for layered env + .env
configuration. The actual env-var namespace is non-uniform
(REDMINE_*, FASTMCP_*, ATTACHMENTS_DIR, CLEANUP_INTERVAL_MINUTES), and
most of the complexity is in cross-field validation (e.g. rejecting
legacy-per-user without REDMINE_PER_USER_TRUST_PROXY), which figment does
not help with — that logic has to be hand-written regardless.
Options
- Figment: layered sources (env,
.env, defaults), but no built-in cross-field validation. dotenvy+ hand-rolled typed getters: load.envinto the process environment, then a validating constructor builds theAuthModeenum fromstd::env::var.
Decision
Drop figment; use dotenvy + hand-rolled typed getters. All the value in
this config surface is in the validating constructor, not in the source
layering. dotenvy is already in the workspace dependency table for this
purpose, decided before config loading was implemented so the dependency
table doesn’t carry an unused figment entry.
ADR 0003: MSRV floor raised to 1.96
Context
The workspace originally set rust-version = "1.88", the floor required
by rmcp 3.x. The local toolchain available for development and verification
is 1.97.1; no 1.88 toolchain is installed, and per the sota-rust skill’s
tooling policy, arbitrary historical MSRV toolchains are not installed
without asking.
Decision
Raise the workspace MSRV floor to 1.96, deliberately, rather than
maintaining an unverified 1.88 claim. This is still comfortably above rmcp
3.x’s 1.88 requirement, and the CI msrv job pins 1.96 accordingly (CI
provisions that toolchain fresh; it does not depend on what happens to be
installed locally).
Consequence
If a future dependency requires exactly a sub-1.96 floor to be documented (e.g. for downstream consumers on older toolchains), revisit — 1.88 remains the technical minimum per rmcp, 1.96 is this project’s chosen floor.
ADR 0004: Reject redmine-api, build redmine-client
Context
Before committing to a hand-written Redmine REST client, we ran a timeboxed
(30 min) spike scoring redmine-api 0.11.5 (crates.io,
https://github.com/taladar/redmine-api, last published 2026-06-08) against
this project’s load-bearing requirements: per-request credentials, typed
status-code errors, a retry policy restricted to idempotent verbs, caller-
controlled pagination caps, and rustls-only TLS with custom CA/mTLS support.
Scoring
| Requirement | must? | redmine-api 0.11.5 |
|---|---|---|
| Per-request credential (not a client-per-user) | must | No. Redmine::from_env(client) / Redmine::new(...) binds one credential to the Redmine value at construction; the documented usage pattern is one Redmine per identity, not one pooled reqwest::Client shared across per-request credentials. |
| Caller-controlled pagination caps (page + total-item) | must | Partial. Offers single-page (json_response_body_page) and all-pages (json_response_body_all_pages) calls, but no max_pages/max_items/max_response_bytes caps or zero-progress termination guard. |
| Retry policy restricted to idempotent verbs | must | No. No retry logic found in lib.rs/api.rs; no Retry-After handling. |
| rustls, no OpenSSL; custom CA + mTLS | must | Partial. Examples use reqwest::blocking::Client::builder().use_rustls_tls(), so rustls is reachable, but there is no crate-level API for custom CA / mTLS — that’s left entirely to the caller’s own reqwest::Client construction. |
| Typed errors distinguishing 401/403/404/422/429 | must | No. Error::HttpErrorResponse(reqwest::StatusCode) is one untyped variant for all non-2xx statuses; 422’s {"errors": [...]} body is not parsed into structured data. |
Async (tokio) | must | Yes — both sync and async APIs, async is described as “significantly newer”. |
| Maintained (release within ~12 months) | must | Yes — 0.11.5 published 2026-06-08, ~2 months before this ADR. |
| Plugin endpoints (Agile/Checklists/DMSF/…) | nice | No — stock REST API resources only. |
Decision
Reject redmine-api. It fails three “must” requirements (per-request
credential scoping, typed status-code errors, retry policy), which are exactly
the load-bearing guarantees this project depends on for safe multi-user
credential handling and predictable error mapping. Build redmine-client
in-house instead.
Consequence
redmine-client is a new, from-scratch crate maintained by this project. This
is more work up front but avoids forking or vendoring redmine-api to retrofit
per-request credentials and typed errors — changes that would touch its core
Redmine struct and error type, i.e. most of the crate.
ADR 0005: rmcp 3.1.1 integration — findings
Context
Before writing config.rs/server.rs, three open questions needed answers:
whether serve() works over an in-process tokio::io::duplex pair (needed
for an e2e test harness), which ProtocolVersion ServerInfo::new()
defaults to, and whether enabling rmcp’s own reqwest feature alongside
redmine-client’s reqwest dependency would cause a rustls-provider
conflict.
Verified against the actual rmcp 3.1.1 crate contents (downloaded from
static.crates.io, not just its main branch) and the rust-sdk
repository’s examples/ and tests/ on 2026-08-06.
Findings
serve()overtokio::io::duplexworks, no extra feature needed.rmcp’s own integration tests (tests/test_tool_macros.rs,tests/test_server_initialization.rs, etc.) callserver.serve(server_transport)/client_handler.serve(client_transport)directly ontokio::io::duplex(4096)halves. This goes through the(R, W): IntoTransportimpl gated bytransport-async-rw, which theserverfeature already pulls in —transport-io(which addstokio/io-stdfor real stdin/stdout) is not required for an in-process duplex harness. The e2e test harness needs no extra dev feature beyondclientonrmcp.- Default protocol version is
ProtocolVersion::LATEST(V_2025_11_25in this SDK snapshot), viaimpl Default for ProtocolVersion.ServerInfo::new()/InitializeResult::new()rely on this default rather than pinningV_2024_11_05as the upstream counter example does. We do not call.with_protocol_version(...)inserver.rs. - No rustls provider conflict.
ruprogress-mcpdoes not enable rmcp’s ownreqwestfeature (rmcp/reqwest) — onlyserver,macros,transport-io, and (dev)client. All Redmine HTTP traffic goes throughredmine-client’s ownreqwestdependency (rustlsfeature, no rmcp involvement). There is therefore no secondreqwest/rustls provider in the dependency graph from rmcp’s side;cargo tree -dafter adding the dependency shows a singlereqwestresolution.
Verified rmcp 3.1.1 API shape
Confirmed against the actual 3.1.1 crate contents:
#[tool_handler]takes only an optionalmeta = ...; identity/instructions come fromServerHandler::get_info() -> ServerInfo.ToolRouter::{remove_route, disable_route, has_route, list_all}all exist;remove_routedeletes the entry entirely (self.map.remove(name)), so bothtools/listandtools/call(“tool not found”,invalid_params) are affected — one choke point for read-only mode.ContentBlock::text(...)andCallToolResult::success(...)match the upstream counter example.Implementation::from_build_env()is the defaultserver_infoonInitializeResult::new.
One subtlety not obvious from the docs, found while implementing graceful
shutdown: ServiceExt::serve() for a server blocks until the client sends
initialize (serve_server_with_ct_inner loops on expect_next_message
before returning a RunningService). A signal handler installed only after
.awaiting serve() — e.g. via RunningService::cancellation_token(), the
first approach tried here — never sees a SIGTERM that arrives before a
client connects, and the process dies to the default signal disposition
instead of exiting cleanly. Worse, once a handler is installed, the same
SIGTERM can independently interrupt the blocking OS thread underneath
tokio::io::stdin()’s read, nondeterministically finishing serve()’s
future with a spurious “connection closed” transport error in a race with
the signal future — flipping the exit code between 0 and 1 from one run to
the next.
main.rs avoids both failure modes by tokio::spawn-ing the serve-and-wait
sequence and racing the JoinHandle (not the bare future) against
wait_for_shutdown_signal() in a tokio::select!, aborting the handle on
the signal branch. This makes the outcome depend only on which of “signal
arrived” vs. “server task naturally finished” happened first, independent of
whichever thread the same OS signal also happened to interrupt.
Decision
Use rmcp = "=3.1.1", features server, macros, transport-io (binary),
dev-feature client (tests only, via Cargo’s per-target feature unification
under resolver = "3"). No workaround or version bump needed.
Addition: src/lib.rs
The e2e test harness (tests/support/mod.rs) needs to construct Config,
RedmineMcp, etc. from outside the crate. A tests/ integration test can
only do that against a library target — a main.rs-only binary crate
exposes nothing to import. Adding src/lib.rs (pub mod config; pub mod server; ...) with main.rs reduced to a thin CLI/bootstrap wrapper resolves
this; it is the standard bin+lib pattern and does not add a new external
dependency or public API surface (nothing publishes this crate).
ADR 0006: Streamable HTTP transport
Context
The stdio transport works, but every non-local client — MCP Inspector, hosted
assistants, anything behind a proxy — needs HTTP. rmcp 3.1.1 ships a
StreamableHttpService that implements the transport and most of its
security-relevant edge. An earlier design sketch assumed we would hand-roll
those checks; reading the crate source
(rmcp-3.1.1/src/transport/streamable_http_server/tower.rs, verified
2026-08-06) showed four of five prescriptions were already implemented
upstream.
Findings against rmcp 3.1.1
Line references are to tower.rs at 3.1.1; re-verify them against a future
rmcp rather than trusting them.
- The DNS-rebinding guard is built in.
allowed_hostsdefaults to["localhost", "127.0.0.1", "::1"]and rejects a mismatchedHostwith403(validate_dns_rebinding_headers, ~:860).allowed_originsdefaults to[](Origin validation disabled) and does RFC 6454(scheme, host, port)matching when non-empty. Malformed or non-UTF-8 headers are400. Hand-rolling any of this would only add a second rejection path with different codes and different logs. - The body cap is built in.
max_request_body_bytes(4 MiB default) is enforced while streaming the body, soContent-Length, chunked encoding, and HTTP version cannot be used to get around it.RequestBodyLimitLayeron top would be redundant and weaker. Extension<T>does exist, atrmcp::handler::server::common::Extension(impl<C, T> FromContextPart<C> for Extension<T>,common.rs:180). This retracts a correction recorded during the stdio work; per-request HTTP headers are reachable from a tool handler, which makes per-user auth cheaper than previously assumed.- A blanket timeout on the MCP route is wrong.
tower_http’s timeout covers the whole response including the body. Even withjson_response = true, rmcp falls back totext/event-streamif a handler emits a notification before the final response, and a timeout would sever that stream mid-flight. Timeouts are scoped to the health routes only. axum::Router::nestcan drop theHostheader hyper synthesises from an HTTP/2:authority; rmcp works around it by falling back touri.authority()(parse_host_header, ~:850). We usenest_service, as upstream’s own tests do, andtests/http_edge.rsassertsHostvalidation still fires through the full axum layer stack.
Three further findings, each contradicting the design that preceded this ADR:
tower-http0.7 does not dedupe.reqwest0.13 depends ontower-http ^0.6.8, so requesting 0.7 in[workspace.dependencies]compiles two copies of the crate. The workspace is pinned to 0.6.config.cancellation_tokenis not a shutdown signal — it is a request abort signal. rmcp races it against the handler’s first message (tower.rs:1228) and converts a loser into a 500 “empty response”. Handing it the same token asaxum::serve(...).with_graceful_shutdown(...)would kill every in-flight tool call at the exact moment we claim to be draining.serve()therefore owns a second token, cancelled only after axum has finished draining.tests/http_transport.rs’sa_shutdown_signal_lets_an_in_flight_tool_call_finishfails with that 500 if the two are ever merged again.- A port-less
allowed_hostsentry matches any port (host_is_allowed,tower.rs:759). Adding bothhostandhost:port, as originally specified, therefore makes the qualified entry — andPUBLIC_PORT— decorative.PUBLIC_HOSTalone now adds the bare host, andPUBLIC_PORTreplaces it with the pinned form.
Decisions
| # | Decision | Rationale |
|---|---|---|
| D1 | Default bind 127.0.0.1:8000, diverging from upstream’s 0.0.0.0 | One shared API key on every interface is one docker run -p from an unauthenticated Redmine proxy |
| D2 | Split /livez (process only) and /readyz (TTL-cached probe); /health aliases /readyz | A single /health invites wiring a dependency check to a livenessProbe, turning a Redmine blip into a restart storm |
| D3 | Stateless: legacy_session_mode = false, json_response = true, NeverSessionManager | No in-memory session state, plain JSON responses, no Mcp-Session-Id to expose through CORS, and edge tests writable with plain reqwest |
| D4 | legacy-per-user becomes constructible on HTTP; scoped() still returns “not yet implemented” | Transport and auth are separately reviewable; the interesting per-user tests are auth tests that happen to need HTTP |
| D5 | No rate limiting yet | Per-token keying only becomes meaningful once OAuth exists |
| D6 | A non-loopback bind with no Host policy is a startup error | The alternative is a WARN that scrolls past followed by a runtime 403 with no explanatory body |
D3’s consequences
Stateless mode is observable, so it is asserted rather than assumed:
GET /mcp and DELETE /mcp return 405 with Allow: POST
(handle, ~:1512), and no Mcp-Session-Id is issued. rmcp’s own client
defaults to allow_stateless: true, so the e2e test needs no special config.
If a client turns up that hard-requires a session id, the fallback is
session::local::LocalSessionManager plus with_legacy_session_mode(true) —
a type alias and two builder calls, which is why transport/http.rs names the
session manager through a type SessionManager alias.
D6’s cost
This breaks docker run -p 8000:8000 with SERVER_HOST=0.0.0.0 and nothing
else. That previously worked by accident: the request arrives as
Host: localhost:8000, which the loopback entries cover. Operators now add
PUBLIC_HOST=localhost. The error message names both variables and the *
opt-out, because it is the thing an operator actually reads;
docs/configuration.md repeats it verbatim so a search lands on it.
The underlying reason is that in rmcp an empty allowed_hosts means allow
every host (host_is_allowed short-circuits to true on an empty slice,
:755), so a silently underivable allowlist is fail-open on exactly the
control that detects DNS rebinding — which CORS cannot help with, because
rebinding is same-origin from the browser’s perspective.
Because “empty means allow-all” is the opposite of what the name suggests, the
emptiness invariant is enforced in three places rather than trusted:
parse_csv rejects a variable that is set but parses to nothing (" , " must
not degrade into “unset”), parse_http re-checks the derived list against the
explicit * opt-out, and a unit test enumerates inputs asserting no other one
can reach an empty list.
Consequences
- Two shutdown paths now exist and behave differently: stdio aborts its
serving task (ADR 0005’s EINTR race), HTTP cancels a shared
CancellationTokenand drains for up to 10 s. They live in separate modules with the rationale attached to each. - Three redaction surfaces now exist with three different rules
(
--print-config,get_mcp_server_info,/readyz). The table indocs/configuration.mdexists so the next reader does not “unify” them. /readyzis an unauthenticated Redmine liveness oracle, and it sits outside theHostallowlist (rmcp enforces that only on its own service), so a DNS-rebound browser page can read it. Accepted: the strict three-key body keeps the disclosure to a single bit, and adding a second, hand-rolled Host check would be the duplication finding #1 argues against. Do not “improve” the body by adding the upstream error message.
ADR 0007: JSON Schema format normalization for tool schemas
Context
schemars 1.2 emits {"type":"integer","format":"uint64","minimum":0} for
every u64 field (uint32 for u32), and rmcp hands that schema to clients
verbatim as inputSchema/outputSchema. uint* (and int128) are
schemars/Rust-specific — they are not in the JSON Schema format
vocabulary, nor in the OpenAPI-derived subset ajv-formats recognizes.
opencode compiles every tool’s schema with Ajv in strict mode plus
ajv-formats. Ajv knows int32/int64/date-time/etc. but not uint*, so
it logs one strict mode: unknown format "uint64" ignored in schema at path "#/$defs/TrackerOut/properties/id" warning per affected field, once per
tools/list. These are warnings, not errors — every tool still works — but
they drown the log on every session start. Some other MCP clients are less
forgiving: Gemini-family providers reject a schema with an unrecognized
integer format outright rather than warning and ignoring it.
Fourteen structs across tools/discovery.rs, tools/meta.rs,
tools/projects.rs, and tools/output.rs carry a u64/u32 field, plus
ProjectRef’s untagged u64 | String anyOf.
Decision
Add tools::schema, a single module both input/output schema
construction routes through. It calls rmcp’s own
schema_for_input/schema_for_output, then walks the resulting JSON value
recursively and removes every "format" entry whose value is in a small
non-standard list (uint, uint8, uint16, uint32, uint64, uint128,
int128). The walk is blind — every object/array node, not just the ones a
human expects — so it reaches $defs, properties, items, and
anyOf/oneOf/allOf (including ProjectRef’s untagged enum) without
needing to special-case any of them.
format is annotation-only for JSON Schema integers: it does not affect
validation the way minimum/maximum do. schemars already emits
"minimum": 0 alongside "format": "uint64" for every unsigned field, so
removing the format string loses no constraint information. Rust field types
stay u64/u32; nothing downstream of the schema (deserialization,
serialization, the actual field types) changes.
Every #[tool(...)] attribute’s output_schema (and, for the two tools that
take parameters, input_schema) now reads
crate::tools::schema::output::<T>() / crate::tools::schema::input::<T>()
instead of calling rmcp’s schema_for_output/schema_for_input directly.
tests/tools_basic.rs asserts every format string served anywhere in
tools/list is in an explicit allowlist (the ajv-formats set), which fails
if a future tool’s author forgets to route a new struct through this module.
Alternatives considered
- Change
u64/u32fields toi64/i32. Rejected:redmine-client’s id types andPagecounts are genuinely unsigned. This would spraytry_from/casts through every tool that touches an id, and drops theminimum: 0constraint the schema currently gets for free from the Rust type. - Per-field
#[schemars(with = "i64")]overrides (~18 sites). Rejected: no central enforcement — trivially forgotten on a new field — and it misdescribes an unsigned id as signed in the schema even though the Rust type staysu64. - Do nothing. Rejected: the warnings are per-field, not per-session, so the noise scales with the number of numeric fields across all tools, and a provider that hard-rejects unknown integer formats would make the affected tools uncallable rather than merely noisy.
Consequences
- Every new tool must build its schemas through
tools::schema::output/input, not rmcp’s functions directly — enforced by the allowlist test rather than left to code review. - The normalizer clones and walks the schema once per
#[tool]attribute evaluation (i.e. once per router construction / per service instance, not per request), so its cost is negligible and it must not be moved onto a per-request path. - A blind
"format"-key walk would also strip auint64string that appeared as a JSON value somewhere legitimate (e.g. an enum variant literally named"uint64"). No such value exists in this server’s schemas today;tools/schema.rs’s unit tests pin the behavior — only theformatkey is touched, never a string value — so this stays intentional rather than accidental.
2026-08 amendment: portable dialect
Google Vertex’s FunctionDeclaration.parameters is an OpenAPI-3.0-subset
Schema: a single-valued type enum, no $ref/$defs, and no type
arrays. It rejects this server’s tools/list outright (parameters.project_id schema didn't specify the schema type field) rather than warning like Ajv
does for the uint* format case above.
tools::schema::to_portable extends this module’s central-normalizer
pattern with three more transforms, gated behind
REDMINE_MCP_SCHEMA_DIALECT=portable (crate::config::SchemaDialect,
default strict):
- Inline every
$ref/$defspair (all 16 of this server’s input-schema$defsare small and non-recursive, so inlining is safe and — since a$refnode repeated inpropertiesno longer shares a single$defsentry — even shrinkstools/listslightly). - Collapse
{"type":["T","null"]}(everyOption<T>for a scalarT) to{"type":"T"}. - Stage 2, confirmed necessary: collapse a bare untagged
anyOf(no siblingtype) into{"type": "string"}when every branch is a leaf scalar schema. CoversProjectRef/AssignedToRef/UserRef. Seetools::schema::collapse_scalar_any_of.
This is opt-in, not the default, because the portable form is lossy: a
model can no longer see that an optional field may be explicitly null, nor
distinguish “numeric id” from “slug identifier” beyond what survives in the
joined description (see the stage-2 tests). Runtime deserialization is
unaffected either way; the worst case for a client that handles the rich
form correctly (Claude, GPT) is that switching to portable would degrade
its view of the schema for no reason, hence the flag defaults to strict.
outputSchema is untouched by either dialect: Gemini never sees it, and
opencode validates structuredContent against it with Ajv, where the richer
form is strictly better.
ADR 0008: oauth as a resource server, not an authorization server
Context
REDMINE_AUTH_MODE=oauth needs an MCP client to authenticate its user against
Redmine’s Doorkeeper OAuth2 provider and present the resulting access token to
this server. The design space has three shapes: (1) hand-roll bearer
validation inside the existing per-request choke point (RedmineMcp::scoped,
the shape legacy-per-user uses), (2) mint our own tokens as a second
authorization server (oauth-proxy, explicitly out of scope for v1.0), or (3)
be a pure OAuth resource server: validate a token someone else issued, by
asking its issuer.
Two findings, verified against the vendored dependencies (rmcp 3.1.1,
reqwest 0.13.4), decided this ADR:
- rmcp ships no server-side OAuth support. Its
authfeature andtransport::authmodule are an OAuth client (this process authenticating to another MCP server) —AuthClient/OAuthState/AuthorizationManager. Nothing instreamable_http_server/ever emits aWWW-Authenticateheader. Enabling that feature would pull inoauth2for zero server-side benefit. - Doorkeeper issues opaque tokens with no published JWKS. There is nothing to validate offline as a JWT. RFC 7662 introspection — a network call to Redmine per (uncached) token — is the only validation Redmine supports.
Decisions
- O1 — an axum middleware in front of the MCP route, not a check inside
scoped(). An MCP client discovers that it needs a token, and where to get one, from an HTTP401carryingWWW-Authenticate: Bearer resource_metadata="…". A JSON-RPC-level error inside a200response (thelegacy-per-usershape) is invisible to that machinery — the client never starts the OAuth flow. This means every MCP request,initializeincluded, needs a token in this mode;legacy-per-user’s decision to leaveinitialize/tools/listopen does not carry over. - O2 — fail closed on a missing
AuthContext. The middleware inserts a validatedAuthContextinto the request extensions;scoped()’s OAuth arm reads it back out and returnsclient.as_user_owned(Credential::Bearer(..)), or an internal error — never a fallback — if the extension is absent. A future refactor that mounts the route without the middleware breaks loudly on every tool call instead of running unauthenticated. - O3 — introspection and revocation reuse
RedmineClient, scoped toCredential::Basic, not a secondreqwest::Client. Doorkeeper is part of the Redmine deployment: same origin, same TLS/custom-CA/mTLS configuration, same timeouts, same connection pool. A second client would silently ignoreREDMINE_SSL_VERIFYand the CA settings — the classic way a TLS bypass sneaks in. - O4 — the introspection cache is keyed by SHA-256 of the token, never the
token itself, with a positive TTL capped by the token’s own
expand a short fixed TTL for a negative (active:false) result. A digest key means the cache cannot leak a plaintext token in a core dump or a strayDebug. A fingerprint collision in a log line (the shapelegacy-per-user’sKeyFingerprintuses) is a cosmetic annoyance; a collision in this cache would serve one user’s session to another, which is why that fingerprint is not reused here. - O7 — introspection unavailability is
503, never401.401tells the client “your token is bad, re-authorize”; sending it when this server (or Redmine) is broken would send every connected client through a pointless browser flow and hide an outage as a fleet-wide auth failure.
Consequences
- No audience binding. Doorkeeper introspection returns no
aud, so this server cannot verify a presented token was issued for it rather than for another OAuth client of the same Redmine. Any holder of any valid Redmine access token can drive this server as that user — the confused-deputy shape the MCP authorization spec warns about. Accepted: it is also the reference server’s behaviour, unfixable without upstream Redmine changes, and bounded by the token granting no more than it already grants directly against Redmine’s own REST API. Documented indocs/oauth-setup.md. - Cache staleness on revocation. A token revoked at Redmine stays usable
here for up to the cache’s positive TTL (default 60s, capped further by the
token’s own
exp). Mitigated by the low default and byPOST /revokepurging the cache entry it revokes. - A new dependency,
sha2, on the auth path, for the sake of a cache key. Small, audited, RustCrypto-maintained; the alternative (no cache) doubles Redmine traffic per tool call, and a 64-bit keyed hash (as used forlegacy-per-user’s audit fingerprint) is the wrong trade-off for a cache key rather than a log breadcrumb. legacyandlegacy-per-userare untouched. The middleware is mounted only whenRedmineMcp::verifier()returnsSome(i.e. only inoauthmode), so neither existing mode’s request shape, error shape, or tests change.
ADR 0009: oauth-proxy as an authorization server — opaque tokens, memory-only state, no transparent refresh
Context
oauth mode (ADR 0008) requires every MCP client to be hand-registered in
Redmine’s admin panel with its exact redirect URI, since Doorkeeper has no
Dynamic Client Registration (DCR). REDMINE_AUTH_MODE=oauth-proxy closes
that gap: this server becomes an authorization server in its own right,
accepting RFC 7591 DCR and running its own authorization-code + PKCE flow
against /authorize//token, which in turn drives a second,
server-internal authorization-code + PKCE flow against Redmine using one
operator-registered upstream OAuth application. This ADR records the three
decisions with the most durable consequences: what a client-facing token
is, where the resulting state lives, and why a token that expires stays
expired until the client asks for a new one.
Decisions
- Opaque, digest-keyed tokens — never a signed JWT. A
rup_at_/rup_rt_token is 256 bits ofOsRngoutput, stored server-side keyed by its SHA-256 digest; the plaintext is never a map key and never appears in aDebug/core-dump-walkable structure. The reference implementation (FastMCP’sOAuthProxy) signs a JWT and then immediately uses it as a database lookup key once verified — the signature is checked and then never consulted again. Skipping it costs nothing this design needs (there is no offline verifier anywhere else that would want to check the signature independently) and avoids a signing key, a rotation story, and an algorithm-confusion surface.REDMINE_MCP_JWT_SIGNING_KEY/_FILEis accepted and ignored, with one startupWARNnaming it as unused, so the reference server’s.envstill boots here. - All proxy state is in-memory, bounded, and swept lazily on write — no
persistence, no shared/multi-replica state. The client registry, every
in-flight authorization transaction, every authorization code, and every
proxy access/refresh token live in
Mutex-guarded maps inside this process. There is noFASTMCP_HOME-equivalent directory, no encryption key, no directory-permissions surface to get wrong. The cost is bounded and self-healing: a restart drops every registration and session, and an MCP client re-registers and re-authorizes driven by the same401challenge it already implements for the ordinary token-expiry case. Multiple replicas behind a round-robin load balancer are unsupported — a flow that starts/authorizeon one instance and lands/auth/callbackon another fails — so this mode is documented as single-instance (or sticky-session) only, indocs/oauth-setup.md. - No transparent refresh inside the request path — refreshing happens
exactly once, in
/token’srefresh_tokengrant. FastMCP’s proxy refreshes upstream transparently inside its bearer-verification path, because its JWT proxy tokens are signed with a lifetime independent of the upstream token and can outlive it. This design’s proxy access token is deliberately capped at the upstream token’s own remaining lifetime (it has no independent lifetime to claim), so there is nothing for a transparent refresh to buy: it would add a per-token async lock, a thundering-herd risk at every synchronized expiry, and latency on a request path that must stay fast, purely to solve a problem therefresh_tokengrant already solves within the protocol. A proxy access token whose upstream token has expired isinvalid_token; the client uses its refresh token, exactly as OAuth 2.1 intends.
Consequences
- A client that never implements the refresh grant re-authorizes in a
browser at every upstream expiry, and a deployment whose upstream OAuth
application has
use_refresh_tokendisabled never gets a refresh token to use in the first place (logged once per process, not once per request). Both are documented indocs/oauth-setup.mdrather than worked around, since a silent workaround (e.g. accepting a non-standard longer-lived token) would be a security regression, not a fix. - Refresh tokens rotate, and reuse of an already-rotated one kills the whole session and revokes it upstream immediately — the standard cost of rotation with reuse detection. A client that legitimately retries a dropped refresh response will occasionally trip this and have to re-authorize; the alternative is accepting replay of a stolen refresh token, which is worse.
- A restart, or a second replica, loses in-flight and issued state.
Accepted per the memory-only decision above; the store types are behind a
narrow interface (
mint/resolve/take/redeem/retire), so a future durable backend is a swap behind that interface rather than a rewrite. get_mcp_server_infoexposesregistered_clients/active_sessionscounts in this mode,nullelsewhere — enough for an operator to tell whether a restart dropped state, without exposing a client id, name, or subject that would let one caller learn who else is connected.- Upstream sessions are capped and expire, like every other proxy store.
A session with no refresh token is bounded by its upstream access token’s
own expiry; a refresh-bearing one is bounded by the same 30-day
REFRESH_TTLthe proxy’s own refresh token already uses, since Doorkeeper refresh tokens never expire on their own. Swept lazily on the next successful authorization (this mode’s only session-creating path), with the swept session’s refresh token — never its already-expired access token — revoked upstream in a best-effort background task, only when the session carried one. - The client registry never evicts a live or recently-used registration
to make room for a new one.
POST /registeris intentionally unauthenticated (RFC 7591 DCR), so a full registry sweeps every registration that is neither in the live set (an unexpired proxy access or refresh token, derived fromTokenStore/RefreshStorethe same way the upstream session deadline above is) nor used within the last hour (CLIENT_IDLE_TTL, well aboveTRANSACTION_TTLso a registration mid-authorization is never at risk); a still-full registry after the sweep degrades to the existing503+Retry-After. This trades a bounded/registerlockout under sustained attacker traffic (existing clients keep working; new ones wait out the idle TTL) for the alternative of evicting a client that is mid-flow or holds a live session, which is strictly worse.
ADR 0010: policy leaf module
Context
config parses environment variables into vocabularies: the OAuth scope
catalogue, the redirect-URI pattern grammar, the log format and the size
limits. When those types live in a higher layer (oauth, logging,
tools), every dependency between that layer and config runs both ways.
Decision
crate::policyholds pure, I/O-free vocabularies.- Nothing under
src/policy/imports fromcrate::. configimports no crate module other thanpolicy.transport::stdioimports nothing fromtools,oauthorlogging.tests/module_layering.rsenforces these rules textually; it skips comment lines and does not checksuper::paths.- Layering order: policy → config → client → transport → identity → file store → tools → output → exposure → ops.
Consequences
- Changing the scope list, the redirect grammar or the upload budget means
editing
policyonly. policy::limits,policy::log_formatandpolicy::redirectare public API;policy::scopesis crate-private.RedirectPolicycan be named outside the crate.- A new vocabulary that
configneeds from a higher layer moves intopolicyfirst. - The rmcp
allowed_hostsrestatement stays inconfig, because it describes an external crate’s behaviour.