Skip to main content

ListResourcesFn

Type Alias ListResourcesFn 

Source
pub type ListResourcesFn = unsafe extern "C" fn(*mut *mut u8, *mut usize) -> i32;
Expand description

Function signature for listing available MCP resources

Returns JSON: { "resources": [...], "nextCursor": "..." }

§Parameters

  • result_buf: Output pointer for result (allocated by plugin)
  • result_len: Output capacity of result buffer

§Returns

  • 0 on success
  • Non-zero error code on failure