Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/mcp_agent/cli/cloud/commands/auth/logout/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,16 @@ def logout() -> None:
print_info("Not currently logged in.")
return

# Show who is being logged out
user_info = "current user"
if credentials.username:
user_info = f"user '{credentials.username}'"
elif credentials.email:
user_info = f"user '{credentials.email}'"

# Confirm logout action
if not Confirm.ask(f"Are you sure you want to logout {user_info}?", default=False):
print_info("Logout cancelled.")
return

# Clear credentials
if clear_credentials():
print_success("Successfully logged out.")
else:
Expand Down
4 changes: 0 additions & 4 deletions src/mcp_agent/cli/cloud/commands/auth/whoami/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,15 @@ def whoami() -> None:

console = Console()

# Create user info table
user_table = Table(show_header=False, box=None)
user_table.add_column("Field", style="bold")
user_table.add_column("Value")

# Add user information
if credentials.username:
user_table.add_row("Username", credentials.username)
if credentials.email:
user_table.add_row("Email", credentials.email)

# Add token expiry if available
if credentials.token_expires_at:
user_table.add_row(
"Token Expires",
Expand All @@ -48,6 +45,5 @@ def whoami() -> None:
else:
user_table.add_row("Token Expires", "Never")

# Create user panel
user_panel = Panel(user_table, title="User Information", title_align="left")
console.print(user_panel)
Loading
Loading