1. Conduid
  2. Developer Tools
  3. Hotpath Rs
MCP server · Developer Tools

Hotpath Rs

Rust profiler for CPU, memory, SQL, HTTP, and async performance, with Prometheus and Grafana support.

86Strong

Scored 20 hours ago · breakdown

About Hotpath Rs

Hotpath Rs is an MCP server published by hotpath-rs in the Developer Tools category: rust profiler for CPU, memory, SQL, HTTP, and async performance, with Prometheus and Grafana support. Conduid read 30 tools from its source: channel_logs, channels, dbg_entries, dbg_logs, function_alloc_logs, function_timing_logs and 24 more. No package is published for it, so it installs from a source checkout.

The repository has 1.9K stars and 64 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.33.0 (22 Nov 2026). It follows v0.32.1 (17 Nov 2026), and the 5 most recent releases go back to v0.31.2 (9 Nov 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include allocations, benchmark, debugging, mpsc, devtools and profiler.

Install

From source
git clone https://github.com/hotpath-rs/hotpath

Tools (30)

channel_logsGet detailed message logs for a specific channel. Returns a JSON object with id, sent_logs (index, timestamp, ago, delay, message, thread_id), and received_logs (index, timestamp, ago, message, thread_id). Use channels first to get channel IDs, then use this tool to get detailed logs.
channelsGet metrics for all monitored channels (tokio, crossbeam, std, futures-channel). Returns a JSON object with current_elapsed_ns, percentiles, and data: one entry per channel call site, each with: - id: channel id, input for channel_logs - name, labeled, source, location: identification - channel_type: "bounded[N]", "unbounded", "oneshot", or "pending" (not yet initialized) - state: "active", "closed", or "notified"; omitted for aggregated entries (instances > 1) - instances / closed_instances: channel instances aggregated into the entry and how many have closed - sent_count / received_count: message counts - sent_per_sec / received_per_sec: throughput over the channel's active window (omitted when not derivable) - queue_size / max_queue_size: current and peak queued messages (when known) - delay_avg and delay_percentiles: formatted time between send and receive (when sampled) - type_name, type_size: message type The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Use to track channel throughput and identify stalled, backed-up, or closed channels.
dbg_entriesGet all dbg! debug entries. Returns a JSON array of entries, each with id, entry_type ("dbg"), source, source_display, location, expression, log_count, and last_value. Use the returned IDs with dbg_logs to get detailed history.
dbg_logsGet detailed logs for a specific dbg! debug entry. Returns a JSON object with source, expression, total_logs, and logs: recent values, each with index, timestamp, ago, value, and thread_id. Use dbg_entries first to get entry IDs, then use this tool to get detailed logs.
function_alloc_logsGet detailed allocation logs for a specific function (requires hotpath-alloc-meta feature). Returns a JSON object with function_name, location, total_invocations, and logs: recent invocations, each with invocation, bytes (formatted), alloc_count, timestamp, ago, thread_id, and result. Use functions_alloc first to get function IDs, then use this tool to get detailed logs.
function_timing_logsGet detailed timing logs for a specific function. Returns a JSON object with function_name, location, total_invocations, and logs: recent invocations, each with invocation, duration (formatted), timestamp, ago, thread_id, and result (when the function was measured with log = true). Use functions_timing first to get function IDs, then use this tool to get detailed logs.
functions_allocGet memory allocation metrics per function (requires hotpath-alloc-meta feature). Returns a JSON object with the same shape as functions_timing, plus: - profiling_mode: "alloc-bytes" (default) or "alloc-count" (HOTPATH_META_ALLOC_METRIC=count); selects the unit of every value below - description: whether values are exclusive to each function or cumulative including nested calls - total_allocated: grand total in the selected unit - data: functions sorted by total allocation in the selected unit, each with: - id: function id, input for function_alloc_logs - name: fully qualified function name - calls / sampled_calls: invocations and measured invocations - avg: formatted average per-call bytes or allocation count - percentiles: one key per configured percentile (e.g. "p95"), formatted per-call bytes or allocation counts - total: formatted cumulative bytes or allocation count across all calls - percent_total: share of total_allocated - location: source file, line and column (when known) - async functions report "N/A" for avg, total, percentiles, and percent_total - total_count / included_count: entries measured vs entries returned in data (the list was truncated by the display limit when they differ) Returns error if hotpath-alloc-meta feature is not enabled. Cross-reference with functions_timing to find functions that are both slow and allocation-heavy.
functions_cpuGet CPU sampling attribution per instrumented function (requires hotpath-cpu-meta feature). Returns a JSON envelope with: - status: "idle", "capturing", "ready", or "error" - captured_at_ms, capture_duration_ms: timing of the last capture (when available) - error: failure message when status is "error" - report: when ready, an object with time_elapsed, total_samples, attributed_samples, profile_path, and data: functions sorted by samples, each with id, name, samples, and percent - current_session_id, current_session_path: the active sampling session Use functions_cpu_snapshot to trigger an on-demand capture, then poll this tool until status is "ready". Returns error if hotpath-cpu-meta feature is not enabled.
functions_cpu_snapshotTrigger an on-demand CPU sampling snapshot (requires hotpath-cpu-meta feature). Starts a background capture of CPU samples collected since profiling began. Returns immediately with {"status":"capturing"}. Poll the functions_cpu tool until its status is "ready" to read the results. Returns error if a snapshot is already in progress or the hotpath-cpu-meta feature is not enabled.
functions_timingGet execution timing metrics for all profiled functions. Returns a JSON object with: - profiling_mode, time_elapsed, total_elapsed_ns, caller_name - percentiles: configured percentile list (e.g. [95.0, 99.0]) - data: functions sorted by total time, each with: - id: function id, input for function_timing_logs - name: fully qualified function name (e.g. "my_app::db::query") - calls: number of invocations; sampled_calls: invocations that were timed - avg: formatted average duration of the timed calls - percentiles: one key per configured percentile (e.g. "p95"), formatted durations of the timed calls - total: formatted total duration; exact when sampled_calls == calls, otherwise extrapolated as avg * calls under time sampling - percent_total: total as a share of the profiled program's total time (the #[main] wrapper, or the sum of all function totals when the wrapper is excluded); extrapolated like total - avg, total, percentiles and percent_total are "-" when no call was timed (sampled_calls == 0) - location: source file, line and column (when known) - total_count / included_count: entries measured vs entries returned in data (the list was truncated by the display limit when they differ) Use this first to identify performance hotspots. Look for high percentile values indicating tail latency issues.
future_logsGet detailed call/poll logs for a specific future. Returns a JSON object with id, call_count, total_polls, total_poll_duration_ns, total_poll_alloc_bytes, total_poll_alloc_count, and calls: recent invocations, each with id, state, poll_count, sampled_polls, total/max/last poll duration in nanoseconds, poll allocation stats (null without hotpath-alloc-meta), and result. Use futures first to get future IDs, then use this tool to get detailed logs.
futuresGet lifecycle metrics for all monitored futures. Returns a JSON object with current_elapsed_ns and data: one entry per future, each with: - id: future id, input for future_logs - name, labeled, source, location: identification - call_count: number of future invocations observed - total_polls: cumulative number of poll calls across invocations; sampled_polls: polls that were timed - total_poll_duration_ns: cumulative poll time in nanoseconds - total_poll_alloc_bytes / total_poll_alloc_count: allocations made while polling (null without hotpath-alloc-meta) The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). High poll counts can indicate futures that wake frequently without making progress.
gauge_logsGet detailed logs for a specific gauge. Returns a JSON object with key, total_logs, and logs: recent value updates, each with index, timestamp, ago, value, and thread_id. Use gauges first to get gauge IDs, then use this tool to get detailed logs.
gaugesGet all gauge! entries. Returns a JSON array of entries, each with: - id: gauge id, input for gauge_logs - entry_type: "gauge" - expression: gauge key - source, source_display, location: where the gauge is updated - log_count: number of set/inc/dec operations - last_value: current value Use gauges to track numeric values that change over time like queue sizes, connection counts, or custom metrics.
httpGet execution-time metrics for captured HTTP requests. Returns a JSON object with current_elapsed_ns, total_ns, total_calls, percentiles, and data: one entry per normalized endpoint (parameter-varied requests to the same route merge into one bucket, e.g. GET api.example.com/users/{id}), sorted by total time, each with: - id: endpoint id, input for http_logs - endpoint: normalized METHOD host/path key - source: innermost instrumented function that sent the request (absent outside measured scopes) - route: axum route template (e.g. GET /users/{id}) whose handler sent the request; absent outside AxumLayer or when route scoping is disabled. The same endpoint under two routes yields two entries - count: number of requests - errors: transport errors plus responses with status >= 400 - avg, total, and percentiles: formatted durations - percent_total: share of total outbound HTTP time - location: source location of the source function (when known) The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Use http_logs with an endpoint id to get recent individual requests.
http_logsGet detailed request logs for a specific HTTP endpoint. Returns a JSON object with id and logs: recent requests, each with index, timestamp, ago, duration (formatted), and status (status code, or "error" for transport failures). Use http first to get endpoint IDs, then use this tool to get detailed logs.
ioGet byte-level I/O metrics for all instrumented Read/Write/AsyncRead/AsyncWrite values. Returns a JSON object with current_elapsed_ns, percentiles, and data: one entry per wrapper call site, each with: - id, name, labeled, source, location, type_name: identification - instances: wrapper instances aggregated into the entry - read, write, flush, shutdown: per-operation stats, each with: - count / sampled_count: completed operations and operations that were timed - bytes / sampled_bytes: total bytes processed and bytes of timed operations - errors: failed operations (retryable WouldBlock/Interrupted conditions are not counted) - avg, percentiles: formatted durations; total_ns: raw total duration in nanoseconds - bytes_per_sec: formatted transfer rate over timed operations, in bytes per second without a /s suffix (null when nothing was timed) The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Async durations span first poll to Ready, so they include async waiting time. I/O values are instrumented via hotpath_meta::io!(expr). Wrapping the underlying resource (file, socket) measures actual resource I/O; wrapping a BufReader/BufWriter measures application-facing buffered operations.
mutexesGet wait and acquire-time metrics for all monitored Mutexes. Returns a JSON object with current_elapsed_ns, percentiles, and data: one entry per mutex, each with: - id, name, labeled, source, location, type_name: identification - count: number of lock acquisitions; sampled_count: acquisitions that were timed - wait_avg and wait_percentiles: formatted time blocked before the lock was granted - acquire_avg and acquire_percentiles: formatted time the lock was held, granted to released The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). High wait times indicate lock contention; high acquire times indicate long critical sections. Mutexes are instrumented via hotpath_meta::mutex!(expr).
profiler_statusGet profiler status. Returns a JSON object with: - uptime: human-readable duration since profiler started (e.g. "1m 23s", "2h 5m 30s") - pid: process id of the profiled application Use to check if the profiler is running and how long it has been active.
rw_locksGet wait and acquire-time metrics for all monitored RwLocks. Returns a JSON object with current_elapsed_ns, percentiles, and data: one entry per lock, each with: - id, name, labeled, source, location, type_name: identification - read_count / write_count: number of read and write acquisitions; read_sampled_count / write_sampled_count: acquisitions that were timed - read_wait_avg / write_wait_avg and read_wait_percentiles / write_wait_percentiles: formatted time blocked before the lock was granted - read_acquire_avg / write_acquire_avg and read_acquire_percentiles / write_acquire_percentiles: formatted time the lock was held, granted to released The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). High wait times indicate lock contention; high acquire times indicate long critical sections. Locks are instrumented via hotpath_meta::rw_lock!(expr).
serverGet response-time metrics for HTTP requests served by the app's axum router, captured via hotpath_meta::AxumLayer. Returns a JSON object with current_elapsed_ns, total_ns, total_calls, total_alloc_bytes, percentiles, and data: one entry per matched route template (e.g. GET /users/{id}; requests that matched no route are bucketed by their normalized raw path), sorted by total time, each with: - id: route id, input for server_logs - route: METHOD template key - count: number of requests served - status_4xx / status_5xx: responses with a 4xx / 5xx status - sql_per_request / http_per_request: average SQL queries and outbound HTTP requests issued per request (absent when not measurable) - avg, total, and percentiles: formatted durations (measured until the response head is produced; body streaming is excluded) - percent_total: share of total server time - alloc: with hotpath-alloc-meta, bytes_per_request, allocs_per_request, total_bytes, and formatted avg/total/percentiles/percent_total of memory allocated per request The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Requires wrapping the router with hotpath_meta::axum!(...) (or adding hotpath_meta::AxumLayer::new() via Router::layer). Use server_logs with a route id to get recent individual requests.
server_logsGet detailed request logs for a specific server route. Returns a JSON object with id and logs: recent requests, each with index, timestamp, ago, duration (formatted), and status code. Use server first to get route IDs, then use this tool to get detailed logs.
sqlGet execution-time metrics for captured SQL queries. Returns a JSON object with current_elapsed_ns, total_ns, total_calls, percentiles, and data: one entry per normalized query (parameter-varied executions merge into one bucket), sorted by total time, each with: - id: query id, input for sql_logs - query: normalized SQL statement text - source: innermost instrumented function that ran the query (absent outside measured scopes) - route: axum route template (e.g. GET /users/{id}) whose handler ran the query; absent outside AxumLayer or when route scoping is disabled. The same query under two routes yields two entries - count: number of executions - avg, total, and percentiles: formatted durations - percent_total: share of total SQL time - location: source location of the source function (when known) The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Use sql_logs with a query id to get recent individual executions.
sql_logsGet detailed execution logs for a specific SQL query. Returns a JSON object with id and logs: recent executions, each with index, timestamp, ago, duration (formatted), and query. Use sql first to get query IDs, then use this tool to get detailed logs.
stream_logsGet detailed item logs for a specific stream. Returns a JSON object with id and logs: recent yield events, each with index, timestamp, ago, message, and thread_id. Use streams first to get stream IDs, then use this tool to get detailed logs.
streamsGet metrics for all monitored async streams. Returns a JSON object with current_elapsed_ns and data: one entry per stream call site, each with: - id: stream id, input for stream_logs - name, labeled, source, location: identification - state: "active" or "closed"; omitted for aggregated entries (instances > 1) - instances / closed_instances: stream instances aggregated into the entry and how many have completed - items_yielded: count of items produced - type_name, type_size: item type The response object (not each entry) also has total_count / included_count: entries measured vs entries returned in data (data was truncated by the display limit when they differ). Use to track stream throughput and identify stalled streams.
threadsGet CPU and memory metrics for all threads of the profiled process. Returns a JSON object with: - current_elapsed_ns, sample_interval_ms, thread_count - rss_bytes / rss_bytes_max: current and peak resident set size, formatted (when available) - total_alloc_bytes, total_dealloc_bytes, alloc_dealloc_diff: formatted process-wide totals (with hotpath-alloc-meta) - data: threads sorted by peak CPU usage (with hotpath-alloc-meta: by allocation traffic, the larger of allocated and deallocated bytes), each with: - os_tid, name (e.g. "tokio-runtime-worker"), status, status_code - cpu_percent, cpu_percent_max, cpu_percent_avg: formatted CPU utilization (e.g. "12.3%", 100% per core; null until sampled) - alloc_bytes, dealloc_bytes, mem_diff: formatted per-thread allocation totals (with hotpath-alloc-meta) - total_count / included_count: entries measured vs entries returned in data (the list was truncated by the display limit when they differ) Sampled at configurable interval (HOTPATH_META_THREADS_INTERVAL_MS env var, default 250ms). Useful for identifying CPU-bound threads and memory growth.
tokio_runtimeGet Tokio runtime metrics snapshot (requires tokio feature). Returns a JSON object with num_workers, num_alive_tasks, global_queue_depth, optional blocking-pool, spawn, remote-schedule and IO driver counters, and workers: per-worker stats (index, park_count, busy_duration_ms, and when available poll_count, steal_count, steal_operations, overflow_count, local_queue_depth, mean_poll_time_us). Requires calling hotpath_meta::tokio_runtime!() in the profiled application.
val_entriesGet all val! value tracking entries. Returns a JSON array of entries, each with id, entry_type ("val"), expression (the val! key), source, source_display, location, log_count, and last_value. Use the returned IDs with val_logs to get detailed history.
val_logsGet detailed logs for a specific val! debug entry. Returns a JSON object with key, total_logs, and logs: recent value updates, each with index, timestamp, ago, value, thread_id, and source. Use val_entries first to get entry IDs, then use this tool to get detailed logs.

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.6K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by Cargo.lock and crates/test-toasty/Cargo.lock.
  • ✓No dynamic code executionScanned 264 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
