This release includes 3 breaking changes for platform teams planning a safe upgrade.
✓ No known CVEs patched in this version
Topics
Affected surfaces
Summary
AI summaryMigrates to @modelcontextprotocol/sdk 1.29.0 and replicate 1.4.0, adds structured output, progress notifications, a generic model runner, prompt templates, and logging changes.
Full changelog
Migrates from @modelcontextprotocol/sdk 1.7 → 1.29.0 and replicate 1.1 → 1.4.0, then layers on features that take advantage of the newer MCP spec (protocol revision 2025-11-25).
SDK migration
- Every tool moves to
registerToolwith a proper config object (title,description,annotations,inputSchema,outputSchema). - Resources move to
registerResourcewithResourceTemplate+ list callback +{ title, description, mimeType }config. handleErrorreturns{ isError: true }CallToolResultinstead of throwingMcpError, matching the current MCP spec.- Server advertises
prompts: {}andlogging: {}capabilities.
New capabilities
- Structured output — every
generate_*tool returns machine-readablestructuredContentmatching a per-tooloutputSchema(URL, prompt, format, aspect_ratio, seed where applicable). - Progress notifications —
generate_multiple_imagesandgenerate_image_variantsemitnotifications/progresswhen the client supplies aprogressToken. run_replicate_model— generic escape hatch accepting anyowner/name[:version]reference, gated by the optionalREPLICATE_MODEL_ALLOWLISTenv var. Fail-closed when the env var is set but empty.get_model_schema— fetches a model's OpenAPI input schema for introspection before callingrun_replicate_model.- 5 prompt templates —
logo,portrait,svg-icon,product-shot,isometric-diagramexposed viaregisterPrompt(slash palette in Claude Desktop,@-menu in Cursor). - Structured logging — resource errors travel over
notifications/messageviaserver.sendLoggingMessageinstead ofconsole.error.
Housekeeping
- Shared helpers:
src/utils/image.ts(mimeFor,fetchWithAuth, base64/svg fetch),src/resources/fetchPredictions.ts(paginate + error-log used by all three list resources). sharedImageParamsinsrc/types/index.ts— the three image-generation schemas no longer duplicate the same 8 fields.run_replicate_modelonly emits animagecontent block when the guessed MIME is actually an image type (prevents clients from choking on non-imageimageblocks).- Dropped a redundant
predictions.getcall increatePredictionwhose return value was never used. - README fully refreshed for the 0.4.0 surface (prompts, structured output, env-var semantics, testing note).
Environment variables
| Variable | Required | Purpose |
| --- | --- | --- |
| REPLICATE_API_TOKEN | yes | Replicate API token. |
| REPLICATE_MODEL_ALLOWLIST | no | Comma-separated owner/name entries gating run_replicate_model. Unset = any model allowed. Set-but-empty = deny all. |
Install
npx -y replicate-flux-mcp
Or configure via MCP client — see the README.
Breaking Changes
- All tools must use `registerTool` with a full config object (`title`, `description`, `annotations`, `inputSchema`, `outputSchema`).
- Resources must be registered via `registerResource` using `ResourceTemplate`, a list callback, and `{ title, description, mimeType }` configuration.
- `handleError` now returns `{ isError: true }` in a `CallToolResult` instead of throwing `McpError`, aligning with the current MCP spec.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About awkoy/replicate-flux-mcp
Provides the ability to generate images via Replicate's API.
Related context
Beta — feedback welcome: [email protected]