Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNo监听地址0.0.0.0
MCP_PORTNo监听端口8001
MCP_API_KEYNoMCP 客户端 Bearer Token;公网部署必须设置
TAI_IMAGE_MODELNogenerate_image 的默认模型tai-text-to-image
MCP_CORS_ORIGINSNo浏览器客户端的精确 Origin,逗号分隔
MCP_MAX_IMAGE_BYTESNo允许回传的最大解码图片大小20971520
TAI_OPENAPI_API_KEYYes上游 tai-openapi 原始 Bearer Token,必填
TAI_IMAGE_EDIT_MODELNoedit_image 的默认模型tai-image-to-image
TAI_OPENAPI_BASE_URLNo上游地址,必须以 /v1 结尾http://127.0.0.1:8000/v1
MCP_CONNECT_TIMEOUT_SECONDSNo上游连接超时10
MCP_REQUEST_TIMEOUT_SECONDSNo包含生图时间的上游总超时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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 4 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.