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:
parent
0927445025
commit
2ee15420a0
2 changed files with 1 additions and 1 deletions
|
|
@ -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 |
Loading…
Reference in a new issue