Skip to main content

trip_test/
lib.rs

1//! trip-test — Contract testing & regression safety for MCP servers
2//!
3//! This library provides the core functionality for testing Model Context Protocol (MCP)
4//! server contracts. It allows you to:
5//! - Connect to MCP servers and enumerate their tools
6//! - Record baseline snapshots of tool schemas and exchanges
7//! - Replay snapshots to detect regressions
8//! - Compare contracts and classify breaking changes
9//!
10//! # Architecture
11//!
12//! The crate is organized into modules:
13//! - `mcp`: MCP protocol client (stdio transport)
14//! - `snapshot`: Snapshot file format and I/O
15//! - `diff`: Contract diffing and change classification
16//! - `config`: Configuration file parsing (TOML)
17//! - `logger`: Logging and verbosity control
18
19pub mod mcp;
20pub mod snapshot;
21pub mod diff;
22pub mod config;
23pub mod logger;
24
25pub use mcp::{MCPClient, Tool};
26pub use snapshot::{Snapshot, SnapshotMeta, ToolInfo, Exchange, ExchangeResult};
27pub use diff::{DiffReport, ToolChange, ChangeClass};
28pub use config::TripTestConfig;