Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Server address (服务器地址) | 0.0.0.0 |
| PORT | No | Server port (服务器端口) | 8003 |
| DEBUG | No | Debug mode (调试模式) | false |
| LOG_LEVEL | No | Log level (日志级别) | INFO |
| REQUEST_TIMEOUT | No | Request timeout in seconds (请求超时时间(秒)) | 30 |
| DEVELOPMENT_MODE | No | Development mode (开发模式) | false |
| MERMAID_API_BASE_URL | No | Mermaid API address (Mermaid API 地址) | https://mermaid.ink |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| convert_mermaid_to_image | 将 Mermaid 图表代码转换为多种格式的图像(PNG、JPG、PDF、SVG)。
参数:
mermaid_code: 要转换的 Mermaid 图表语法代码
output_format: 输出格式 - png、jpg、svg 或 pdf(默认:png)
theme: 视觉主题 - default、dark、neutral 或 forest(默认:default)
background_color: 背景颜色,十六进制代码(如 FF0000)或带 ! 前缀的命名颜色(如 !white)
width: 图像宽度(像素,可选)
height: 图像高度(像素,可选)
返回:
包含转换后图像数据和元数据的字典 |
| validate_mermaid_syntax | 通过尝试简单转换来验证 Mermaid 图表语法。
参数:
mermaid_code: 要验证的 Mermaid 图表语法代码
返回:
包含验证结果的字典 |
| get_supported_options | 获取转换器支持的选项,如图表主题和输出格式。
返回:
一个包含支持的主题和格式列表的字典。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |