fix: add default text value for QR code generation

Without a default, the test would fail since text is required.
Uses modelcontextprotocol.io as the default URL.
This commit is contained in:
Anton Pidkuiko MacBook 2026-01-14 20:41:19 +00:00
commit 2ee15420a0
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

View file

@ -32,7 +32,7 @@ mcp = FastMCP("QR Server", port=PORT, stateless_http=True)
@mcp.tool(meta={"ui/resourceUri": WIDGET_URI})
def generate_qr(
text: str,
text: str = "https://modelcontextprotocol.io",
box_size: int = 10,
border: int = 4,
error_correction: str = "M",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Before After
Before After