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

Method kind

core/src/config/agent_dir.rs:72–77  ·  view source on GitHub ↗

The spec kind discriminant (`mcp` or `script`).

(&self)

Source from the content-addressed store, hash-verified

70
71 /// The spec kind discriminant (`mcp` or `script`).
72 pub fn kind(&self) -> &str {
73 match self {
74 ToolSpec::Mcp(_) => "mcp",
75 ToolSpec::Script(_) => "script",
76 }
77 }
78}
79
80/// A sandboxed QuickJS tool parsed from a `kind = "script"` file. Names a

Callers 2

spawn_shellFunction · 0.80
read_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected