Skip to content

Conversation

leonid-zats
Copy link

@leonid-zats leonid-zats commented Oct 12, 2025

Generated description

Below is a concise technical summary of the changes proposed in this PR:

graph LR
initialize_with_token_refresh_("initialize_with_token_refresh"):::modified
TokenManager_("TokenManager"):::modified
TokenManager_set_config_manager_("TokenManager.set_config_manager"):::added
TokenManager_get_valid_token_("TokenManager.get_valid_token"):::modified
TokenManager_verify_token_("TokenManager.verify_token"):::modified
TokenManager_start_refresh_task_("TokenManager.start_refresh_task"):::modified
TokenManager_refresh_access_token_("TokenManager.refresh_access_token"):::modified
TokenManager_config_manager_("TokenManager.config_manager"):::modified
CONFIG_MANAGER_("CONFIG_MANAGER"):::added
TokenManager_clone_("TokenManager.clone"):::modified
initialize_with_token_refresh_ -- "Injects ConfigManager into TokenManager for token persistence" --> TokenManager_
initialize_with_token_refresh_ -- "Adds method to inject ConfigManager for automatic token saving" --> TokenManager_set_config_manager_
initialize_with_token_refresh_ -- "Triggers token refresh that now persists token via ConfigManager" --> TokenManager_get_valid_token_
initialize_with_token_refresh_ -- "Verifies token after refresh with added success logging" --> TokenManager_verify_token_
initialize_with_token_refresh_ -- "Adds info log on successful background token refresh" --> TokenManager_start_refresh_task_
TokenManager_refresh_access_token_ -- "Persists refreshed token to config file via ConfigManager" --> TokenManager_config_manager_
TokenManager_refresh_access_token_ -- "Integrates external ConfigManager service for token persistence" --> CONFIG_MANAGER_
TokenManager_clone_ -- "Clones ConfigManager Arc to preserve shared ownership" --> TokenManager_config_manager_
classDef added stroke:#15AA7A
classDef removed stroke:#CD5270
classDef modified stroke:#EDAC4C
linkStyle default stroke:#CBD5E1,font-size:13px
Loading

Refactor the TokenManager to centralize token persistence logic, ensuring refreshed access tokens are automatically written to the configuration file, thereby fixing scheduled refresh issues. Standardize project branding by renaming environment variables, binary names, and documentation from APOLLO_ to DC_.

TopicDetails
Token Persistence Refactor Refactor the token refresh mechanism by moving the responsibility of persisting new access tokens from the startup module directly into the TokenManager's refresh_access_token method. This change injects the ConfigManager into the TokenManager via set_config_manager, making the token persistence process more robust and self-contained, and ensuring that refreshed tokens are consistently saved.
Modified files (2)
  • crates/dc-mcp-server/src/token_manager.rs
  • crates/dc-mcp-server/src/startup.rs
Latest Contributors(1)
UserCommitDate
leonid-zatsdc-mcpOctober 12, 2025
Branding Standardization Standardize project branding by updating all APOLLO_ prefixed environment variables, binary names, and documentation references to DC_. This includes changes in runtime environment variable handling, main application entry points, and extensive updates to the README.md file, as well as corresponding updates to introspection test snapshots to reflect the new naming conventions.
Modified files (5)
  • crates/dc-mcp-server/src/runtime.rs
  • crates/dc-mcp-server/src/main.rs
  • crates/dc-mcp-server/src/introspection/tools/snapshots/dc_mcp_server__introspection__tools__search__tests__search_tool.snap
  • crates/dc-mcp-server/src/introspection/snapshots/dc_mcp_server__introspection__minify__tests__minify_schema.snap
  • README.md
Latest Contributors(2)
UserCommitDate
leonid-zatsHardcode-default-Apoll...October 12, 2025
[email protected]Releasing-0.8.0-356September 16, 2025
This pull request is reviewed by Baz. Review like a pro on (Baz).

@leonid-zats leonid-zats merged commit f4e3da3 into main Oct 12, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant