We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/GittyBurstein/mermaid-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"""Mermaid style resources for the MCP server.
Registers canonical Mermaid style resources that prompts and tools
can consume via the MCP resource API.
"""
# src/server/resources/mermaid_styles.py
from pathlib import Path
from mcp.server.fastmcp import FastMCP
BASE_DIR = Path(__file__).parent
def register_resources(mcp: FastMCP) -> None:
"""
Register Mermaid style resources for the MCP server.
"""
@mcp.resource(
"mermaid://styles/blue-flowchart",
mime_type="text/plain",
description="Canonical blue Mermaid flowchart style"
)
def blue_flowchart_style() -> str:
path = BASE_DIR / "mermaid_style_blue_flowchart.mmd"
return path.read_text(encoding="utf-8")