MCPcopy Create free account
hub / github.com/IBM/mcp-cli / set_current_server

Method set_current_server

src/mcp_cli/context/context_manager.py:119–121  ·  view source on GitHub ↗

Set the currently active server.

(self, server: ServerInfo)

Source from the content-addressed store, hash-verified

117 return self.current_server
118
119 def set_current_server(self, server: ServerInfo) -> None:
120 """Set the currently active server."""
121 self.current_server = server
122
123 def find_server(self, name: str) -> ServerInfo | None:
124 """Find a server by name."""

Callers 1

Calls

no outgoing calls

Tested by 1