Skip to content

Commit 39aa22c

Browse files
fix: for code scanning alert no. 1: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b367ef8 commit 39aa22c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/modelscope_mcp_server/settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,8 @@ def show_settings(self) -> None:
9292

9393
# API Configuration
9494
print("🔑 API Configuration:")
95-
masked_token = (
96-
self.api_token[:-8] + "********" if self.api_token and len(self.api_token) > 4 else "Not configured"
97-
)
98-
print(f" • Token: {masked_token}")
95+
token_status = "Configured" if self.api_token else "Not configured"
96+
print(f" • Token: {token_status}")
9997
print(f" • Main Domain: {self.main_domain}")
10098
print(f" • API Inference Domain: {self.api_inference_domain}")
10199
print()

0 commit comments

Comments
 (0)