Skip to content

Commit cdd4f29

Browse files
toreleonCopilot
andauthored
Update src/mcphub/mcp_servers/params.py
Co-authored-by: Copilot <[email protected]>
1 parent f16e32b commit cdd4f29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mcphub/mcp_servers/params.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ def _load_servers_params(self) -> Dict[str, MCPServerConfig]:
181181
package_name = server_config.get("package_name")
182182

183183
if not package_name:
184-
raise ValueError(f"package_name is required for server {mcp_name}")
184+
raise ValueError(
185+
f"Configuration for server '{mcp_name}' is missing the required 'package_name' field. "
186+
"As of the latest update, all server configurations must explicitly include a 'package_name'. "
187+
"Please update your configuration file to include this field."
188+
)
185189

186190
# Get command and args with defaults
187191
command = server_config.get("command", "npx")

0 commit comments

Comments
 (0)