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

Class DummyCommand

tests/commands/test_registry.py:13–45  ·  view source on GitHub ↗

Dummy command for testing.

Source from the content-addressed store, hash-verified

11
12
13class DummyCommand(UnifiedCommand):
14 """Dummy command for testing."""
15
16 def __init__(self, name="test", description="Test command", modes=CommandMode.ALL):
17 super().__init__()
18 self._name = name
19 self._description = description
20 self._modes = modes
21 self._aliases = []
22 self._hidden = False
23
24 @property
25 def name(self) -> str:
26 return self._name
27
28 @property
29 def description(self) -> str:
30 return self._description
31
32 @property
33 def modes(self) -> CommandMode:
34 return self._modes
35
36 @property
37 def aliases(self):
38 return self._aliases
39
40 @property
41 def hidden(self):
42 return self._hidden
43
44 async def execute(self, **kwargs) -> CommandResult:
45 return CommandResult(success=True, output=f"{self.name} executed")
46
47
48class DummyCommandGroup(CommandGroup):

Calls

no outgoing calls