Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VISION_MODEL | Yes | 模型名称 | glm-4v |
| VISION_API_KEY | Yes | API 密钥 | |
| VISION_TIMEOUT | No | 请求超时(秒) | 120 |
| VISION_BASE_URL | Yes | API 基础 URL | |
| VISION_LOG_LEVEL | No | 日志级别 | INFO |
| VISION_MAX_TOKENS | No | 最大输出 tokens | 4096 |
| VISION_MAX_HISTORY | No | 对话历史最大保存数 | 50 |
| VISION_TEMPERATURE | No | 温度参数 | 0.7 |
| VISION_HISTORY_PATH | No | 历史文件路径 | ~/.mcp-vision/history.json |
| VISION_MAX_IMAGE_SIZE | No | 最大图像大小(字节) | 20971520 |
| VISION_ENABLE_PERSISTENCE | No | 启用持久化 | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_image | 分析图像内容 这是核心工具,用于分析图像并返回详细描述。 使用场景:
参数说明:
示例: 返回内容:
|
| chat_vision | 两轮对话式图像问答 支持基于图像的两轮对话:
使用场景:
参数说明:
两轮对话流程:
示例: 返回内容:
|
| get_status | 获取服务器状态 返回当前服务器配置和运行状态信息。 返回内容:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |