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

Method register_program_catalog

core/src/tools/mod.rs:406–408  ·  view source on GitHub ↗

Replace the model-visible `program` tool with a custom PTC catalog.

(&self, catalog: crate::program::ProgramCatalog)

Source from the content-addressed store, hash-verified

404
405 /// Replace the model-visible `program` tool with a custom PTC catalog.
406 pub fn register_program_catalog(&self, catalog: crate::program::ProgramCatalog) {
407 builtin::register_program_with_catalog(&self.registry, catalog);
408 }
409
410 fn capture_snapshot(&self, name: &str, args: &serde_json::Value) {
411 let Some(local_root) = self.workspace_services.local_root() else {

Calls 1