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

Method execute

src/mcp_cli/commands/base.py:124–136  ·  view source on GitHub ↗

Execute the command with the given parameters. Args: **kwargs: Parameters passed to the command. Will include parsed arguments based on self.parameters. May also include context objects like tool_manager. Returns:

(self, **kwargs)

Source from the content-addressed store, hash-verified

122
123 @abstractmethod
124 async def execute(self, **kwargs) -> CommandResult:
125 """
126 Execute the command with the given parameters.
127
128 Args:
129 **kwargs: Parameters passed to the command.
130 Will include parsed arguments based on self.parameters.
131 May also include context objects like tool_manager.
132
133 Returns:
134 CommandResult indicating success/failure and any output.
135 """
136 pass
137
138 def format_output(self, result: CommandResult, mode: CommandMode) -> str:
139 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected