From eb2c75bb7ab386bc6c477dea084784fc7c7058fc Mon Sep 17 00:00:00 2001 From: Nate Barbettini Date: Wed, 19 Nov 2025 15:30:04 -0800 Subject: [PATCH] chore: Add deprecated marker to old elicitInput overload --- src/server/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/index.ts b/src/server/index.ts index 8de1a3cc4..8ec838e51 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -345,11 +345,14 @@ export class Server< async elicitInput(params: ElicitRequestURLParams, options?: RequestOptions): Promise; /** * Creates an elicitation request for the given parameters. + * @deprecated Use the overloads with explicit `mode: 'form' | 'url'` instead. * @param params The parameters for the form elicitation request (legacy signature without mode). * @param options Optional request options. * @returns The result of the elicitation request. */ async elicitInput(params: LegacyElicitRequestFormParams, options?: RequestOptions): Promise; + + // Implementation (not visible to callers) async elicitInput( params: LegacyElicitRequestFormParams | ElicitRequestFormParams | ElicitRequestURLParams, options?: RequestOptions