feat(model): add ServerConfig and ClientConfig (#1266)
This commit is contained in:
parent
fbfc5cc96e
commit
165ff92df1
1 changed files with 331 additions and 303 deletions
|
|
@ -481,8 +481,8 @@ impl CountingServer {
|
|||
}
|
||||
|
||||
impl ServerHandler for CountingServer {
|
||||
fn get_info(&self) -> rmcp::model::InitializeResult {
|
||||
rmcp::model::InitializeResult::new(
|
||||
fn get_info(&self) -> rmcp::model::ServerConfig {
|
||||
rmcp::model::ServerConfig::new(
|
||||
rmcp::model::ServerCapabilities::builder()
|
||||
.enable_tools()
|
||||
.build(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue