MCP Compatibility and Catalog¶
The stable redisctl 1.x MCP contract is the tool surface exposed by the stdio server for a
documented feature set. The all-features catalog is recorded in
mcp-catalog-v1.json
and checked in CI.
The current all-features baseline contains 376 tools:
| Toolset | Tools |
|---|---|
| Cloud | 150 |
| Enterprise | 84 |
| Database | 132 |
| App/profile | 8 |
| System | 2 |
Runtime discovery remains authoritative for a particular installation. Feature flags, --tools,
visibility presets, and policy tiers can expose a supported subset of this catalog. Call
list_available_tools to inspect that resolved subset.
Rust embedding API¶
For the experimental external database backend, see the Database MCP Migration Contract. It defines fixed startup target selection and the opt-in pilot's compatibility/parity gates; it does not change the currently released legacy backend or its catalog.
The supported Rust embedding entry point is McpServerBuilder. It constructs the same router used
by the redisctl-mcp binary, including:
- the tool-to-toolset mapping used by per-toolset policy rules;
- safety-tier and allow/deny filtering;
- visibility presets and the two system tools;
- built-in and dynamically loaded prompts; and
- server instructions and shared application state.
This is an intentional security boundary: creating state with a policy is not sufficient unless the router also installs that policy as a capability filter. The binary and library now share one construction path so those behaviors cannot drift. A toolset disabled by policy remains disabled even when a caller or CLI invocation selects it explicitly.
Generated input structs and individual tool-constructor functions are implementation details, not
supported Rust APIs. They are hidden in normal builds. The test-support feature exposes them only
for redisctl's own integration tests and carries no 1.x compatibility promise. The MCP names,
schemas, annotations, and tiers produced by those internals remain protected by the catalog
contract described on this page.
What the catalog records¶
Each entry records:
- the tool name, toolset, and submodule;
- its normalized input JSON Schema;
- its structured
outputSchema, ornullwhen the tool does not declare one; - all MCP safety annotations with protocol defaults made explicit; and
- the minimum redisctl safety tier derived from those annotations.
Schema titles, descriptions, examples, and the repeated $schema declaration are excluded from
the fixture. They are explanatory text rather than callable input constraints. Defaults, types,
formats, accepted variants, required fields, and other validation constraints remain in the
contract.
Most current tools return MCP text content and do not declare a structured outputSchema.
outputSchema: null records that fact; it does not turn prose or upstream-controlled JSON into a
new structured guarantee. When redisctl owns and publishes a structured output schema, that schema
becomes part of the catalog contract.
Compatibility rules¶
The contract test classifies changes before maintainers update the fixture:
| Change | Classification |
|---|---|
| Add a tool or optional input | Additive; requires catalog and documentation review |
| Remove or rename a tool or accepted input | Breaking |
| Add a required input or a stricter input constraint | Breaking |
| Add an accepted schema variant or relax a constraint | Additive; requires review |
| Remove or change an existing structured output schema | Breaking |
| Move a tool to a less restrictive safety tier | Safety regression; prohibited |
| Make a tool more restrictive | Compatibility change requiring security rationale and migration guidance |
| Change idempotence or open-world annotations | Reviewed as a behavioral contract change |
Both additive and breaking differences fail the snapshot test. This prevents a new tool or field from entering the stable catalog merely because it compiles. The failure explains the detected classification so the pull request can apply the appropriate SemVer, documentation, and migration treatment.
Pre-1.0 migration: strict tool inputs and aggregation¶
The change in PR #1225 intentionally
tightens input acceptance before 1.0. Unknown properties in application tool inputs and typed
nested argument objects now produce an Invalid input: unknown field ... error instead of being
silently ignored. This is a breaking input-acceptance change, not merely an additive schema
refresh. It affects application/tool inputs; the two system tools are
unchanged. It does not change safety tiers or authorize additional operations.
Clients adopting a build with this change should:
- Refresh MCP
tools/listschemas and validate arguments against the tools actually exposed. Correct misspelled fields such asgroupbytogroup_by; do not retry the same invalid input. - Keep tracing labels and other client metadata outside tool arguments. Remove undeclared
properties from typed nested arguments too, such as entries in an alias's
commandsarray. - Preserve application data inside documented payload fields. Arbitrary JSON inside raw API
bodyvalues and arbitrary keys in declared string maps (for exampleredis_hset.fields) remain data, not unknown tool arguments. Their existing value types and upstream validation still apply. Do not move metadata into a data payload merely to evade input validation.
redis_ft_aggregate also changes intentionally:
- Calls with only
indexandquery(including pagination-only calls) now fail with pipeline guidance. Useredis_ft_searchfor a document search, or provide aggregation stages. reducetakes one reducer specification per string, not one token per entry. For example:
{
"index": "idx:products",
"query": "*",
"group_by": ["@category"],
"reduce": ["COUNT 0 AS count"],
"sort_by": ["@count", "DESC", "MAX", "10"],
"limit_num": 10
}
- Structured stages run in this order:
LOAD,GROUPBY/REDUCE,raw_args,SORTBY,LIMIT. Reducer strings are whitespace-tokenized, not shell-quoted. For tokens containing whitespace, orAPPLY/FILTERstages needed before grouping, supply the complete ordered pipeline throughraw_argsand omit the corresponding structured stages. Each raw array element is one token. sort_byaccepts properties with optionalASC/DESCand an optional trailingMAXcount. Use explicit@max,@ascor@descfor keyword-named sort properties to avoid ambiguity.- The text heading is now
Results: N, counting rows returned, not all matched documents or an unpaginated total. Clients that parse the previous heading must adapt. This does not add cursor support or make free-form text a structured output schema.
This pre-1.0 decision does not weaken the 1.x compatibility rules above. Released versions without the change keep their existing behavior; check the release notes and discovered schemas when upgrading.
Credential values in database read responses¶
Enterprise list_enterprise_databases and get_enterprise_database now replace populated
authentication_redis_pass, authentication_admin_pass, and authentication_sasl_pass values
with [REDACTED] before constructing either MCP text or structured content. Database identifiers,
health/security flags, usernames, filtering and result counts remain available. Null and empty
credential values retain their existing representation, so an unset credential is not reported
as a populated one. Existing nested credential-name and Redis URL redaction is also applied.
redis_config_get similarly redacts populated requirepass, masterauth, tls-key-file-pass,
and tls-client-key-file-pass values. Redaction uses the returned parameter names, including
wildcard results; parameter labels/counts, empty values and non-secret configuration values
remain available. These names cover the sensitive password/passphrase parameters in Redis 8.2;
they are not a promise that arbitrary module configuration or all future parameters are safe.
This is intentional output-compatibility tightening. Clients must treat [REDACTED] as a display
marker, never as a reusable credential. Workflows that previously retrieved credentials through
these MCP reads must use a separate authorized credential-management channel. There is no
model-visible secret-display override. This change does not modify CLI/API-client output,
credential storage, audit behavior, tool schemas, policy tiers or connection selection, nor does
it certify other read-only tools or raw API responses as secret-free.
Security exception: arbitrary Redis command surfaces¶
redis_alias_run was previously advertised as read-only and idempotent, and redis_bulk_load as
non-destructive, even though either tool can execute commands that delete data. Both execution
surfaces are now conservatively annotated destructive, making Full the minimum tier at which they
are discovered by default. redis_alias_set remains a write tool because it stores rather than
executes commands. At invocation time, all three tools classify every contained command and require
Full policy for destructive or unknown behavior. This is an intentional compatibility restriction:
leaving the old annotations in place would let the same Redis operation bypass policy simply by
entering through an alias or bulk batch.
Clients migrating from the earlier catalog should account for these changes:
- Read-only and Read-write clients no longer discover
redis_alias_runorredis_bulk_loadby default. An explicit allow may expose one of these surfaces to a narrower policy, but it does not raise the runtime ceiling: dynamically destructive or unrecognized commands still require Full. redis_alias_setremains available at Read-write for non-destructive commands; destructive or unrecognized commands still require Full before they can be stored.- Prefer dedicated MCP tools when possible, and avoid a blanket allow for an arbitrary-command surface unless the client should receive that full capability.
- Connection-state changes, blocking commands (including
XREAD/XREADGROUPwithBLOCK), unsafe administrative variants, andSCRIPT DEBUGare blocked at every tier. Existing aliases containing them must be replaced rather than granted a broader policy.
This exception makes the catalog more restrictive to close an authorization bypass. It does not rename or remove a tool or change its input schema.
Pre-1.0 migration: unsupported alert acknowledgement¶
acknowledge_enterprise_alert is removed from the catalog. Its
DELETE /v1/alerts/{uid} route does not exist in the Enterprise REST API, which has no
documented alert acknowledgement operation to substitute. This is an intentional breaking
catalog removal before 1.0.
Clients must refresh tools/list and remove calls to this tool from saved workflows. Use
list_alerts to read the current cluster alert states. The remaining Enterprise observability
tools remain available under their existing policy tiers.
Reviewing an intentional catalog change¶
- Run the contract test without updating the fixture and inspect its classification:
- Apply the compatibility policy. For an incompatible 1.x change, retain the old tool or input and use the deprecation process unless a documented safety exception applies.
- For an accepted additive change, or while deliberately preparing the pre-1.0 baseline, refresh the fixture:
- Review the fixture diff. Update the tools reference, release notes, policy examples, bundled skills, and migration guidance as applicable.
- Run the test again without
UPDATE_MCP_CATALOGbefore committing.
The fixture is generated through an in-process MCP client and tools/list, so it tests the router
surface a client actually discovers rather than only checking handwritten name constants.
Tool deprecation¶
A stable tool or input scheduled for replacement must:
- remain available under its existing name and behavior;
- identify the replacement in its tool description and reference documentation;
- be called out in release notes with migration guidance;
- remain available for at least one minor release and 90 days, whichever is longer; and
- be removed only in a major release.
An optional replacement input may be added in a minor release. Making that input required still waits for a major release. Preview and internal tools follow the broader Compatibility and Support Policy.
Transports and deployment modes¶
- Stdio is stable for 1.0. Startup behavior, safe defaults, and catalog discovery follow the stable contract.
- HTTP is preview. It has no built-in client authentication. Keep it on loopback or place it behind a trusted gateway providing authentication, authorization, and TLS.
- Feature-gated builds are supported subsets. A build without
cloud,enterprise, ordatabasedoes not advertise that toolset. - Raw API tools are preview passthroughs. Their presence and redisctl-owned input contract are recorded, but upstream endpoint behavior and response fields follow the upstream service.
Bundled Agent Skills¶
Bundled Agent Skills remain preview, but CI validates that every SKILL.md:
- has parseable
nameanddescriptionfrontmatter; - uses a unique name matching its directory;
- contains a non-empty workflow; and
- references tools present in the compiled all-features catalog.
This prevents a skill from shipping with a stale tool call while leaving broader skill catalog and workflow development independent of the 1.0 MCP contract.