feat!: align metadata models with draft schema (#993)
This commit is contained in:
parent
92581bee53
commit
839922d8fd
1 changed files with 2539 additions and 1059 deletions
|
|
@ -3,7 +3,9 @@ use futures::StreamExt;
|
|||
use rmcp::{
|
||||
ClientHandler, Peer, RoleServer, ServerHandler, ServiceExt,
|
||||
handler::{client::progress::ProgressDispatcher, server::tool::ToolRouter},
|
||||
model::{CallToolRequestParams, ClientRequest, Meta, ProgressNotificationParam, Request},
|
||||
model::{
|
||||
CallToolRequestParams, ClientRequest, ProgressNotificationParam, Request, RequestMetaObject,
|
||||
},
|
||||
service::PeerRequestOptions,
|
||||
tool, tool_handler, tool_router,
|
||||
};
|
||||
|
|
@ -61,7 +63,7 @@ impl Default for MyServer {
|
|||
impl MyServer {
|
||||
#[tool]
|
||||
pub async fn some_progress(
|
||||
meta: Meta,
|
||||
meta: RequestMetaObject,
|
||||
client: Peer<RoleServer>,
|
||||
) -> Result<(), rmcp::ErrorData> {
|
||||
let progress_token = meta
|
||||
|
|
|
|||
Loading…
Reference in a new issue