This commit is contained in:
10
docs/snippets/rust/mcp/mcp_server_start.md
Normal file
10
docs/snippets/rust/mcp/mcp_server_start.md
Normal file
@@ -0,0 +1,10 @@
|
||||
```rust title="Rust"
|
||||
use kreuzberg::{ExtractionConfig, mcp::start_mcp_server_with_config};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
let config = ExtractionConfig::discover()?;
|
||||
start_mcp_server_with_config(config).await?;
|
||||
Ok(())
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user