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