Add @deprecated annotations to legacy APIs (#1018)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
adam jones 2025-11-03 15:21:18 +00:00 • committed by GitHub
commit 216604720b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,6 +101,7 @@ export type ServerOptions = ProtocolOptions & {
* version: "1.0.0"
* })
* ```
* @deprecated Use `McpServer` instead for the high-level API. Only use `Server` for advanced use cases.
*/
export class Server<
RequestT extends Request = Request,