feat!: implement SEP-2549 cache hints (#889)

implements https://github.com/modelcontextprotocol/rust-sdk/issues/875

Co-authored-by: Jack Amadeo <jackamadeo@squareup.com>
This commit is contained in:
Michael Neale 2026-07-10 10:54:18 -07:00 • committed by GitHub
commit d8331d9442
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 403 additions and 7 deletions

View file

@ -65,6 +65,8 @@ pub fn prompt_handler(attr: TokenStream, input: TokenStream) -> syn::Result<Toke
prompts,
meta: #meta,
next_cursor: None,
ttl_ms: None,
cache_scope: None,
})
}
};

View file

@ -73,6 +73,8 @@ pub fn tool_handler(attr: TokenStream, input: TokenStream) -> syn::Result<TokenS
tools: #router.list_all(),
meta: #result_meta,
next_cursor: None,
ttl_ms: None,
cache_scope: None,
})
}
})?;