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

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.