poet 0.7.0

Static site generator with optional MCP server and LLM SEO optimizations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;
use async_trait::async_trait;
use serde_json::Value;

use crate::mcp::jsonrpc::response::success::tool_call_result::ToolCallResult;
use crate::mcp::tool::Tool;

#[async_trait]
pub trait ToolHandler: Send + Sync {
    async fn handle(&self, input: Value) -> Result<ToolCallResult<Value>>;

    fn tool_definition(&self) -> Tool;
}