Being able to move between Replicate and Together without changing how the assistant calls it is the practical benefit — provider pricing and model availability shift, and here that is a variable rather than a rewrite. The default model is a fast one, so raise MODEL_NAME if you want quality over latency.
A small image generator that sits in front of two providers. You pick one at start-up; the tool call stays the same either way.
- `generate_image` takes a `prompt` and returns the generated image
- Optional `width` and `height`, both defaulting to 512, and `numberOfImages` defaulting to 1
- Provider choice between Replicate and Together, switched by an environment variable rather than a different tool
The npm package @gmkr/mcp-imagegen, version 1.0.0, run locally over stdio, or the repository's Docker image serving SSE on port 3000. PROVIDER must be set to replicate or together, with the matching credential in REPLICATE_API_TOKEN or TOGETHER_API_KEY. MODEL_NAME defaults to black-forest-labs/flux-schnell.
