mcp-rtk 1.6.0

Token-optimizing MCP proxy - sits between Claude and upstream MCP servers, compressing tool responses by 60-90%
Documentation
//! # mcp-rtk
//!
//! A token-optimizing MCP proxy that sits between Claude and any upstream MCP
//! server, compressing tool responses to reduce token consumption by 60–90%.
//!
//! # Architecture
//!
//! ```text
//! Claude ←(stdio)→ mcp-rtk ←(stdio/subprocess)→ upstream MCP server
//! ```
//!
//! mcp-rtk is both an MCP **server** (for Claude) and an MCP **client** (for
//! upstream). It forwards `list_tools` and `call_tool` requests, applying JSON
//! compression filters on responses before returning them.
//!
//! # Modules
//!
//! * [`config`] — TOML configuration loading with per-tool filter rules and
//!   external preset auto-discovery from `~/.local/share/mcp-rtk/presets/`.
//! * [`filter`] — The 8-stage filter pipeline and generic JSON compression
//!   functions.
//! * [`hot_reload`] — File watcher that hot-reloads external presets and
//!   atomically rebuilds the filter engine via [`arc_swap::ArcSwap`].
//! * [`proxy`] — [`ProxyServer`](proxy::ProxyServer) and
//!   [`ProxyClient`](proxy::ProxyClient) implementing the MCP server/client
//!   handlers.
//! * [`tracking`] — SQLite-backed token savings metrics.

pub mod config;
pub mod diff;
pub mod discover;
pub mod display;
pub mod filter;
pub mod hot_reload;
pub mod install;
pub mod preset_ops;
pub mod proxy;
pub mod tracking;