pub struct McpServer {
pub name: String,
pub pid: Option<u32>,
pub cmdline: Option<String>,
pub cpu_percent: f32,
pub rss_bytes: u64,
pub age_secs: Option<u64>,
pub calls: u64,
pub errors: u64,
pub last_call: Option<SystemTime>,
pub matched_by: McpMatch,
}Expand description
One MCP server an agent uses, seen from either side or both: the process
table has the server’s pid, CPU and memory; the transcript has how often
the agent called it. Claude Code names an MCP tool mcp__<server>__<tool>,
which is where the server name and the call count come from.
Fields§
§name: StringThe server’s name as the harness configured it, or, for a process the transcript never named, the program it is running.
pid: Option<u32>§cmdline: Option<String>§cpu_percent: f32§rss_bytes: u64§age_secs: Option<u64>§calls: u64Tool calls the agent made to this server, from the transcript.
errors: u64Of those, how many the harness reported as errors.
last_call: Option<SystemTime>§matched_by: McpMatchHow the process and the transcript’s server were put together, for the UI to label a guess as one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for McpServer
Auto Trait Implementations§
impl Freeze for McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more