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

Method set

src/mcp_cli/context/context_manager.py:150–157  ·  view source on GitHub ↗

Set a value in context (for compatibility with dict-based code).

(self, key: str, value: Any)

Source from the content-addressed store, hash-verified

148 return self._extra.get(key, default)
149
150 def set(self, key: str, value: Any) -> None:
151 """
152 Set a value in context (for compatibility with dict-based code).
153 """
154 if hasattr(self, key):
155 setattr(self, key, value)
156 else:
157 self._extra[key] = value
158
159 def to_dict(self) -> dict[str, Any]:
160 """

Callers 10

_run_enhanced_chat_loopFunction · 0.80
handleAppLaunchedFunction · 0.80
getOrCreateViewFunction · 0.80
popoutSidebarViewFunction · 0.80
agentColorFunction · 0.80
run_agent_loopFunction · 0.80
test_get_from_extraMethod · 0.80

Calls

no outgoing calls