MCPcopy Create free account
hub / github.com/AI45Lab/Code / list_commands

Method list_commands

sdk/node/src/lib.rs:4864–4875  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4862 /// @returns Array of CommandInfo objects sorted by name
4863 #[napi]
4864 pub fn list_commands(&self) -> Vec<CommandInfo> {
4865 self.inner
4866 .command_registry()
4867 .list_full()
4868 .into_iter()
4869 .map(|(name, description, usage)| CommandInfo {
4870 name,
4871 description,
4872 usage,
4873 })
4874 .collect()
4875 }
4876
4877 /// Cancel the current ongoing operation (send/stream).
4878 ///

Callers

nothing calls this directly

Calls 2

list_fullMethod · 0.80
command_registryMethod · 0.80

Tested by

no test coverage detected