We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71daae2 commit 47c9c99Copy full SHA for 47c9c99
src/mcp_agent/cli/auth/main.py
@@ -19,10 +19,9 @@ def save_credentials(credentials: UserCredentials) -> None:
19
os.makedirs(os.path.dirname(credentials_path), exist_ok=True)
20
21
# 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())
+ fd = os.open(credentials_path, os.O_WRONLY | os.O_CREAT, 0o600)
+ with os.fdopen(fd, "w") as f:
+ f.write(credentials.to_json())
26
27
28
def load_credentials() -> Optional[UserCredentials]:
0 commit comments