Pārlūkot izejas kodu

set mcp stateless_http=True

Guangyu 3 nedēļas atpakaļ
vecāks
revīzija
7beb9371f3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      instrument_config_mcp/server.py

+ 1 - 1
instrument_config_mcp/server.py

@@ -303,7 +303,7 @@ def main() -> None:
     host = os.getenv("MCP_HOST", "0.0.0.0").strip() or "0.0.0.0"
     port = int(os.getenv("MCP_PORT", "8500"))
     path = os.getenv("MCP_PATH", "/mcp").strip() or "/mcp"
-    mcp.run(transport="http", host=host, port=port, path=path)
+    mcp.run(transport="http", host=host, port=port, path=path, stateless_http=True)
 
 
 if __name__ == "__main__":