Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

FlagDefaultEffect
--transport <stdio|http>stdioWhich transport to serve.
--env-file <PATH>.env if presentEnv file to load; the real process environment still wins.
--log-level <FILTER>RUST_LOG, else infoTracing 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

VariableRequiredDefaultNotes
REDMINE_URLyes—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_MODEnolegacyOne of legacy, legacy-per-user, oauth, oauth-proxy. Any other value is Invalid.
REDMINE_API_KEYyes, in legacy mode—The API key sent as X-Redmine-API-Key. Mutually exclusive with REDMINE_API_KEY_FILE.
REDMINE_API_KEY_FILEyes, 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_PROXYyes, 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_IDENTITYnofalseIn 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_URLyes, 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_IDyes, in oauth mode—The confidential OAuth client id used to authenticate RFC 7662 introspection requests to Redmine’s Doorkeeper.
REDMINE_INTROSPECT_CLIENT_SECRETyes, in oauth mode—Mutually exclusive with REDMINE_INTROSPECT_CLIENT_SECRET_FILE.
REDMINE_INTROSPECT_CLIENT_SECRET_FILEyes, 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_SECONDSno600–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_ASno, oauth/oauth-proxy modes onlyredmine (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_SCOPESno, oauth mode onlythe full advertised setWhitespace-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_ENFORCEMENTno, oauth/oauth-proxy modes onlyonon 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_IDno, oauth-proxy mode onlyREDMINE_INTROSPECT_CLIENT_IDThe 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_SECRETno, oauth-proxy mode onlyREDMINE_INTROSPECT_CLIENT_SECRETMutually exclusive with REDMINE_OAUTH_CLIENT_SECRET_FILE.
REDMINE_OAUTH_CLIENT_SECRET_FILEno, 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_URISno, oauth-proxy mode onlyloopback onlyComma/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/_FILEno—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_VERSIONno—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_VERIFYnotruefalse is accepted but logs a WARN — never silently downgrades without a trace.
REDMINE_MCP_READ_ONLYnofalseRemoves every tool in readonly::write_tools::ALL from the router (hides from tools/list and rejects tools/call).
REDMINE_MCP_MAX_RESPONSE_ITEMSno200Caps 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_BYTESno262144 (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_DIALECTnostrictOne 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_ENABLEDnofalseplugin_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_ENABLEDnofalseplugin_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_ENABLEDnofalseplugin_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_ENABLEDnofalseplugin_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_ENABLEDnofalseplugin_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_ENABLEDnofalseplugin_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_FIELDSnofalseWhen 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_DEFAULTSnounsetA 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.

VariableRequiredDefaultNotes
SERVER_HOSTno127.0.0.1Must 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_PORTno80001–65535. 0 is rejected: the server would bind a port no client could be told about.
PUBLIC_HOSTyes, 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_PORTno—Pins the PUBLIC_HOST entry to one port (host:port instead of bare host). Setting it alone is a Conflict.
REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORKyes, 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_PATHno/mcpMust start with /, have at least one segment, and contain no .., ?, #, {, }, *, or whitespace.
REDMINE_MCP_ALLOWED_HOSTSnoderivedComma-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_ORIGINSno[] (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_BYTESno4194304 (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_SECONDSno300–3600. How long a /readyz Redmine probe stays cached. 0 disables caching.
PUBLIC_SCHEMEnohttps if PUBLIC_PORT is 443, else httphttp 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_ENABLEDnotruefalse constructs no limiter: no request is ever rejected for rate.
REDMINE_MCP_RATE_LIMIT_RPSno10The standard class’s refill rate (/mcp, /files/{uuid}). Must be > 0.
REDMINE_MCP_RATE_LIMIT_BURSTno40The standard class’s bucket capacity. Must be >= REDMINE_MCP_RATE_LIMIT_RPS.
REDMINE_MCP_RATE_LIMIT_AUTH_RPSno1The strict class’s refill rate (/register, /authorize, /auth/callback, /token, /revoke — oauth-proxy mode only). Must be > 0.
REDMINE_MCP_RATE_LIMIT_AUTH_BURSTno10The strict class’s bucket capacity. Must be >= REDMINE_MCP_RATE_LIMIT_AUTH_RPS.
REDMINE_MCP_RATE_LIMIT_MAX_KEYSno10000Hard 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.

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_HOST set: {PUBLIC_SCHEME}://{PUBLIC_HOST}[:{PUBLIC_PORT}].
  • Without it: only a loopback SERVER_HOST can 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).

VariableRequiredDefaultNotes
ATTACHMENTS_DIRno{temp_dir}/ruprogress-mcp-attachmentsCreated 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_BYTESno209715200 (200 MiB)Positive integer. The per-file cap.
ATTACHMENT_STORE_MAX_BYTESno2147483648 (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_ENABLEDnotrueWhether the background sweeper task runs at all.
CLEANUP_INTERVAL_MINUTESno15Positive integer. How often the sweeper runs.
ATTACHMENT_EXPIRES_MINUTESno60Positive 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_ROOTSno[]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_TOOLSnofalseRegisters cleanup_attachment_files when true; otherwise the tool does not appear in tools/list at all.
REDMINE_PUBLIC_URLno—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:

  1. Bind loopback (SERVER_HOST=127.0.0.1, the default) and put your own authenticating layer in front if remote access is needed.
  2. Put a proxy that authenticates the caller in front of a non-loopback bind.
  3. Switch to REDMINE_AUTH_MODE=legacy-per-user, oauth, or oauth-proxy so each caller presents their own credential instead of sharing this server’s.
  4. Set REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=true to accept the risk — the operator’s explicit attestation, not something this process can verify.

Health endpoints

Served on the HTTP transport only.

PathChecksCodes
/livezThe process, and nothing else.Always 200
/readyzA 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
/healthAlias 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 name
  • request_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 of ok, error, denied (a scope or read-only refusal), or panic, plus code (the tool’s own in-band ErrorCode, e.g. NOT_FOUND) when outcome is not ok
  • duration_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.

SurfaceAudienceRedmine hostBind addressConfigSecrets
Config::redacted_summary() (--print-config)An operator, locallyyesyesyesnever
get_mcp_server_info (MCP tool)A language modelnonoyesnever
/readyzAnyone who can reach the portnonononever

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:

  1. It reads only SERVER_PORT (default 8000), straight from the process environment. The flag is handled before config resolution, so an --env-file/.env is 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.
  2. It targets /livez, never /readyz. A Redmine outage must not become a container restart loop. Point an orchestrator’s readiness probe at /readyz separately — see “Health endpoints”.
  3. 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.

  1. The default bind is 127.0.0.1:8000, not 0.0.0.0:8000. An MCP server whose only auth is one shared API key, reachable on every interface, is one docker run -p away from being an unauthenticated Redmine proxy.
  2. /health reports readiness only — no version, auth_mode, read_only, or plugin_flags. Those answer no readiness question and are configuration disclosure on an unauthenticated endpoint. They remain available via get_mcp_server_info and --print-config.
  3. A non-loopback SERVER_HOST without PUBLIC_HOST or REDMINE_MCP_ALLOWED_HOSTS refuses to start. See “Exposing the server on a network”.
  4. PUBLIC_HOST is required for a non-loopback SERVER_HOST even when REDMINE_MCP_ALLOWED_HOSTS=* is set. That variable turns off the Host check, but /files/{uuid} URLs still need a real origin to build from — an unreachable http://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 action argument (mirroring manage_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 admin scope bypasses the map entirely, for both visibility and calls — matching Redmine’s own admin semantics.
  • update_redmine_issue has a notes-only carve-out: a call whose changed fields are only notes/private_notes, with no uploads, needs add_issue_notes instead of edit_issues; reparenting (parent_issue_id) additionally needs manage_subtasks. A token holding either edit_issues or add_issue_notes sees the tool in tools/list.
  • A tools/call denial 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 from tools/list.
  • Argument-conditional Redmine permissions that do not map to a distinct MCP parameter shape (e.g. tag_list writes, agile-board fetches) are left to Redmine’s own enforcement: the call reaches Redmine and comes back as a normal in-band 403, 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_SCOPE gate 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_category with action="list" is mapped to view_issues, which is only what Redmine requires from 6.0.11/6.1.4/7.0.1. Before those patch levels it needs manage_categories.

Step 1: Register an OAuth app for your users

  1. Log in to Redmine as admin → Administration → Applications → New Application.
  2. 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.
  3. 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

  1. Administration → Applications → New Application.
  2. 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.
  3. 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.rb directly instead of a new initializer? Redmine wraps its Doorkeeper configuration in a Rails.application.config.to_prepare do ... end block, and Doorkeeper.configure do ... end rebuilds the entire config from scratch on every call rather than merging. A second Doorkeeper.configure block in your own initializer would silently wipe Redmine’s admin_authenticator, resource_owner_authenticator, grant_flows, and everything else it sets — the visible symptom is Administration → Applications 403ing with a log line about admin_authenticator being unconfigured. Track this edit as a deployment patch (e.g. a Dockerfile RUN 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.

ResponseMeaning
404 Page not foundThe route isn’t mounted. Confirm step 2b was applied and Redmine was restarted.
401 invalid_clientThe introspection client’s id/secret are wrong, or it isn’t confidential.
200 {"active": false} for a known-valid tokenallow_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

EndpointStandardPurpose
GET /.well-known/oauth-protected-resource{mcp_path}RFC 9728 §3.1Tells clients where to find the authorization server
GET /.well-known/oauth-authorization-server{mcp_path} (or the root path — see below)RFC 8414Advertises Redmine’s Doorkeeper endpoints, scoped to this MCP resource
POST /revokeRFC 7009Revokes 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

SymptomCauseFix
Every request is 401 with no Authorization header sentClient isn’t attaching a bearer tokenConfirm 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 introspectionRe-authorize; test directly with the Step 2c curl command against the real token
Every request is 503Introspection endpoint unreachable, misconfigured, or unmountedRe-run Step 2c’s verification curl; check REDMINE_URL and the introspection credentials
/readyz reports "introspection":"misconfigured"Introspection client rejected by DoorkeeperRecheck Step 2: the client must be confidential and allow_token_introspection (2b) applied
/readyz reports "introspection":"unreachable"Introspection endpoint unreachableCheck REDMINE_URL and network connectivity from this server to Redmine
Discovery endpoints 404Not in oauth mode, wrong path, or the wrong discovery mode’s canonical pathEnsure REDMINE_AUTH_MODE=oauth; the suffixed path 404s in self discovery mode and vice versa
Server refuses to start naming REDMINE_INTROSPECT_CLIENT_ID/_SECREToauth mode requires themRegister the introspection client per Step 2
Server refuses to start naming REDMINE_MCP_SCOPESAn entry is not in the current mode’s advertised setUse one of the scopes the error message lists as accepted
Server refuses to start with a Conflict naming the transportoauth mode was requested on stdioUse --transport http
Token works directly against Redmine but not through this serverWrong REDMINE_URL, or a proxy stripping the Authorization headerIn 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

EndpointStandardPurpose
GET /.well-known/oauth-protected-resource{mcp_path}RFC 9728 §3.1Names this server as the resource and points at itself as the authorization server
GET /.well-known/oauth-authorization-server (root only)RFC 8414Advertises this server’s own /authorize, /token, /register, /revoke
POST /registerRFC 7591Dynamic Client Registration — open, no initial access token, every client public
GET /authorizeRFC 6749 §3.1Validates 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.3Redeems 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 §6Rotates: refreshes upstream and returns a brand-new rup_at_/rup_rt_ pair, invalidating the presented refresh token
POST /revokeRFC 7009Accepts 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-Key never 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_sensitive by the underlying HTTP stack the way this server’s own outbound X-Redmine-API-Key header is, so a stray tracing::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 at TRACE across 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_PROXY is unverifiable: see above. Mitigated only by the explicit attestation requirement, the startup WARN, and this document.
  • Accepted risk — tools/list/get_mcp_server_info are 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 a get_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’s X-Redmine-API-Key would defeat that use case entirely, and disabling the route would break get_redmine_attachment outright. The route is marked with a SECURITY: 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:

SeriesRun at leastWhat leaks on earlier patch levels
6.06.0.12get_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.16.1.6Token scopes are ignored in project visibility (fixed in 6.1.6); include_children leak (6.1.5); relations (6.1.4)
7.07.0.3Token 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

ParameterTypeRequiredDescription
project_idinteger | stringyesThe 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

ParameterTypeRequiredDescription
group_idinteger | nullnoRestrict to members of this group.
limitinteger | nullnoPage size, clamped to 1-100. Defaults to 25.
namestring | nullnoFilter by name: matches login, firstname, lastname, or a
offsetinteger | nullnoOffset 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

ParameterTypeRequiredDescription
project_idinteger | stringyesThe project to list issue custom fields for: numeric id or slug
tracker_idinteger | nullnoRestrict 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

ParameterTypeRequiredDescription
daysinteger | nullnoNumber of days of history to analyze for the recent-activity
project_idintegeryesThe 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

ParameterTypeRequiredDescription
project_idinteger | stringyesThe project to list versions for: numeric id or slug identifier.
status_filterstring | nullnoFilter 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform.
descriptionstring | nullno
due_datestring | nullnoYYYY-MM-DD.
namestring | nullnoVersion name. Required for action = "create", optional for
project_idinteger | string | nullnoProject id or identifier. Required for action = "create".
sharingstring | nullnoDefaults to none on create if omitted.
statusstring | nullnoDefaults to open on create if omitted.
version_idinteger | nullnoVersion id. Required for action = "update" and action = "delete".
wiki_page_titlestring | nullno

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

ParameterTypeRequiredDescription
project_idinteger | stringyesNumeric 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

ParameterTypeRequiredDescription
project_idinteger | stringyesNumeric 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

ParameterTypeRequiredDescription
actionstringyes
group_idinteger | nullnoExactly one of user_id/group_id is required for action = "add".
membership_idinteger | nullnoRequired for action = "update" and action = "remove".
project_idinteger | string | nullnoRequired for action = "add".
role_idsarray<integer>noNon-empty. Required for action = "add" and action = "update". Use
user_idinteger | nullnoExactly 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

ParameterTypeRequiredDescription
include_allowed_statusesbooleannoInclude the statuses the current credential may move this issue to;
include_attachmentsbooleannoInclude attachment metadata. Default true.
include_childrenbooleannoInclude direct sub-issues, nested one level deep. Default false. Use
include_custom_fieldsbooleannoInclude custom field values. Default true.
include_journalsbooleannoInclude journals (comments and field-change history). Default true.
include_relationsbooleannoInclude issue relations. Default false.
include_watchersbooleannoInclude the watcher list. Default false.
issue_idintegeryesThe id of the issue to retrieve.
journal_limitinteger | nullnoMaximum number of journals to return, applied client-side after
journal_offsetinteger | nullnoNumber 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

ParameterTypeRequiredDescription
assigned_to_idinteger | string | nullnoFilter by assignee: a numeric user id, or "me" for the credential’s
fieldsarray<string>noRestrict which fields each issue carries. Omit for every field;
fixed_version_idinteger | nullnoFilter by target version (roadmap milestone) id.
include_pagination_infobooleannoInclude the pagination member in the result. Default false.
limitinteger | nullnoPage size, clamped to 1-1000. Defaults to 25.
offsetinteger | nullnoOffset of the first result. Defaults to 0.
priority_idinteger | nullnoFilter by priority id.
project_idinteger | string | nullnoRestrict to one project: numeric id or slug identifier.
sortstring | nullnoRedmine sort syntax, e.g. "updated_on:desc".
status_idinteger | nullnoFilter by status id. Absent means Redmine’s own default (open
tracker_idinteger | nullnoFilter 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

ParameterTypeRequiredDescription
fieldsarray<string>noRestrict which fields each issue carries. See list_redmine_issues.
include_pagination_infobooleannoInclude the pagination member in the result. Default false.
limitinteger | nullnoPage size, clamped to 1-1000. Defaults to 25.
offsetinteger | nullnoOffset of the first result. Defaults to 0.
open_issuesbooleannoSearch only open issues. Default false.
querystringyesThe search text. Must not be empty.
scopestring | nullnoRestrict 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

ParameterTypeRequiredDescription
issue_idintegeryesThe 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

ParameterTypeRequiredDescription
issue_idintegeryesThe 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

ParameterTypeRequiredDescription
assigned_to_idinteger | nullnoWho to assign the issue to.
category_idinteger | nullnoThe issue category id.
custom_fieldsarray<object>noCustom field values to set on the new issue. Each entry gives
descriptionstring | nullnoThe issue description.
done_ratiointeger | nullnoPercent done, 0-100.
due_datestring | nullnoPlanned due date (YYYY-MM-DD).
estimated_hoursnumber | nullnoEstimated hours.
fixed_version_idinteger | nullnoThe target version (roadmap milestone) id.
is_privateboolean | nullnoWhether the issue is private.
parent_issue_idinteger | nullnoParent issue id, to create this as a sub-issue.
priority_idinteger | nullnoThe priority id, if not the default.
project_idinteger | stringyesThe project to create the issue in: numeric id or slug identifier.
start_datestring | nullnoPlanned start date (YYYY-MM-DD).
status_idinteger | nullnoThe status id, if not the tracker’s default.
subjectstringyesThe issue subject/title. Must not be empty.
tag_listarray<string>noTags to set on the new issue (AlphaNodes additional_tags plugin).
tracker_idinteger | nullnoThe tracker id, if not the project’s default.
uploadsarray<object>noFiles 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

ParameterTypeRequiredDescription
agile_positioninteger | nullnoNew position within its sprint/board (RedmineUP Agile plugin).
agile_sprint_idinteger | nullnoNew sprint id (RedmineUP Agile plugin). 0 removes the issue from
assigned_to_idinteger | nullnoNew assignee user id. Unassign with clear_fields.
category_idinteger | nullnoNew category id. Uncategorise with clear_fields.
clear_fieldsarray<string>noFields to unset back to empty (e.g. unassign, detach version).
custom_fieldsarray<object>noCustom field values to set, if changing any. Each entry gives
descriptionstring | nullnoNew description. An empty string clears it; omit to leave unchanged.
done_ratiointeger | nullnoNew percent done, 0-100.
due_datestring | nullnoNew planned due date. Remove it with clear_fields.
estimated_hoursnumber | nullnoNew estimated hours. Remove the estimate with clear_fields.
fixed_version_idinteger | nullnoNew target version id. Detach from the version with clear_fields.
is_privateboolean | nullnoNew privacy flag.
issue_idintegeryesThe id of the issue to update.
notesstring | nullnoA note to add to the issue’s history, independent of any field
parent_issue_idinteger | nullnoNew parent issue id, to reparent this issue. Make it top-level again
priority_idinteger | nullnoNew priority id.
private_notesboolean | nullnoWhether the note added via notes is private. Requires the “set
start_datestring | nullnoNew planned start date. Remove it with clear_fields.
status_idinteger | nullnoNew status id.
story_pointsinteger | nullnoNew story points (RedmineUP Agile plugin). Omit to leave unchanged,
subjectstring | nullnoNew subject, if changing it.
tag_listarray<string>noReplaces the issue’s full tag set (AlphaNodes additional_tags
tracker_idinteger | nullnoNew tracker id.
uploadsarray<object>noFiles 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

ParameterTypeRequiredDescription
confirm_deletebooleannoWhen false (default), the tool refuses and returns an impact
confirm_delete_with_childrenbooleannoWhen the issue has direct subtasks, confirm_delete=true alone still
issue_idintegeryesThe 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

ParameterTypeRequiredDescription
assigned_to_idinteger | nullnoOverride the assignee on the copy. Defaults to the source’s.
category_idinteger | nullnoOverride the category on the copy. Defaults to the source’s.
copy_subtasksbooleannoRecursively copy the source’s direct subtasks (and their own
descriptionstring | nullnoOverride the description on the copy. Defaults to the source’s.
fixed_version_idinteger | nullnoOverride the target version on the copy. Defaults to the source’s.
issue_idintegeryesThe id of the source issue to copy.
link_originalbooleannoCreate a copied_to/copied_from relation between the original and
priority_idinteger | nullnoOverride the priority on the copy. Defaults to the source’s.
project_idinteger | string | nullnoTarget project for the copy: numeric id or slug identifier. Defaults
subjectstring | nullnoNew subject for the copy. Defaults to the source subject.
tracker_idinteger | nullnoOverride 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform. list is always available, even in read-only
delayinteger | nullnoDelay in days. Only meaningful for precedes.
issue_idinteger | nullnoSource issue id. Required for action="list" and action="create".
issue_to_idinteger | nullnoTarget issue id. Required for action="create".
relation_idinteger | nullnoRelation id. Required for action="delete".
relation_typestring | nullnoOne 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

ParameterTypeRequiredDescription
actionstringyes
issue_idintegeryesThe issue id.
user_idintegeryesThe 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

ParameterTypeRequiredDescription
actionstringyes
is_privateboolean | nullnotrue to mark the note private, false to make it public. Required
journal_idintegeryesThe journal (note) id, from get_redmine_issue with
notesstring | nullnoNew note text. May be empty to clear it. Required for
private_notesboolean | nullnoToggle 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform. list is always available, even in read-only
assigned_to_idinteger | nullnoDefault assignee user id. For create/update.
category_idinteger | nullnoCategory id. Required for action="update" and action="delete".
namestring | nullnoCategory name. Required for action="create"; optional (but not
project_idinteger | string | nullnoProject identifier. Required for action="list" and
reassign_to_idinteger | nullnoReassign 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

ParameterTypeRequiredDescription
from_datestring | nullnoOnly entries spent on or after this date (YYYY-MM-DD).
issue_idinteger | nullnoRestrict to one issue.
limitinteger | nullnoPage size, clamped to 1-100. Defaults to 25.
offsetinteger | nullnoOffset of the first result. Defaults to 0.
project_idinteger | string | nullnoRestrict to one project: numeric id or slug identifier.
to_datestring | nullnoOnly entries spent on or before this date (YYYY-MM-DD).
user_idinteger | string | nullnoRestrict 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform.
activity_idinteger | nullno
commentsstring | nullnoDescription. An empty string clears the field on action = "update";
hoursnumber | nullnoHours spent. Required (and must be positive) for action = "create";
issue_idinteger | nullnoRequired for action = "create" if project_id is not provided.
project_idinteger | string | nullnoProject id or identifier. Required for action = "create" if
spent_onstring | nullnoYYYY-MM-DD. Defaults to today on create if omitted.
time_entry_idinteger | nullnoEntry id to update. Required for action = "update".
user_idinteger | nullnoLog 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

ParameterTypeRequiredDescription
project_idinteger | string | nullnoWhen 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

ParameterTypeRequiredDescription
entriesarray<object>yesAt most 500 entries per call.
stop_on_errorbooleannoAbort 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

ParameterTypeRequiredDescription
limitinteger | nullnoMaximum results to return, clamped to 1-100. Defaults to 100.
offsetinteger | nullnoPagination offset. Defaults to 0.
querystringyesText to search for.
resourcesarray<string>noRestrict 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform.
commentsstring | nullnoChange-log comment for create/update/rename.
include_attachmentsboolean | nullnoInclude attachment metadata in the get response. Defaults to
new_titlestring | nullnoThe new title. Required for rename; must differ from
project_idinteger | stringyesThe project the wiki page belongs to. Required for every action.
redirect_existing_linksboolean | nullnoWhen true (default), rename leaves a redirect from the old title
textstring | nullnoPage content. Required for create and update.
versioninteger | nullnoSpecific revision to fetch. get only; defaults to the latest.
wiki_page_titlestring | nullnoThe 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

ParameterTypeRequiredDescription
due_date_beforestring | nullnoOnly include issues with due_date <= this (YYYY-MM-DD).
include_closedboolean | nullnoInclude closed issues. Defaults to false to keep response size and
limitinteger | nullnoMax issues to return, clamped to 1-500. Defaults to 100.
project_idinteger | stringyesThe project to chart: numeric id or slug identifier.
start_date_afterstring | nullnoOnly 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

ParameterTypeRequiredDescription
attachment_idintegeryesThe 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

ParameterTypeRequiredDescription
project_idinteger | stringyesThe 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

ParameterTypeRequiredDescription
confirm_delete_any_attachmentbooleannoDELETE /attachments/{id}.json deletes any attachment this
file_idintegeryesThe 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

ParameterTypeRequiredDescription
content_base64string | nullnoRaw file bytes, base64-encoded. Exactly one of content_base64/
descriptionstring | nullnoHuman-readable description shown in the Files module.
file_pathstring | nullnoAbsolute path to a file already on this server: inside
filenamestring | nullnoName the file should have in Redmine. Required when using
project_idinteger | stringyesThe project to attach the uploaded file to.
source_urlstring | nullnoNot supported by this server. Present only so a caller who sends it
version_idinteger | nullnoAttach 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

ParameterTypeRequiredDescription
issue_idintegeryesThe 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

ParameterTypeRequiredDescription
is_doneboolean | nullnoInitial checked state for a checkable item. Sent as given even when
is_sectionboolean | nullnotrue to create a section header rather than a checkable item.
issue_idintegeryesThe issue to add the checklist item to.
positioninteger | nullno1-based position in the checklist. Omit to append at the end.
subjectstringyesText 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

ParameterTypeRequiredDescription
checklist_item_idintegeryesThe checklist item to update, from get_checklist.
is_doneboolean | nullnoNew checked state, if changing it.
positioninteger | nullnoNew 1-based position, if changing it.
subjectstring | nullnoNew 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform. There is no delete action — the Products
category_idinteger | nullnoThe product category id. For create/update.
codestring | nullnoA short product code/SKU. For create/update.
currencystring | nullnoThe price’s currency, e.g. "USD". For create/update.
custom_fieldsarray<object>noCustom field values to set, by id. For create/update.
descriptionstring | nullnoFree-text description. For create/update.
limitinteger | nullnoFor list, max results per call, clamped to 1-100. Default 100.
namestring | nullnoThe product’s display name. Required for create.
offsetinteger | nullnoFor list, pagination offset. Default 0.
pricenumber | nullnoUnit price. For create/update.
product_idinteger | nullnoThe product to act on. Required for get and update.
project_idinteger | string | nullnoFor list, restrict to this project’s products (omit for every
status_idinteger | nullno1 = Active, 2 = Inactive. For create/update. Defaults to
tag_listarray<string>noReplaces 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

ParameterTypeRequiredDescription
actionstringyesOperation to perform.
addressobject | nullno
assigned_to_idinteger | nullnoFor list, filter by assignee user id. For create/update, the
backgroundstring | nullno
birthdaystring | nullnoYYYY-MM-DD.
companystring | nullno
contact_idinteger | nullnoThe contact to act on. Required for every action except list and
emailstring | nullno
first_namestring | nullnoGiven name. Required for create.
includearray<string>noFor get, additional data to include.
is_companyboolean | nullnotrue to mark this contact as a company rather than a person.
job_titlestring | nullno
last_namestring | nullno
limitinteger | nullnoFor list, max results per call, clamped to 1-100. Default 100.
middle_namestring | nullno
offsetinteger | nullnoFor list, pagination offset. Default 0.
phonestring | nullno
project_idinteger | string | nullnoFor list, optional project filter. For create, required (the
searchstring | nullnoFor list, free-text search (matches name/company/email).
skype_namestring | nullno
tagsstring | nullnoFor list, a comma-separated tag filter, passed through as given
visibilityinteger | nullno0 = Project (default), 1 = Public, 2 = Private.
websitestring | nullno

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

ParameterTypeRequiredDescription
actionstringyesOperation to perform. There is no delete action.
commentstring | nullnoA revision comment. For create/update.
content_base64string | nullnoRaw file bytes, base64-encoded. For create; exactly one of
custom_fieldsarray<object>noCustom field values to set, by id. For create/update.
descriptionstring | nullnoFree-text description. For create/update.
document_idinteger | nullnoThe document to act on. Required for get and update.
file_pathstring | nullnoAbsolute path to a file already on this server: inside
folder_idinteger | nullnoFor list, restrict to one folder (omit for the whole project). For
limitinteger | nullnoFor list, max results per call, clamped to 1-100. Default 100.
namestring | nullnoThe stored filename (DMSF’s own name field, trap 2). For create,
offsetinteger | nullnoFor list, pagination offset. Default 0.
project_idinteger | string | nullnoThe project to act on: numeric id or slug identifier. Required for
source_urlstring | nullnoNot supported by this server. Present only so a caller who sends it
titlestring | nullnoDisplay title. For create/update; on update, defaults to the
versionstring | nullno"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 summarize
  • days (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, delete
  • project_id (integer or string): Project ID or identifier. Required for action="create"
  • version_id (integer): Version ID. Required for action="update" and action="delete"
  • name (string): Version name. Required for action="create", optional for action="update"
  • description (string, optional): Version description
  • status (string, optional): Version status. Allowed values: open, locked, closed. Defaults to open on create
  • due_date (string, optional): Due date in YYYY-MM-DD format
  • sharing (string, optional): Sharing scope. Allowed values: none, descendants, hierarchy, tree, system. Defaults to none on create
  • wiki_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, remove
  • project_id (integer or string): Project identifier. Required for action="add"
  • membership_id (integer): Membership ID. Required for action="update" and action="remove"
  • user_id (integer): ID of the user. Exactly one of user_id or group_id required for action="add"
  • group_id (integer): ID of the group. Exactly one of user_id or group_id required for action="add"
  • role_ids (array of integers): Non-empty list of role IDs. Required for action="add" and action="update". Use list_redmine_roles to 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 retrieve
  • include_journals (boolean, optional): Include journals (comments) in result. Default: true
  • include_attachments (boolean, optional): Include attachments metadata. Default: true
  • include_custom_fields (boolean, optional): Include custom fields in result. Default: true
  • journal_limit (integer, optional): Maximum number of journals to return. When set, enables journal pagination and adds journal_pagination metadata. Default: null (all journals)
  • journal_offset (integer, optional): Number of journals to skip (used with journal_limit). Default: 0
  • include_watchers (boolean, optional): Include watcher list. Default: false
  • include_relations (boolean, optional): Include issue relations. Default: false
  • include_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 later
  • include_allowed_statuses (boolean, optional): Include allowed_statuses, the statuses the current credential may move this issue to ([{id, name, is_closed}]); use before update_redmine_issue status_id. Default: false. An addition beyond the reference contract’s six include_* 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 ID
  • tracker_id (integer, optional): Filter by tracker ID
  • assigned_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 configured REDMINE_API_KEY, which may be a shared or robot account rather than the human operator. If results come back unexpectedly empty, call get_mcp_server_info to confirm who 'me' maps to.
  • priority_id (integer, optional): Filter by priority ID
  • fixed_version_id (integer, optional): Filter by target version/milestone ID
  • sort (string, optional): Sort order (e.g., "updated_on:desc")
  • limit (integer, optional): Maximum issues to return. Default: 25, Max: 1000
  • offset (integer, optional): Number of issues to skip for pagination. Default: 0
  • include_pagination_info (boolean, optional): Return structured response with metadata. Default: false
  • fields (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 — tracker is 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 issues
  • limit (integer, optional): Maximum number of issues to return. Default: 25, Max: 1000
  • offset (integer, optional): Number of issues to skip for pagination. Default: 0
  • include_pagination_info (boolean, optional): Return structured response with pagination metadata. Default: false
  • fields (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 — tracker is returned by default Special values: ["*"] or ["all"] for all fields
  • scope (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 ID
  • subject (string, required): Issue subject/title
  • description (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 string
  • uploads (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. filename is required when using this source. source_url (string): HTTP(S) URL the server fetches. Filename is derived from the URL or Content-Disposition if omitted. file_path (string): Absolute path to a file already on the server. Must be inside ATTACHMENTS_DIR or a directory listed in REDMINE_MCP_UPLOAD_FILE_ROOTS. Filename is derived from the path if omitted. filename (string, optional): Name the attachment will have in Redmine. Required for content_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 (AlphaNodes additional_tags plugin). A tag name containing a comma is rejected — pass separate array entries instead of a comma-separated string. Requires REDMINE_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 of id (integer, no extra request) or name (string, matched case- and punctuation-insensitively, e.g. "Story Points" ≡ "story_points"; resolved via one project lookup shared across every name entry in the call) plus value (a string, an array of strings for a multi-value field, or null). Diverges from the reference’s untyped fields/extra_fields dict (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 update
  • fields (object, required): Dictionary of fields to update
  • uploads (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. filename is required when using this source. source_url (string): HTTP(S) URL the server fetches. Filename is derived from the URL or Content-Disposition if omitted. file_path (string): Absolute path to a file already on the server. Must be inside ATTACHMENTS_DIR or a directory listed in REDMINE_MCP_UPLOAD_FILE_ROOTS. Filename is derived from the path if omitted. filename (string, optional): Name the attachment will have in Redmine. Required for content_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 of assigned_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 with invalid_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} answers 204 and leaves the assignee in place. Verified against a live Redmine 6.x for every field except category_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: null clears it; agile_sprint_id: 0 removes the issue from its sprint (the plugin’s own sentinel). Require REDMINE_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 (AlphaNodes additional_tags plugin) — 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. Requires REDMINE_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 as create_redmine_issue’s custom_fields (exactly one of id/name, plus value; null clears a field). Since this tool’s parameters carry only issue_id, a name entry costs a dedicated issue lookup on top of the project lookup (two extra reads); an all-id array costs nothing. A non-empty custom_fields alone makes this a valid call — it does not need another field or notes. 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): When False (default), the tool refuses and returns an impact preview. Pass True to actually delete.
  • confirm_delete_with_children (boolean, optional): When the issue has subtasks, confirm_delete=True alone refuses with code CHILDREN_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 a copied_to/copied_from relation 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, delete
  • issue_id (integer): Source issue ID. Required for action="list" and action="create"
  • issue_to_id (integer): Target issue ID. Required for action="create"
  • relation_id (integer): Relation ID. Required for action="delete"
  • relation_type (string, optional): One of relates, duplicates, duplicated, blocks, blocked, precedes, follows, copied_to, copied_from. Defaults to relates on create
  • delay (integer, optional): Delay in days. Only meaningful for precedes / 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, remove
  • issue_id (integer, required): ID of the issue
  • user_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_private
  • journal_id (integer, required): ID of the journal entry (from get_redmine_issue with include_journals=true)
  • notes (string): New notes text (may be empty to clear). Required for action="edit"
  • private_notes (boolean, optional): Optionally toggle the private flag during edit
  • is_private (boolean): Required for action="set_private" — true to mark private, false to 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, delete
  • project_id (integer or string): Project identifier. Required for action="list" and action="create"
  • category_id (integer): Category ID. Required for action="update" and action="delete"
  • name (string): Category name. Required for action="create", optional for action="update" (cannot be blank)
  • assigned_to_id (integer, optional): Default assignee user ID. For create and update
  • reassign_to_id (integer, optional): Reassign existing issues to this category ID on delete. 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 as list_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 as list_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 ID
  • user_id (integer or string, optional): Filter by user ID. Use "me" for current user
  • from_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: 100
  • offset (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, update
  • hours (float): Hours spent. Required for action="create"; optional for update (must be positive if provided)
  • project_id (integer or string): Required for action="create" if issue_id is not provided
  • issue_id (integer): Required for action="create" if project_id is not provided
  • user_id (integer, optional): Log on behalf of this user (create only). Requires log_time_for_other_users permission
  • time_entry_id (integer): Entry ID to update. Required for action="update"
  • activity_id (integer, optional): Activity type (e.g., Development, Design)
  • comments (string, optional): Description. Empty string clears the field on update
  • spent_on (string, optional): Date in YYYY-MM-DD format

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 via GET /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 of project_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 for
  • resources (list, optional): Filter by resource types. Allowed: ["issues", "wiki_pages"]. Default: both types
  • limit (integer, optional): Maximum results to return (max 100). Default: 100
  • offset (integer, optional): Pagination offset. Default: 0

Returns: ```json

manage_redmine_wiki_page

Parameters:

  • action (string, required): Allowed: list, get, create, update, delete, rename
  • project_id (integer or string, required): Project identifier (numeric ID or short name)
  • wiki_page_title (string): Wiki page title. Required for all actions except list
  • version (integer, optional): Specific version number for get (default: latest)
  • include_attachments (boolean, optional): Include attachment metadata in get response. Default: true
  • text (string): Page content. Required for create and update
  • comments (string, optional): Change log comment for create and update
  • new_title (string): New title for rename (must differ from wiki_page_title)
  • redirect_existing_links (boolean, optional): When true (default), rename creates a WikiRedirect from 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 using content_base64. Optional with source_url or file_path, inferred from the URL path, Content-Disposition header, 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 most max_inline_upload_bytes (see get_mcp_server_info), which follows REDMINE_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 to ATTACHMENTS_DIR and directories in REDMINE_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 (use list_redmine_versions to 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 (from list_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 update
  • subject (string, No): New text for the checklist item
  • is_done (bool, No): New done state
  • position (int, No): New position/order
  • At least one of subject/is_done/position is 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 to
  • subject (string, Yes): Text of the new checklist item or section header
  • is_section (bool, No): When true, creates a section header rather than a checkable item
  • is_done (bool, No): Initial done state for checkable items (ignored when is_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 identifier
  • start_date_after (string, No): YYYY-MM-DD filter (issues with start_date >= this)
  • due_date_before (string, No): YYYY-MM-DD filter (issues with due_date <= this)
  • include_closed (bool, No): Include closed issues. Default false keeps response size and pagination cost low on long-lived projects; set to true for 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, or update. There is no delete action — the plugin exposes no delete endpoint
  • project_id (integer or string, optional): For list, filters products by project (omitted = all accessible). For create, optionally associates the new product with a project
  • limit (integer, optional): For list, max results per call, clamped to 1–100. Default 100
  • offset (integer, optional): For list, pagination offset. Default 0
  • product_id (integer): Required for get and update
  • name (string): Required for create; must not be blank if given on update
  • description, code, currency (string, optional): For create/update
  • price (float, optional): For create/update
  • status_id (integer, optional): For create/update. Must be 1 (Active) or 2 (Inactive)
  • category_id (integer, optional): For create/update
  • tag_list (array of strings, optional): For create/update; replaces the product’s full tag set
  • custom_fields (array of {"id": integer, "value": string or array of strings}, optional): For create/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, or remove_from_project
  • project_id (integer or string): For list, optional project filter. For create, required (project to associate the new contact with). For assign_to_project/remove_from_project, the project to attach to or detach from
  • search (string, optional): For list, free-text search (matches name/company/email)
  • tags (string, optional): For list, a comma-separated tag filter, passed through as given — a filter expression the plugin parses, not a set of values being written
  • assigned_to_id (integer, optional): For list, filter by assignee user id. For create/update, the user to assign the contact to
  • limit (integer, optional): For list, max results per call, clamped to 1–100. Default 100
  • offset (integer, optional): For list, pagination offset. Default 0
  • contact_id (integer): Required for every action except list and create
  • include (array of "notes"/"deals"/"contacts", optional): For get
  • first_name (string): Required for create; must not be blank if given on update
  • last_name, middle_name, company, job_title, phone, email, website, skype_name, background (string, optional): For create/update
  • birthday (string, optional): YYYY-MM-DD. For create/update
  • address (object {street1, street2, city, region, country, postcode}, all optional): For create/update; only the sub-fields given are changed
  • is_company (boolean, optional): For create/update. true to mark as a company entity. Default false
  • visibility (integer, optional): For create/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, or update. There is no delete action
  • project_id (integer or string): Required for list/create
  • folder_id (integer, optional): For list, restrict to one folder (omit for the whole project). For create, the destination folder (omit for the project root)
  • limit (integer, optional): For list, max results per call, clamped to 1–100. Default 100
  • offset (integer, optional): For list, pagination offset. Default 0
  • document_id (integer): Required for get and update
  • content_base64 (string, optional): For create; exactly one of content_base64/file_path is required
  • file_path (string, optional): For create. Absolute path to a file already on this server: inside ATTACHMENTS_DIR or a directory listed in REDMINE_MCP_UPLOAD_FILE_ROOTS
  • name (string, optional): The stored filename (DMSF’s own name field, not filename). Required for create when using content_base64; inferred from file_path otherwise. For update, defaults to the document’s current name if omitted
  • title (string, optional): Display title. For create/update; on update, 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): For create/update
  • version (string, optional): "X", "X.Y", or "X.Y.Z", each part a non-negative integer. create only — update’s endpoint reads version fields from a different place and DMSF auto-increments the patch version on every revision regardless
  • custom_fields (array of {"id": integer, "value": string or array of strings}, optional): For create/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 as content_base64 in one request on this transport. Send larger files as file_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-client now refuses to send credentials anywhere but the configured Redmine origin. download_attachment’s content_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 shared reqwest::Client now carries a same-origin redirect policy: previously its default redirect::Policy::limited(10) would follow a cross-origin 3xx response on any endpoint, and reqwest does not strip the X-Redmine-API-Key header (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. http to https, or attachments served from a CDN) now fails with an in-band UNEXPECTED_RESPONSE instead of silently following the redirect; point REDMINE_URL at 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::replace is now conditional too, so an in-flight refresh can no longer resurrect a session a concurrent /revoke already removed.
  • The default legacy auth mode now refuses to start on a non-loopback SERVER_HOST unless REDMINE_MCP_ALLOW_UNAUTHENTICATED_NETWORK=true is set. A shared REDMINE_API_KEY authenticates 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 a WARN, which the shipped Dockerfile/docker-compose.yml example configuration (SERVER_HOST=0.0.0.0 plus a published port) would have hit silently. The WARN is unchanged and still fires once the variable is set. docker-compose.yml now also publishes 127.0.0.1:8000:8000 instead of 8000:8000. Breaking: an existing legacy + 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-proxy still exist for that.
  • redmine-client now enforces Limits::max_response_bytes while streaming a response, instead of after buffering the whole body into memory. A response declaring an over-limit Content-Length is rejected before any body byte is read; a chunked response with no (or a lying) Content-Length is 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 unbounded Bytes buffer per in-flight request; this covers the status-error path, JSON decoding, and both OAuth token-exchange error paths. download_attachment remains the sole, documented exemption: it streams to its caller, which owns its own byte cap.
  • get_redmine_attachment now reserves its declared filesize against ATTACHMENT_STORE_MAX_BYTES atomically, 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 to N × ATTACHMENT_MAX_DOWNLOAD_BYTES to 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 by ATTACHMENT_MAX_DOWNLOAD_BYTES, so a stale filesize degrades 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_base64 uploads (upload_file, manage_document’s create action, and each uploads[] item on create_redmine_issue/ update_redmine_issue) are now capped at 50 MiB decoded, the same limit file_path already enforced — previously only the HTTP transport’s REDMINE_MCP_MAX_REQUEST_BODY_BYTES bounded 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’s uploads[] 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 any POST /uploads.json request, so a rejected batch never strands an orphaned upload token on the Redmine server. Breaking: a caller relying on a content_base64 upload over 50 MiB on stdio, or a uploads[] batch over 100 MiB aggregate, is now refused with an in-band FILE_TOO_LARGE instead 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), and authorization_response_iss_parameter_supported: true. REDMINE_MCP_ALLOWED_CLIENT_REDIRECT_URIS gates 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 with oauth mode, so tools/list filtering and INSUFFICIENT_SCOPE denial apply identically once a caller holds a valid bearer token.
  • oauth-proxy mode’s authorization-code + PKCE flow: GET /authorize validates the client and redirect URI before anything else can redirect (an unregistered client_id or redirect URI is a plain 400 with no Location header — never an open redirect), then forwards the request to Redmine’s own /oauth/authorize behind a second, independently generated PKCE pair this server holds on the client’s behalf. GET /auth/callback exchanges 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 /token redeems that code for an opaque rup_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 /mcp is still 401; presenting a valid proxy token resolves it to the stored upstream token and verifies that via the same introspection path oauth mode uses, so scope enforcement and INSUFFICIENT_SCOPE denial are unchanged. A replayed authorization code is invalid_grant and revokes the session it minted.
  • oauth-proxy mode’s refresh_token grant and mode-specific POST /revoke: a rup_rt_-prefixed proxy refresh token is minted alongside the access token whenever the upstream OAuth application issues one, and redeeming it at /token rotates 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 without use_refresh_token enabled still work access-only, with one process-wide WARN naming the missing setting. POST /revoke now has proxy-mode semantics: it accepts a rup_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 answers 200 per RFC 7009 — oauth mode’s /revoke is unchanged. get_mcp_server_info reports registered_clients and active_sessions counts in this mode (null elsewhere) — 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 from tools/list and tools/call fails with “tool not found” rather than an in-band error — the first user of a new plugin-gating mechanism (server.rs’s PLUGIN_TOOLS route-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) — see crates/redmine-client/tests/fixtures/README.md.
  • REDMINE_AGILE_ENABLED=true makes get_redmine_issue report story_points/agile_sprint_id/agile_position from the RedmineUP Agile plugin, and lets update_redmine_issue change them — the three fields ride on both existing tools rather than adding a new one. Writes are a read-modify-write against GET /issues/{id}/agile_data.json because the plugin’s nested agile_data_attributes replaces the whole row rather than merging it: an update naming only one field would otherwise null the others. story_points: null clears it; agile_sprint_id: 0 removes 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 on update_redmine_issue fails in-band with MISCONFIGURED before 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) — see crates/redmine-client/tests/fixtures/README.md.
  • REDMINE_TAGS_ENABLED=true makes get_redmine_issue report an issue’s tags (AlphaNodes additional_tags plugin, each {id, name} with id frequently null) and lets create_redmine_issue/update_redmine_issue replace the full tag set via tag_list — no new tool, like Agile. A tag_list write 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, tags never appears and tag_list fails in-band with MISCONFIGURED before any write happens. Setting tag_list requires create_issue_tags or edit_issue_tags in oauth mode, on top of the tool’s usual add_issues/edit_issues requirement. The wire shape is synthetic, derived from the reference implementation’s handling of the plugin rather than a live capture — see crates/redmine-client/tests/fixtures/README.md.
  • manage_product, registered only when REDMINE_PRODUCTS_ENABLED=true (RedmineUP Products plugin): list/get/create/update — the plugin exposes no delete endpoint. list/get work in read-only mode; create/update are blocked. Flat typed parameters replace the reference’s untyped fields dict for update; an unknown parameter is rejected rather than silently dropped, and an added offset parameter reaches results past the reference’s 100-item ceiling.
  • manage_contact, registered only when REDMINE_CRM_ENABLED=true (RedmineUP CRM plugin): list/get/create/update/delete/ assign_to_project/remove_from_project. list/get work in read-only mode; every other action is blocked. Same flat-typed-parameters and offset divergence as manage_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 reference contact_id only); 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) — see crates/redmine-client/tests/fixtures/README.md.
  • manage_document, registered only when REDMINE_DMSF_ENABLED=true (the redmine_dmsf plugin — open source, GPL v2, but still needs a server-side install this project has not verified against): list/get/ create/update — there is no delete action. list/get work in read-only mode; create/update are blocked. create accepts content_base64 or file_path (reusing the existing upload-path resolver and size cap, not a second implementation) and validates an optional version string before ever uploading, so a malformed one sends zero requests; its response is deliberately sparse ({document_id} only), and the note field points at action="get" for full metadata. update always creates a new revision — it never replaces one — and always pre-fetches the document first so a missing title/ name (which 500s the plugin’s own endpoint) is never sent; a document with no revisions at all is NOT_FOUND with no write attempted. The update route is /dmsf/files/{id}/revision/create.json (a slash, not dmsf_files/{id}), and both write actions spell the stored filename name (not filename) and custom fields custom_field_values (not custom_fields), matching the plugin’s own field names exactly. Same flat-typed-parameters divergence from the reference’s untyped fields dict as manage_product/manage_contact. The wire shapes 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.
  • create_redmine_issue/update_redmine_issue gain a custom_fields parameter — core Redmine, not plugin-gated, paying off a previously deferred decision (G8). Each entry gives exactly one of id (free) or name (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 only issue_id), plus a value that is a string, an array of strings for a multi-value field, or null to clear it. An entry with neither/both of id/name, an unknown or ambiguous name, or a duplicate field id is rejected before any request reaches Redmine. Diverges from the reference’s untyped fields/extra_fields dict (P4): an unresolvable key is a clear error, not silently dropped or passed through. A custom_fields-only update is accepted, not rejected as a no-op; an empty array is not.
  • REDMINE_AUTOFILL_REQUIRED_CUSTOM_FIELDS=true recovers from a 422 naming a required issue custom field as blank or invalid: create_redmine_issue/ update_redmine_issue retry the write exactly once, filled from the field’s own default_value or from the new REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTS map, and report what was filled as autofilled_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 gains missing_required_fields and a hint. REDMINE_REQUIRED_CUSTOM_FIELD_DEFAULTS fails 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, or get_mcp_server_info — only their count. Matching Redmine’s validation message text is English-only.
  • REDMINE_AUTH_MODE=oauth now works end to end for bearer-token authentication: an axum middleware guards the whole /mcp route (including initialize), extracting the inbound Authorization: Bearer token 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 own exp. A missing/malformed/invalid token gets a 401 carrying WWW-Authenticate: Bearer resource_metadata="..."; a broken or misconfigured introspection endpoint gets a 503 with Retry-After, never a 401. The validated token is forwarded to Redmine verbatim. Requires the new REDMINE_INTROSPECT_CLIENT_ID/ REDMINE_INTROSPECT_CLIENT_SECRET(_FILE) variables; oauth on the stdio transport is now a startup error, matching legacy-per-user. See docs/oauth-setup.md.
  • oauth mode 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 the mcp_path-suffixed well-known path by default, or at the root well-known path with REDMINE_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_supported come from a new scope catalogue of Redmine Doorkeeper scope names, gated by REDMINE_MCP_READ_ONLY and the agile/tags plugin flags, and narrowable by the new REDMINE_MCP_SCOPES (an out-of-set entry refuses to boot, naming the accepted set). admin is never advertised. A new POST /revoke narrowly proxies RFC 7009 token revocation to Redmine, forwarding only token/token_type_hint plus 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. /readyz in oauth mode now probes introspection with a synthetic token (bypassing the token cache) instead of reporting not_probed, gaining a checks.introspection field (ok/misconfigured/unreachable). All of the above are unauthenticated and unaffected by the bearer-auth middleware.
  • oauth mode now enforces per-tool scopes: tools/list shows only the tools a bearer token’s scopes permit (with cache_scope: "private" once filtering is active, since the list is per-token), and tools/call on a hidden tool is refused in-band with INSUFFICIENT_SCOPE, naming the missing scope(s), before any Redmine request is made. The map (auth::scope::TOOL_SCOPES) is verified against this server’s own redmine-client call sites, not transcribed from the reference; a token carrying admin bypasses it entirely, and an unmapped tool is denied by default. update_redmine_issue carries a notes-only carve-out (add_issue_notes instead of edit_issues when only notes/ private_notes change) and requires manage_subtasks in addition when reparenting. The new REDMINE_OAUTH_SCOPE_ENFORCEMENT=off restores the prior unfiltered behaviour for tokens minted before scopes existed, logging a startup WARN.
  • REDMINE_AUTH_MODE=legacy-per-user is now implemented: each HTTP request carries its own Redmine credential in X-Redmine-API-Key instead 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, while initialize/ tools/list still succeed with no header. REDMINE_PER_USER_AUDIT_IDENTITY logs a non-reversible per-process fingerprint of the caller’s key, never the key itself. See docs/legacy-per-user-auth.md for the threat model.
  • create_redmine_issue/update_redmine_issue accept an optional uploads array (max 10 items) to attach files in the same request, via the same content_base64/file_path sources as upload_file (source_url always refused with UNSUPPORTED_SOURCE). Files are attached through Redmine’s issue-native uploads: [{token, ...}] shape, not the Files-module two-step flow; the response’s issue.attachments reflects the newly attached files.
  • REDMINE_PUBLIC_URL now 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 origin matches REDMINE_URL’s, preserving path, query, fragment, and any reverse-proxy sub-path baked into REDMINE_PUBLIC_URL itself.
  • upload_file: uploads a file and attaches it to a project’s Files module (POST /uploads.json then POST /projects/{id}/files.json). Accepts content_base64 (requires filename) or file_path (an absolute path inside ATTACHMENTS_DIR or a REDMINE_MCP_UPLOAD_FILE_ROOTS entry, capped at 50 MiB and validated against symlink/FIFO/device traversal before it is ever opened); source_url is recognised but always refused with UNSUPPORTED_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 when REDMINE_MCP_EXPOSE_ADMIN_TOOLS=true.
  • REDMINE_MCP_UPLOAD_FILE_ROOTS and REDMINE_MCP_EXPOSE_ADMIN_TOOLS are now read by upload_file/cleanup_attachment_files respectively (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 requires confirm_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 absolute file_path over stdio (uri_type tells you which). The per-file byte cap (ATTACHMENT_MAX_DOWNLOAD_BYTES) is enforced against bytes actually streamed, never a Content-Length header or Redmine’s own filesize metadata; a full store first sweeps expired entries, then refuses with STORE_FULL rather than filling the disk.
  • A local attachment store (now used by get_redmine_attachment): AttachmentStore stages downloaded Redmine attachments under ATTACHMENTS_DIR in 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 after ATTACHMENT_EXPIRES_MINUTES both 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 with Content-Disposition: attachment, X-Content-Type-Options: nosniff, Cache-Control: no-store, and the same Host allowlist check as /mcp.
  • PUBLIC_SCHEME and a derived public_base origin, for building /files/{uuid} URLs correctly behind a TLS-terminating proxy.
  • REDMINE_MCP_UPLOAD_FILE_ROOTS, REDMINE_MCP_EXPOSE_ADMIN_TOOLS, and REDMINE_PUBLIC_URL are now validated (previously listed as “not yet implemented”); REDMINE_PUBLIC_URL’s content_url-rewriting behaviour is not applied yet.
  • Opt-in REDMINE_MCP_SCHEMA_DIALECT=portable for clients whose provider rejects $ref/$defs and nullable type arrays in function-calling declarations (Google Vertex/Gemini). Default strict is unchanged.
  • Streamable HTTP transport (--transport http), serving the same MCP server as stdio at FASTMCP_STREAMABLE_HTTP_PATH (default /mcp). Stateless mode: GET/DELETE on the MCP route return 405, and no session id is issued.
  • Host and Origin allowlisting, a streamed request-body cap, exact-match CORS, X-Content-Type-Options: nosniff, and graceful drain on SIGTERM.
  • /livez, /readyz, and a /health alias, 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_info reports the active transport.
  • Cargo workspace scaffold with redmine-client and ruprogress-mcp crates.
  • Workspace-wide lints, rustfmt.toml, deny.toml, and CI gates.
  • Every tool returns structured content (structuredContent) validating against a declared JSON output schema, plus readOnlyHint/ idempotentHint/openWorldHint annotations.
  • 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) and REDMINE_MCP_MAX_RESPONSE_BYTES (default 256 KiB) cap list-tool response size, surfaced as pagination.truncated plus a hint rather than a silent cut.
  • redmine-client: Scoped::get_collection/Scoped::fetch_page request 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 existing get_current_user. Each resolves a name to an id before a create/update tool needs it. list_redmine_users requires an admin credential and clamps limit to 1-100; a non-admin call returns a FORBIDDEN error naming get_current_user as the next step instead of retrying.
  • redmine-client: Tracker and IssueStatus models, an admin field on User, a trackers field on Project (populated only when include=trackers was requested), and Scoped::list_trackers/ list_issue_statuses/list_issue_priorities/list_users/ list_saved_queries.
  • A payload-safety logging floor: whatever --log-level/RUST_LOG requests is combined with a fixed cap on rmcp, hyper, hyper_util, h2, reqwest, rustls, and wiremock at info (and tower_http::trace at debug, metadata only) — the dependencies whose own DEBUG/TRACE output 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 startup WARN naming 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 the oauth-proxy flow routes (REDMINE_MCP_RATE_LIMIT_AUTH_RPS/_BURST, default 1 rps / burst 10, since those routes are attacker-attractive). Both key by peer IP — never X-Forwarded-For/X-Real-IP, which a client could set itself to bypass the limiter — except the standard class, which keys /mcp by 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_KEYS bounds each class’s bucket map, evicting the least-recently-touched key at capacity. A rejected request gets 429 {"error": "rate_limited"} with Retry-After and Cache-Control: no-store; /livez, /readyz, and /health are never rate limited.
  • One tool_call span per tools/call, on both transports, closed by a single event carrying the tool name, a process-local request_id (not a client-supplied or W3C trace id — nothing propagates it over the wire), outcome (ok/error/denied/panic) plus code when not ok, and duration_ms — never an argument value or key. REDMINE_MCP_LOG_FORMAT (text, default, or json, 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 a docker-compose.yml for a locked-down run with a read-only root filesystem and a named volume for the attachments directory. A new --healthcheck CLI flag GETs /livez and exits 0/1 (distroless has no shell or curl for a HEALTHCHECK to invoke another way); the image’s own HEALTHCHECK runs 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/uint64 integer format values schemars emits for u32/u64 fields, which made strict JSON Schema clients (e.g. opencode’s Ajv-based validator) log an “unknown format” warning per field on every tools/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_tool now 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, not 0.0.0.0:8000.
  • list_redmine_projects now returns {"projects": [...], "pagination": {...}} instead of a bare JSON array, so structuredContent is a JSON object per the MCP spec.
  • The prompt-injection delimiter scheme is now explained once per session in the MCP initialize instructions, instead of a repeated text block on every tool response.
  • /health reports readiness only; it no longer carries version, auth mode, read-only state, or plugin flags. Those remain on get_mcp_server_info and --print-config.
  • A non-loopback SERVER_HOST with neither PUBLIC_HOST nor REDMINE_MCP_ALLOWED_HOSTS now fails at startup rather than serving with Host validation silently disabled. Porting an upstream .env that sets only SERVER_HOST=0.0.0.0 needs one added variable; the error message names both options and the * opt-out.
  • The release build now sets lto = "thin", codegen-units = 1, and strip = "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 h2 to 0.4.16, fixing an advisory where empty DATA frames were accepted and queued without limit (unbounded memory, or a panic on length overflow) — pulled in transitively through axum, reqwest, rmcp, and wiremock alike.

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:

  1. Land the release-automation changes on main; confirm CI (including the package job) is green.

  2. Manually publish 0.9.0 from a clean checkout of that commit, using a personal crates.io API token:

    cargo publish -p redmine-client --locked
    cargo publish -p ruprogress-mcp --locked
    

    This is the only step that ever needs a long-lived token — it is not stored anywhere in this repo.

  3. On crates.io, add four trusted-publisher configs (2 crates × 2 workflow filenames), each with owner geckonia, repo ruprogress-mcp, environment release:

    • release.yml (the hand-pushed-tag / workflow_dispatch path)
    • release-plz.yml (the automated path — crates.io matches the calling workflow’s workflow_ref, not job_workflow_ref, so a workflow_call from release-plz.yml presents that filename, not release.yml)

    Registering only release.yml leaves the automated path broken in a way that only shows up on the second release.

  4. In the GitHub repo settings: create a release environment, and enable Settings → Actions → General → Allow GitHub Actions to create and approve pull requests (release-plz’s PR job needs it).

  5. Push the v0.9.0 tag by hand. release.yml fires on push: tags, builds the Linux x86_64/aarch64 tarballs, creates the GitHub Release, pushes the multi-arch ghcr.io image, and its publish job no-ops on already uploaded — exercising that retry tolerance for real on day one.

  6. Set the ghcr.io/geckonia/ruprogress-mcp package visibility to public and link it to the repository.

  7. From the next merge to main, release-plz owns versions, changelog, tag, and release — see the steady-state flow below.

Steady state

  1. Merge conventional-commit PRs (fix:, feat:, feat!:/BREAKING CHANGE:, …) to main as usual.
  2. release-plz.yml’s release-plz-pr job opens or updates a release PR proposing the next version and its CHANGELOG.md entry.
  3. Merging that PR runs release-plz-release, which tags v<x.y.z> and creates the GitHub Release (git_tag_enable/git_release_enable are pinned to the ruprogress-mcp package in release-plz.toml, so exactly one tag is created even though this is a two-crate workspace).
  4. That job’s publish step calls release.yml with 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.yml job failed (build, assets, container, or publish): re-run it with workflow_dispatch, passing the existing tag (ref: v<x.y.z>). Every job is idempotent: assets reuses an existing GitHub Release, container/container-manifest overwrite the same tag, and publish treats crates.io’s already uploaded/already exists as 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>); the push: tags trigger picks it up.
  • crates.io accepted redmine-client but the job died before ruprogress-mcp: just re-run publish (via workflow_dispatch on release.yml or a re-run of the failed run) — the per-crate -p publish 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 fmt CI 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 .env into the process environment, then a validating constructor builds the AuthMode enum from std::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

Requirementmust?redmine-api 0.11.5
Per-request credential (not a client-per-user)mustNo. 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)mustPartial. 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 verbsmustNo. No retry logic found in lib.rs/api.rs; no Retry-After handling.
rustls, no OpenSSL; custom CA + mTLSmustPartial. 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/429mustNo. 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)mustYes — both sync and async APIs, async is described as “significantly newer”.
Maintained (release within ~12 months)mustYes — 0.11.5 published 2026-06-08, ~2 months before this ADR.
Plugin endpoints (Agile/Checklists/DMSF/…)niceNo — 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

  1. serve() over tokio::io::duplex works, no extra feature needed. rmcp’s own integration tests (tests/test_tool_macros.rs, tests/test_server_initialization.rs, etc.) call server.serve(server_transport) / client_handler.serve(client_transport) directly on tokio::io::duplex(4096) halves. This goes through the (R, W): IntoTransport impl gated by transport-async-rw, which the server feature already pulls in — transport-io (which adds tokio/io-std for real stdin/stdout) is not required for an in-process duplex harness. The e2e test harness needs no extra dev feature beyond client on rmcp.
  2. Default protocol version is ProtocolVersion::LATEST (V_2025_11_25 in this SDK snapshot), via impl Default for ProtocolVersion. ServerInfo::new()/InitializeResult::new() rely on this default rather than pinning V_2024_11_05 as the upstream counter example does. We do not call .with_protocol_version(...) in server.rs.
  3. No rustls provider conflict. ruprogress-mcp does not enable rmcp’s own reqwest feature (rmcp/reqwest) — only server, macros, transport-io, and (dev) client. All Redmine HTTP traffic goes through redmine-client’s own reqwest dependency (rustls feature, no rmcp involvement). There is therefore no second reqwest/rustls provider in the dependency graph from rmcp’s side; cargo tree -d after adding the dependency shows a single reqwest resolution.

Verified rmcp 3.1.1 API shape

Confirmed against the actual 3.1.1 crate contents:

  • #[tool_handler] takes only an optional meta = ...; identity/instructions come from ServerHandler::get_info() -> ServerInfo.
  • ToolRouter::{remove_route, disable_route, has_route, list_all} all exist; remove_route deletes the entry entirely (self.map.remove(name)), so both tools/list and tools/call (“tool not found”, invalid_params) are affected — one choke point for read-only mode.
  • ContentBlock::text(...) and CallToolResult::success(...) match the upstream counter example.
  • Implementation::from_build_env() is the default server_info on InitializeResult::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.

  1. The DNS-rebinding guard is built in. allowed_hosts defaults to ["localhost", "127.0.0.1", "::1"] and rejects a mismatched Host with 403 (validate_dns_rebinding_headers, ~:860). allowed_origins defaults to [] (Origin validation disabled) and does RFC 6454 (scheme, host, port) matching when non-empty. Malformed or non-UTF-8 headers are 400. Hand-rolling any of this would only add a second rejection path with different codes and different logs.
  2. The body cap is built in. max_request_body_bytes (4 MiB default) is enforced while streaming the body, so Content-Length, chunked encoding, and HTTP version cannot be used to get around it. RequestBodyLimitLayer on top would be redundant and weaker.
  3. Extension<T> does exist, at rmcp::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.
  4. A blanket timeout on the MCP route is wrong. tower_http’s timeout covers the whole response including the body. Even with json_response = true, rmcp falls back to text/event-stream if 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.
  5. axum::Router::nest can drop the Host header hyper synthesises from an HTTP/2 :authority; rmcp works around it by falling back to uri.authority() (parse_host_header, ~:850). We use nest_service, as upstream’s own tests do, and tests/http_edge.rs asserts Host validation still fires through the full axum layer stack.

Three further findings, each contradicting the design that preceded this ADR:

  1. tower-http 0.7 does not dedupe. reqwest 0.13 depends on tower-http ^0.6.8, so requesting 0.7 in [workspace.dependencies] compiles two copies of the crate. The workspace is pinned to 0.6.
  2. config.cancellation_token is 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 as axum::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’s a_shutdown_signal_lets_an_in_flight_tool_call_finish fails with that 500 if the two are ever merged again.
  3. A port-less allowed_hosts entry matches any port (host_is_allowed, tower.rs:759). Adding both host and host:port, as originally specified, therefore makes the qualified entry — and PUBLIC_PORT — decorative. PUBLIC_HOST alone now adds the bare host, and PUBLIC_PORT replaces it with the pinned form.

Decisions

#DecisionRationale
D1Default bind 127.0.0.1:8000, diverging from upstream’s 0.0.0.0One shared API key on every interface is one docker run -p from an unauthenticated Redmine proxy
D2Split /livez (process only) and /readyz (TTL-cached probe); /health aliases /readyzA single /health invites wiring a dependency check to a livenessProbe, turning a Redmine blip into a restart storm
D3Stateless: legacy_session_mode = false, json_response = true, NeverSessionManagerNo in-memory session state, plain JSON responses, no Mcp-Session-Id to expose through CORS, and edge tests writable with plain reqwest
D4legacy-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
D5No rate limiting yetPer-token keying only becomes meaningful once OAuth exists
D6A non-loopback bind with no Host policy is a startup errorThe 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 CancellationToken and 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 in docs/configuration.md exists so the next reader does not “unify” them.
  • /readyz is an unauthenticated Redmine liveness oracle, and it sits outside the Host allowlist (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/u32 fields to i64/i32. Rejected: redmine-client’s id types and Page counts are genuinely unsigned. This would spray try_from/casts through every tool that touches an id, and drops the minimum: 0 constraint 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 stays u64.
  • 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 a uint64 string 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 the format key 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/$defs pair (all 16 of this server’s input-schema $defs are small and non-recursive, so inlining is safe and — since a $ref node repeated in properties no longer shares a single $defs entry — even shrinks tools/list slightly).
  • Collapse {"type":["T","null"]} (every Option<T> for a scalar T) to {"type":"T"}.
  • Stage 2, confirmed necessary: collapse a bare untagged anyOf (no sibling type) into {"type": "string"} when every branch is a leaf scalar schema. Covers ProjectRef/AssignedToRef/UserRef. See tools::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 auth feature and transport::auth module are an OAuth client (this process authenticating to another MCP server) — AuthClient/OAuthState/AuthorizationManager. Nothing in streamable_http_server/ ever emits a WWW-Authenticate header. Enabling that feature would pull in oauth2 for 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 HTTP 401 carrying WWW-Authenticate: Bearer resource_metadata="…". A JSON-RPC-level error inside a 200 response (the legacy-per-user shape) is invisible to that machinery — the client never starts the OAuth flow. This means every MCP request, initialize included, needs a token in this mode; legacy-per-user’s decision to leave initialize/tools/list open does not carry over.
  • O2 — fail closed on a missing AuthContext. The middleware inserts a validated AuthContext into the request extensions; scoped()’s OAuth arm reads it back out and returns client.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 to Credential::Basic, not a second reqwest::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 ignore REDMINE_SSL_VERIFY and 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 exp and 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 stray Debug. A fingerprint collision in a log line (the shape legacy-per-user’s KeyFingerprint uses) 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, never 401. 401 tells 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 in docs/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 by POST /revoke purging 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 for legacy-per-user’s audit fingerprint) is the wrong trade-off for a cache key rather than a log breadcrumb.
  • legacy and legacy-per-user are untouched. The middleware is mounted only when RedmineMcp::verifier() returns Some (i.e. only in oauth mode), 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 of OsRng output, stored server-side keyed by its SHA-256 digest; the plaintext is never a map key and never appears in a Debug/core-dump-walkable structure. The reference implementation (FastMCP’s OAuthProxy) 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/_FILE is accepted and ignored, with one startup WARN naming it as unused, so the reference server’s .env still 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 no FASTMCP_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 same 401 challenge it already implements for the ordinary token-expiry case. Multiple replicas behind a round-robin load balancer are unsupported — a flow that starts /authorize on one instance and lands /auth/callback on another fails — so this mode is documented as single-instance (or sticky-session) only, in docs/oauth-setup.md.
  • No transparent refresh inside the request path — refreshing happens exactly once, in /token’s refresh_token grant. 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 the refresh_token grant already solves within the protocol. A proxy access token whose upstream token has expired is invalid_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_token disabled never gets a refresh token to use in the first place (logged once per process, not once per request). Both are documented in docs/oauth-setup.md rather 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_info exposes registered_clients/active_sessions counts in this mode, null elsewhere — 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_TTL the 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 /register is 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 from TokenStore/RefreshStore the same way the upstream session deadline above is) nor used within the last hour (CLIENT_IDLE_TTL, well above TRANSACTION_TTL so a registration mid-authorization is never at risk); a still-full registry after the sweep degrades to the existing 503 + Retry-After. This trades a bounded /register lockout 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::policy holds pure, I/O-free vocabularies.
  • Nothing under src/policy/ imports from crate::.
  • config imports no crate module other than policy.
  • transport::stdio imports nothing from tools, oauth or logging.
  • tests/module_layering.rs enforces these rules textually; it skips comment lines and does not check super:: 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 policy only.
  • policy::limits, policy::log_format and policy::redirect are public API; policy::scopes is crate-private. RedirectPolicy can be named outside the crate.
  • A new vocabulary that config needs from a higher layer moves into policy first.
  • The rmcp allowed_hosts restatement stays in config, because it describes an external crate’s behaviour.