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

Method name

core/src/config/agent_dir.rs:64–69  ·  view source on GitHub ↗

The tool/server name (registry key; unique within `tools/`).

(&self)

Source from the content-addressed store, hash-verified

62impl ToolSpec {
63 /// The tool/server name (registry key; unique within `tools/`).
64 pub fn name(&self) -> &str {
65 match self {
66 ToolSpec::Mcp(cfg) => &cfg.name,
67 ToolSpec::Script(spec) => &spec.name,
68 }
69 }
70
71 /// The spec kind discriminant (`mcp` or `script`).
72 pub fn kind(&self) -> &str {

Callers 2

load_toolsFunction · 0.45

Calls

no outgoing calls

Tested by 1