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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iat-tai/tai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server