Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
MODEL | No | Default model to use: irag-1.0 or flux.1-schnell | irag-1.0 |
LOG_FILE | No | Log file path | logs/server.log |
BASE_PATH | No | Custom save path for images (optional, defaults to desktop/irag-images) | |
LOG_LEVEL | No | Logging level | info |
API_TIMEOUT | No | API timeout in milliseconds | 30000 |
MAX_RETRIES | No | Maximum number of API call retries | 3 |
SERVER_NAME | No | Server name | irag-mcp-server |
BAIDU_API_KEY | Yes | Baidu API Key (format: bce-v3/ALTAK-****/****) | |
RESOURCE_MODE | No | Image resource mode: 'local' to save files locally, 'url' to only return URL and base64 | local |
SERVER_VERSION | No | Server version | 1.0.0 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
generate_image | 使用百度iRAG API生成图片 |