omcp 0.2.0

Utility functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use async_trait::async_trait;

use crate::error::Result;
use crate::types::McpParams;

#[async_trait(?Send)]
pub trait OMcpServerTrait {
    async fn listen(&mut self) -> Result<()>;
    async fn close(&mut self) -> Result<()>;
    async fn list_tools(&mut self) -> Result<String>;
    async fn call(&mut self, params: &McpParams) -> Result<String>;
}