MCPcopy Index your code
hub / github.com/AI45Lab/Code / script_spec

Function script_spec

core/src/serve/tools.rs:72–80  ·  view source on GitHub ↗
(name: &str, description: &str)

Source from the content-addressed store, hash-verified

70 }
71
72 fn script_spec(name: &str, description: &str) -> ToolSpec {
73 ToolSpec::Script(crate::config::ScriptToolSpec {
74 name: name.to_string(),
75 description: description.to_string(),
76 path: std::path::PathBuf::from("scripts/x.js"),
77 allowed_tools: None,
78 limits: crate::config::ScriptToolLimits::default(),
79 })
80 }
81
82 #[tokio::test]
83 async fn install_registers_script_tool_visibly() {

Calls

no outgoing calls

Tested by

no test coverage detected