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
38
39
//! Model Context Protocol (MCP) server implementation.
//!
//! Provides an MCP server that exposes kreuzcrawl's web crawling and scraping
//! capabilities as MCP tools for integration with AI assistants.
//!
//! # Implemented Tools
//!
//! - **scrape**: Scrape a single URL and extract content as markdown or JSON
//! - **crawl**: Crawl a website following links up to a configured depth
//! - **map**: Discover all pages on a website via links and sitemaps
//! - **batch_scrape**: Scrape multiple URLs concurrently
//! - **download**: Download a document from a URL
//! - **get_version**: Get the current kreuzcrawl library version
//!
//! # Planned Tools (stubs registered, not yet implemented)
//!
//! - **screenshot**: Capture a screenshot of a URL (requires browser feature)
//! - **interact**: Execute browser actions on a page (requires interact feature)
//! - **research**: AI-driven research across multiple pages (requires ai feature)
//! - **crawl_status**: Check the status of a crawl job (requires job registry)
//!
//! # Example
//!
//! ```rust,no_run
//! use kreuzcrawl::mcp::start_mcp_server;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
//! start_mcp_server().await?;
//! Ok(())
//! }
//! ```
pub use ;