Invalid Host header

解决办法:

mcp = FastMCP(
    "xxx",
    json_response=True,
    transport_security=TransportSecuritySettings(enable_dns_rebinding_protection=False)
)

增加transport_security=TransportSecuritySettings(enable_dns_rebinding_protection=False)。

Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