tai-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | 监听地址 | 0.0.0.0 |
| MCP_PORT | No | 监听端口 | 8001 |
| MCP_API_KEY | No | MCP 客户端 Bearer Token;公网部署必须设置 | |
| TAI_IMAGE_MODEL | No | generate_image 的默认模型 | tai-text-to-image |
| MCP_CORS_ORIGINS | No | 浏览器客户端的精确 Origin,逗号分隔 | |
| MCP_MAX_IMAGE_BYTES | No | 允许回传的最大解码图片大小 | 20971520 |
| TAI_OPENAPI_API_KEY | Yes | 上游 tai-openapi 原始 Bearer Token,必填 | |
| TAI_IMAGE_EDIT_MODEL | No | edit_image 的默认模型 | tai-image-to-image |
| TAI_OPENAPI_BASE_URL | No | 上游地址,必须以 /v1 结尾 | http://127.0.0.1:8000/v1 |
| MCP_CONNECT_TIMEOUT_SECONDS | No | 上游连接超时 | 10 |
| MCP_REQUEST_TIMEOUT_SECONDS | No | 包含生图时间的上游总超时 | 330 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageA | Generate one image from a text prompt. Args: prompt: Detailed text description of the image to create. size: Optional WIDTHxHEIGHT accepted by the selected tai-openapi model. seed: Optional deterministic seed in the range 0..4294967295. model: Optional model alias; defaults to tai-text-to-image. response_format: Image response format: "url" or "b64_json" |
| edit_imageA | Edit an image through a tai-openapi edit model. Args: prompt: Edit instruction. The field is required; models that ignore it accept "". images: Ordered PNG, JPEG, or WebP inputs as base64 strings or data URLs. size: Optional WIDTHxHEIGHT; only pass it when capabilities input.size is true. model: Optional edit model alias; defaults to TAI_IMAGE_EDIT_MODEL. mask: Optional PNG, JPEG, or WebP mask as base64 or a data URL. Follow the capabilities input.mask policy. response_format: Image response format: "url" or "b64_json". parameters: Model-specific JSON values matching capabilities.parameters_schema. |
| get_image_model_capabilitiesA | Describe the exact inputs accepted by one enabled image edit model. The result includes the required image count, mask policy, size support, prompt requirement, JSON Schema for parameters, and a parameters example. Args: model: Enabled tai-openapi edit model alias to inspect. |
| list_image_modelsA | List model aliases currently exposed by tai-openapi. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool targets a distinct operation: generate_image creates new images, edit_image modifies existing ones, list_image_models enumerates available models, and get_image_model_capabilities inspects edit-model specifics. There is no overlap or ambiguity between these actions.
All tool names follow a consistent verb_noun snake_case pattern: generate_image, edit_image, list_image_models, get_image_model_capabilities. The verb and noun are clear, and the style is uniform throughout.
Four tools is well-scoped for an image generation and editing server. Each tool serves a distinct and necessary function, with no missing or redundant entries.
The core lifecycle is covered: generate, edit, list models, and inspect model capabilities. A minor gap is that capabilities are only available for edit models, not for generation models, which could be useful when choosing sizes or parameters for generate_image.