Skip to content

feat(account): expose account info in cli and mcp#76

Merged
SheltonZhu merged 1 commit into
developfrom
feature/account-info-surfaces
May 22, 2026
Merged

feat(account): expose account info in cli and mcp#76
SheltonZhu merged 1 commit into
developfrom
feature/account-info-surfaces

Conversation

@SheltonZhu

Copy link
Copy Markdown
Owner

Summary

  • Add 115driver info for account and storage space display, including JSON output support.
  • Add MCP getAccountInfo tool returning user, space, login device, and IMEI info.
  • Share account info response mapping between CLI and MCP via internal/accountinfo.
  • Update README and MCP example docs.

Fields

  • user: user_id, username, vip, expire
  • space: total, remain, used, each with size and size_format
  • login_devices: last login device and device list from GetInfo()
  • imei_info

Test Plan

  • git diff --check
  • go test ./internal/accountinfo ./cli/cmd ./mcp/server ./mcp/server/tools -count=1
  • go build ./cli ./mcp
  • go test ./... -run 'Test(FromDriverDataMapsAccountInfo|FormatAccountInfoText|MarshalAccountInfoResult|InfoResponseUnmarshalsDecimalSpaceSizes)' -count=1\n\n## Notes\n- Full go test ./... still requires a valid 115 COOKIE; with an empty cookie, existing driver integration tests fail with bad cookie / user not login.

@SheltonZhu SheltonZhu merged commit f7ad85a into develop May 22, 2026
@SheltonZhu SheltonZhu deleted the feature/account-info-surfaces branch May 22, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant