49b9bb6724
Deploy Docs / deploy-docs (push) Failing after 1s
Conformance Tests / client-conformance (push) Failing after 3s
Conformance Tests / server-conformance (push) Failing after 1s
GitHub Actions Security Analysis / zizmor (push) Failing after 1s
CI / checks (push) Failing after 59m20s
CI / all-green (push) Waiting to run
17 lines
364 B
Python
17 lines
364 B
Python
import base64
|
|
|
|
from mcp.server import MCPServer
|
|
from mcp.server.mcpserver import Image
|
|
|
|
mcp = MCPServer("Brand kit")
|
|
|
|
LOGO_PNG = base64.b64decode(
|
|
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4nGOQ9bsBAAHPAURf8l/aAAAAAElFTkSuQmCC"
|
|
)
|
|
|
|
|
|
@mcp.tool()
|
|
def logo() -> Image:
|
|
"""The brand logo as a PNG."""
|
|
return Image(data=LOGO_PNG, format="png")
|