You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Allow duplicate and empty server prefixes, optimize config loading
Major changes:
- Allow duplicate prefixes across servers (including None/empty prefixes)
- Remove duplicate prefix validation from config reload
- Optimize config loading to use cached version when reload is enabled
- Make None the default prefix instead of auto-generating from server name
Key improvements:
- ServerConfig prefix field changed from str with default "" to str|None with default None
- ConfigManager.load_config() now returns cached config from ReloadManager when available
- Added cached_config property to ReloadManager for cleaner access
- Fixed self_prefix_ property to handle None prefixes properly
- Removed _unmount_from_fastmcp workaround implementation for FastMCP servers
Test updates:
- Updated tests to expect None as default prefix instead of auto-generated values
- Changed duplicate prefix validation test to verify duplicates are allowed
- Added test cases for duplicate None prefixes
Bug fixes:
- Fixed MAGG_DEBUG environment variable check to handle missing values
- Properly close FastMCP client connections on unmount to prevent pending tasks
This change makes server prefixes truly optional and allows multiple servers
to share the same prefix or have no prefix at all, providing more flexibility
in tool naming.
Signed-off-by: Phillip Sitbon <phillip.sitbon@gmail.com>
0 commit comments