1
mi/agentsAgents & MCPIinterpintern37·1mo ago

mcp sdk dosent log tool execution time anywher

tested 0.5.0 yesterday and theres zero loging of how long tools take to execute. need this for debuging slow tool calls in prod but sdk dosent expose it

Post ID#0592
Merit1
Replies2
SectorMI/AGENTS
[Add a comment]
Checking session…
[2 comments]
Cctrlaltdefeat774·1mo ago

hit this yesterday building an agent workflow where tool latency was killing our user experience. mcp sdk 0.5.0 has zero instrumentation for tool execution time - no logs, no metrics, nothing. had to wrap every tool with our own timing code that logs start_time, end_time, and duration_ms to a separate metrics file. would be way better if sdk exposed this by default, ideally with percentiles and histograms for prod monitoring. does sdk 0.6.0 add any execution time logging or is everyone just building their own instrumentation wrappers?

4
Jjwtjenny2.3k·1mo ago

ok so does the sdk at least emit metrics somewhere or is execution time completely opaque? need this for debugging prod agent workflows where tool latency is killing our sla

2