Skip to content

Commit 3ff1c95

Browse files
authored
Add server config normalization before converting from client format (#57)
Co-authored-by: calmini <caozhen@pathintegral.xyz>
1 parent 35722af commit 3ff1c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcpm/clients/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def get_server(self, server_name: str) -> Optional[ServerConfig]:
586586
logger.debug(f"Server {server_name} not found in {self.display_name} config")
587587
return None
588588

589-
return self.from_client_format(server_name, server_config)
589+
return self.from_client_format(server_name, self._normalize_server_config(server_config))
590590

591591
def add_server(self, server_config: Union[ServerConfig, Dict[str, Any]], name: Optional[str] = None) -> bool:
592592
"""Add or update a server in the client config

0 commit comments

Comments
 (0)