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

Method next_id

core/src/mcp/client.rs:50–52  ·  view source on GitHub ↗

Get next request ID

(&self)

Source from the content-addressed store, hash-verified

48
49 /// Get next request ID
50 fn next_id(&self) -> u64 {
51 self.request_id.fetch_add(1, Ordering::SeqCst)
52 }
53
54 /// Initialize the MCP connection
55 pub async fn initialize(&self) -> Result<InitializeResult> {

Callers 6

prepare_session_optionsFunction · 0.45
initializeMethod · 0.45
list_toolsMethod · 0.45
call_toolMethod · 0.45
list_resourcesMethod · 0.45
read_resourceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected