MCP
Connect a streamable HTTP MCP client to http://localhost:8000/v1/mcp. Add the bearer token to the client headers when IMAGIES_AUTH_TOKEN is set. If you connect by a reverse proxy or container service name, add the Host header the server will receive to IMAGIES_MCP_ALLOWED_HOSTS.
| Tool | Arguments | Result |
|---|---|---|
transform | spec with a staged image ID and edit options | Staged output image |
montage | spec with image IDs and grid options | Staged contact sheet |
match | spec with image IDs and text queries | Ranked matches by image |
detect | spec with image IDs and an optional confidence threshold | Object labels, scores, and normalized boxes |
generate | Full model ID from GET /v1/models, prompt, and optional size such as 512x512 | One staged output image. Requires generation weights. |
Upload inputs and download staged results using the REST API. The spec argument takes the same JSON object as the matching REST endpoint.
For example, call transform with these arguments. Replace the example image ID with the ID returned by the upload.
{
"spec": {
"image_id": "00000000000000000000000000000000",
"width": 640,
"height": 480,
"fit": "contain",
"format": "webp"
}
}