get_supported_options
Retrieve a list of supported themes and output formats for diagram customization in Mermaid MCP Server, enabling tailored visualizations for AI clients.
Instructions
获取转换器支持的选项,如图表主题和输出格式。
返回:
一个包含支持的主题和格式列表的字典。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mermaid_mcp_server/main.py:384-397 (handler)The handler function for the 'get_supported_options' tool, decorated with @mcp.tool() for automatic registration in FastMCP. It logs a message and returns a dictionary listing the supported themes and output formats for Mermaid diagram conversion.@mcp.tool() def get_supported_options() -> Dict[str, Any]: """ 获取转换器支持的选项,如图表主题和输出格式。 返回: 一个包含支持的主题和格式列表的字典。 """ logger.info("Providing list of supported options.") return { "themes": ["default", "dark", "neutral", "forest"], "formats": ["png", "jpg", "svg", "pdf"] }
- mermaid_mcp_server/main.py:384-384 (registration)The @mcp.tool() decorator registers the get_supported_options function as an MCP tool.@mcp.tool()