Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -7,10 +7,12 @@ Architecture (matching PDF Viewer pattern):
|
|
| 7 |
"""
|
| 8 |
|
| 9 |
from mcp.server.fastmcp import FastMCP
|
|
|
|
| 10 |
from mcp.types import CallToolResult, TextContent
|
| 11 |
-
import json
|
| 12 |
|
| 13 |
-
mcp = FastMCP("render-html"
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# ββ The viewer HTML app ββββββββββββββββββββββββββββββββββββββββββββββ
|
| 16 |
# This is served as an MCP resource. The host renders it in a sandboxed
|
|
|
|
| 7 |
"""
|
| 8 |
|
| 9 |
from mcp.server.fastmcp import FastMCP
|
| 10 |
+
from mcp.server.transport_security import TransportSecuritySettings
|
| 11 |
from mcp.types import CallToolResult, TextContent
|
|
|
|
| 12 |
|
| 13 |
+
mcp = FastMCP("render-html", transport_security=TransportSecuritySettings(
|
| 14 |
+
enable_dns_rebinding_protection=False,
|
| 15 |
+
))
|
| 16 |
|
| 17 |
# ββ The viewer HTML app ββββββββββββββββββββββββββββββββββββββββββββββ
|
| 18 |
# This is served as an MCP resource. The host renders it in a sandboxed
|