Returns an instance of the MCP server with the given configuration.
(cls, config: McpConfig)
| 192 | |
| 193 | @classmethod |
| 194 | def get(cls, config: McpConfig) -> McpServer: |
| 195 | """ |
| 196 | Returns an instance of the MCP server with the given configuration. |
| 197 | """ |
| 198 | if config.name not in cls._instances: |
| 199 | cls._instances[config.name] = cls(config) |
| 200 | return cls._instances[config.name] |
| 201 | |
| 202 | def _register_endpoint( |
| 203 | self, |
no outgoing calls