Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -669,7 +669,7 @@ async def service_control(service: str, action: str) -> Dict[str, Any]:
|
|
| 669 |
|
| 670 |
@mcp.tool()
|
| 671 |
async def get_server_addr():
|
| 672 |
-
return os.getenv("SERVER_URL", default="Unknown")
|
| 673 |
|
| 674 |
# ============ FastAPI 应用构建 ============
|
| 675 |
|
|
|
|
| 669 |
|
| 670 |
@mcp.tool()
|
| 671 |
async def get_server_addr():
|
| 672 |
+
return {"addr":os.getenv("SERVER_URL", default="Unknown")}
|
| 673 |
|
| 674 |
# ============ FastAPI 应用构建 ============
|
| 675 |
|