MCPcopy
hub / github.com/mitmproxy/mitmproxy / call

Method call

mitmproxy/command.py:265–271  ·  view source on GitHub ↗

Call a command with native arguments. May raise CommandError.

(self, command_name: str, *args: Any)

Source from the content-addressed store, hash-verified

263 return parsed, next_params
264
265 def call(self, command_name: str, *args: Any) -> Any:
266 """
267 Call a command with native arguments. May raise CommandError.
268 """
269 if command_name not in self.commands:
270 raise exceptions.CommandError("Unknown command: %s" % command_name)
271 return self.commands[command_name].func(*args)
272
273 def call_strings(self, command_name: str, args: Sequence[str]) -> Any:
274 """

Callers 1

test_simpleFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_simpleFunction · 0.76