Skip to content

Commit 47c9c99

Browse files
authored
Update main.py
1 parent 71daae2 commit 47c9c99

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mcp_agent/cli/auth/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ def save_credentials(credentials: UserCredentials) -> None:
1919
os.makedirs(os.path.dirname(credentials_path), exist_ok=True)
2020

2121
# Create file with restricted permissions (0600) to prevent leakage
22-
with open(credentials_path, "w", encoding="utf-8") as f:
23-
fd = os.open(credentials_path, os.O_WRONLY | os.O_CREAT, 0o600)
24-
with os.fdopen(fd, "w") as f:
25-
f.write(credentials.to_json())
22+
fd = os.open(credentials_path, os.O_WRONLY | os.O_CREAT, 0o600)
23+
with os.fdopen(fd, "w") as f:
24+
f.write(credentials.to_json())
2625

2726

2827
def load_credentials() -> Optional[UserCredentials]:

0 commit comments

Comments
 (0)