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

Method machine

src/mcp_cli/tools/models.py:309–314  ·  view source on GitHub ↗

Get machine where tool was executed.

(self)

Source from the content-addressed store, hash-verified

307
308 @property
309 def machine(self) -> str | None:
310 """Get machine where tool was executed."""
311 if self.chuk_result and hasattr(self.chuk_result, "machine"):
312 machine_val = self.chuk_result.machine
313 return str(machine_val) if machine_val is not None else None
314 return None
315
316 def _extract_mcp_text_content(self, result: Any) -> str | None:
317 """Extract text content from MCP SDK ToolResult structure."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected