feat: add QR Code to README gallery + rename to QR Code Server
- Add grid-cell.png screenshot for README gallery - Rename 'QR Server' to 'QR Code Server' everywhere - Add QR Code (Python) entry to examples table in README
This commit is contained in:
parent
2ee15420a0
commit
656a0292ae
3 changed files with 6 additions and 6 deletions
|
|
@ -24,7 +24,7 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
|
|||
```bash
|
||||
# Run server (HTTP mode) - uv handles dependencies automatically
|
||||
uv run server.py
|
||||
# → QR Server listening on http://localhost:3108/mcp
|
||||
# → QR Code Server listening on http://localhost:3108/mcp
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
|||
BIN
examples/qr-server/grid-cell.png
Normal file
BIN
examples/qr-server/grid-cell.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
|
|
@ -27,7 +27,7 @@ WIDGET_URI = "ui://qr-server/widget.html"
|
|||
HOST = os.environ.get("HOST", "0.0.0.0") # 0.0.0.0 for Docker compatibility
|
||||
PORT = int(os.environ.get("PORT", "3108"))
|
||||
|
||||
mcp = FastMCP("QR Server", port=PORT, stateless_http=True)
|
||||
mcp = FastMCP("QR Code Server", port=PORT, stateless_http=True)
|
||||
|
||||
|
||||
@mcp.tool(meta={"ui/resourceUri": WIDGET_URI})
|
||||
|
|
@ -132,5 +132,5 @@ if __name__ == "__main__":
|
|||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
print(f"QR Server listening on http://{HOST}:{PORT}/mcp")
|
||||
print(f"QR Code Server listening on http://{HOST}:{PORT}/mcp")
|
||||
uvicorn.run(app, host=HOST, port=PORT)
|
||||
|
|
|
|||
Loading…
Reference in a new issue