thoughtjack 0.6.0

Adversarial agent security testing tool
Documentation
//! MCP server-mode `PhaseDriver` implementation.
//!
//! `McpServerDriver` listens for JSON-RPC requests from an AI agent
//! client, dispatches responses based on the current OATF phase's
//! effective state, applies behavioral modifiers (delayed, `slow_stream`,
//! `notification_flood`, etc.), supports elicitation interleaving, and
//! emits protocol events for the `PhaseLoop` to process.
//!
//! `McpTransportEntryActionSender` implements `EntryActionSender` to
//! deliver phase-transition notifications and elicitations over the
//! transport.
//!
//! See TJ-SPEC-013 ยง8.2 for the MCP server driver specification.

mod behavior;
mod driver;

#[cfg(fuzzing)]
pub mod generation;
#[cfg(not(fuzzing))]
mod generation;

#[cfg(fuzzing)]
pub mod handlers;
#[cfg(not(fuzzing))]
mod handlers;

// pub(crate): context.rs uses a2a_skill_array/a2a_skill_name for the
// context-mode A2A shim. pub for fuzzing.
#[cfg(fuzzing)]
pub mod helpers;
#[cfg(not(fuzzing))]
pub(crate) mod helpers;

#[cfg(fuzzing)]
pub mod response;
#[cfg(not(fuzzing))]
mod response;

#[cfg(test)]
mod tests;

pub use driver::{McpServerDriver, McpTransportEntryActionSender};