Spaces:
Running
Running
fix: correct FastMCP configuration to resolve deprecation warnings and port conflicts
Browse files
app.py
CHANGED
@@ -33,9 +33,7 @@ This server is designed to provide easy access to official French government dat
|
|
33 |
# Create a FastMCP 2.0 server instance
|
34 |
mcp = FastMCP(
|
35 |
"Official Gouv Url List MCP Server",
|
36 |
-
instructions=INSTRUCTIONS
|
37 |
-
host="0.0.0.0",
|
38 |
-
port=7860
|
39 |
)
|
40 |
|
41 |
@mcp.resource(
|
@@ -64,4 +62,4 @@ async def get_public_org_domains_csv() -> str:
|
|
64 |
return response.text
|
65 |
|
66 |
if __name__ == "__main__":
|
67 |
-
mcp.run(transport="sse")
|
|
|
33 |
# Create a FastMCP 2.0 server instance
|
34 |
mcp = FastMCP(
|
35 |
"Official Gouv Url List MCP Server",
|
36 |
+
instructions=INSTRUCTIONS
|
|
|
|
|
37 |
)
|
38 |
|
39 |
@mcp.resource(
|
|
|
62 |
return response.text
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
+
mcp.run(transport="sse", host="0.0.0.0", port=7860)
|