수정본

This commit is contained in:
2026-02-22 17:23:20 +09:00
parent b147498c31
commit 32e2263f0a
109 changed files with 13979 additions and 4580 deletions

10
mcp-server/utils.py Normal file
View File

@@ -0,0 +1,10 @@
"""공용 유틸리티 (MCP 서버)"""
import json
from config import settings
def _dumps(obj) -> str:
"""토큰 절약 모드에 따라 compact/pretty JSON 직렬화"""
if settings.JSON_COMPACT or settings.TOKEN_SAVE_MODE:
return json.dumps(obj, ensure_ascii=False, separators=(',', ':'))
return json.dumps(obj, ensure_ascii=False, indent=2)