Streamable HTTPcrates/hotpath-meta/src/mcp_server.rs:7
Starts other programs
15 callscrates/hotpath-meta/bin/hotpath-samply-meta/main.rs:55, crates/hotpath-meta/bin/hotpath-samply-meta/main.rs:110, crates/hotpath-meta/bin/hotpath-samply-meta/main.rs:151
Outbound network calls
16 callscrates/hotpath/bin/hotpath/cmd/console.rs:145, crates/hotpath/bin/hotpath/cmd/console/demo.rs:385, crates/hotpath/bin/hotpath/cmd/console/demo.rs:411
Writes or deletes files
111 callscrates/hotpath-meta/bin/hotpath-samply-meta/main.rs:212, crates/hotpath-meta/bin/hotpath-samply-meta/main.rs:226, crates/hotpath-meta/bin/hotpath-samply-meta/main.rs:229
Lockfile
Cargo.lock and crates/test-toasty/Cargo.lock

Pattern matches on the source text of 264 files: places to read, not proof of what the code does at run time.

Releases

v0.33.0v0.33.0 · 22 Nov 2026Changelog: https://github.com/hotpath-rs/hotpath/blob/main/CHANGELOG.md#0330---2026-11-22
v0.32.1v0.32.1 · 17 Nov 2026Changelog: https://github.com/hotpath-rs/hotpath/blob/main/CHANGELOG.md#0321---2026-11-17
v0.32.0v0.32.0 · 16 Nov 2026Changelog: https://github.com/hotpath-rs/hotpath/blob/main/CHANGELOG.md#0320---2026-11-16
v0.31.3v0.31.3 · 14 Nov 2026Changelog: https://github.com/hotpath-rs/hotpath/blob/main/CHANGELOG.md#0313---2026-11-14
v0.31.2v0.31.2 · 9 Nov 2026Changelog: https://github.com/hotpath-rs/hotpath/blob/main/CHANGELOG.md#0312---2026-11-09

README

The repository's README runs to about 1.6K words, fetched 5 days ago. The original in the repository is authoritative.

Read full README
Questions

About Hotpath Rs

How do I install Hotpath Rs?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Hotpath Rs safe to use with an AI agent?

Its trust score is 86 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 264 source files found that it serves MCP over Streamable HTTP, starts other programs (15 calls), makes outbound network calls (16 calls) and writes or deletes files (111 calls). Its dependencies are pinned by Cargo.lock and crates/test-toasty/Cargo.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Hotpath Rs still maintained?

Yes — the latest release is v0.33.0 (22 Nov 2026), and the last commit was 2 days ago. The repository has 1.9K stars and 7 open issues.

What tools does Hotpath Rs provide?

Conduid read 30 tools from the source: channel_logs, channels, dbg_entries, dbg_logs, function_alloc_logs, function_timing_logs, functions_alloc, functions_cpu and 22 more.

What license is Hotpath Rs released under?

The repository declares the MIT license. That applies to the latest release, v0.33.0, as well.