1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! MCP (Model Context Protocol) server for the plugin extraction system
//!
//! Exposes plugin-based visual data extraction as an MCP server with full
//! protocol support including initialization, tool discovery, and execution.
//!
//! # Standalone Server
//!
//! Run as a standalone server over stdin/stdout:
//!
//! ```sh
//! cargo run --bin stygian-plugin-mcp -- --templates-dir ./templates
//! ```
//!
//! # Architecture
//!
//! ```text
//! ┌──────────────────────────────────┐
//! │ Standalone MCP Server Binary │
//! │ (stdio JSON-RPC 2.0 transport) │
//! └─────────────┬──────────────────────┘
//! │
//! ┌─────────────▼──────────────────────┐
//! │ McpRequestHandler │
//! │ (initialize, tools/list,call) │
//! └─────────────┬──────────────────────┘
//! │
//! ┌─────────────▼──────────────────────┐
//! │ McpPluginServer │
//! │ (8 extraction & template tools) │
//! └──────────────────────────────────┘
//! ```
pub use McpRequestHandler;
pub use McpPluginServer;