Skip to content

fix(mcp): expose subjectReference for text_to_image - #27

Open
dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/text-to-image-reference-17
Open

dvd233 wants to merge 1 commit into
MiniMax-AI:mainfrom
dvd233:fix/text-to-image-reference-17

Conversation

@dvd233

@dvd233 dvd233 commented Sep 22, 2026

Copy link
Copy Markdown

Summary

  • expose the existing subjectReference option in the stdio and SSE text_to_image schemas
  • advertise the same option in the REST tools/list schema

Why

ImageAPI.generateImage already accepts subjectReference, and both README files document it. However, all three MCP transports omitted the option from their tool schemas. Zod therefore strips it from stdio/SSE calls, while REST clients cannot discover it from tools/list, making the documented character-reference capability unavailable through MCP.

This keeps the transport contracts aligned with the existing API implementation without changing request handling or the MiniMax API payload.

Verification

  • pnpm run build
  • schema smoke test covering stdio, SSE, and REST tool definitions
  • ImageAPI forwarding probe for subjectReferencesubject_reference
  • git diff --check

The repository's existing pnpm run lint reports formatting failures in untouched baseline files; this change avoids reformatting unrelated code.

Related to #17


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant