Skip to content

Commit f8fd885

Browse files
committed
🎨 Auto-format code with pre-commit
1 parent 09a4f39 commit f8fd885

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcp_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# === 环境变量配置:必须在所有 import 之前设置 ===
22
import os
3+
34
os.environ["TQDM_DISABLE"] = "1" # 禁用 tqdm 进度条,防止污染 stdio
45
os.environ["TQDM_NCOLS"] = "0" # 备用:禁用 tqdm 自动宽度检测
56
os.environ["LOCAL_DEPLOYMENT_MODE"] = "true" # 🔑 关键:强制 Dingo 使用 ThreadPool 而非 ProcessPool
@@ -9,7 +10,7 @@
910
import logging
1011
import sys
1112
import uuid
12-
from contextlib import redirect_stdout, redirect_stderr
13+
from contextlib import redirect_stderr, redirect_stdout
1314
from typing import Any, Dict, List, Literal, Optional, Tuple
1415

1516
from fastmcp import FastMCP

0 commit comments

Comments
 (0)