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 6574cfc commit dd7a77dCopy full SHA for dd7a77d
src/mcp/client/config/mcp_servers_config.py
@@ -18,7 +18,9 @@
18
class MCPServerConfig(BaseModel):
19
"""Base class for MCP server configurations."""
20
21
- pass
+ def as_dict(self) -> dict[str, Any]:
22
+ """Return the server configuration as a dictionary."""
23
+ return self.model_dump(exclude_none=True)
24
25
26
class StdioServerConfig(MCPServerConfig):
0 commit comments