We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278334c commit e39adafCopy full SHA for e39adaf
src/mcpm/schemas/full_server_config.py
@@ -72,8 +72,9 @@ def to_dict(self) -> Dict:
72
def to_server_config(self) -> ServerConfig:
73
"""Convert FullServerConfig to a common server configuration format"""
74
# Check if this is an HTTP server
75
- if self.installation == "http" and self.url:
76
- # For HTTP servers, use the headers field directly
+ if self.installation == "http":
+ if not self.url:
77
+ raise ValueError(f"URL is required for HTTP server '{self.name}'")
78
return RemoteServerConfig(name=self.name, url=self.url, headers=self.headers)
79
else:
80
# Default to STDIO for all other cases
0 commit comments