korakot commited on
Commit
d090f04
Β·
verified Β·
1 Parent(s): 5e97050

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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