Skip to main content

mcp_compressor_core/
lib.rs

1//! Shared Rust core for mcp-compressor.
2//!
3//! # Module layout
4//!
5//! | Module | Responsibility |
6//! |---|---|
7//! | [`compression`] | Pure tool-listing formatter and schema lookup |
8//! | [`config`] | MCP config JSON parsing, server naming |
9//! | [`proxy`] | Generic HTTP tool proxy with bearer-token auth |
10//! | [`client_gen`] | Artifact generators (shell, Python, TypeScript) |
11//! | [`cli`] | CLI name mapping and argv → tool-input parsing |
12//! | [`server`] | `CompressedServer`, `ToolCache`, tool registration |
13//! | [`ffi`] | FFI-safe surface for PyO3 / napi-rs language bindings |
14
15pub mod app;
16pub mod cli;
17pub mod client_gen;
18pub mod compression;
19pub mod config;
20pub mod error;
21pub mod ffi;
22pub mod llm_assist;
23pub mod oauth;
24pub mod proxy;
25pub mod sdk;
26pub mod server;
27
28pub use error::Error;