ftl_core/
lib.rs

1//! # FTL Core
2//!
3//! Core MCP server implementation for building AI agent tools.
4
5pub mod server;
6pub mod spin;
7pub mod tool;
8pub mod types;
9
10// Re-export commonly used items
11pub use server::McpServer;
12pub use tool::Tool;
13pub use types::{JsonRpcRequest, JsonRpcResponse, ToolError, ToolResult};
14
15// The macro is already exported by spin module
16
17/// Convenient re-exports for tool implementations
18pub mod prelude {
19    pub use serde_json::{self, json};
20
21    pub use crate::{
22        ftl_mcp_server,
23        tool::Tool,
24        types::{ToolError, ToolResult},
25    };
26}