Skip to content

Commit 521eca9

Browse files
committed
remove api key from repr
1 parent 0a9e2db commit 521eca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp_agent/cli/auth/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Authentication models for MCP Agent Cloud CLI."""
22

33
import json
4-
from dataclasses import dataclass
4+
from dataclasses import dataclass, field
55
from datetime import datetime
66
from typing import Optional
77

@@ -11,7 +11,7 @@ class UserCredentials:
1111
"""User authentication credentials and identity information."""
1212

1313
# Authentication
14-
api_key: str
14+
api_key: str = field(repr=False)
1515
token_expires_at: Optional[datetime] = None
1616

1717
# Identity

0 commit comments

Comments
 (0)