Skip to content

Commit f3529f6

Browse files
committed
docs: rename configureElicitationHandler to configureElicitationHandlers
1 parent bc155fc commit f3529f6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/content/changelog/agents/2026-07-09-url-elicitation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Some tool calls require the user to visit a URL, most commonly an OAuth authoriz
1717

1818
## How to use it
1919

20-
Register elicitation handlers in `onStart()` with `this.mcp.configureElicitationHandler({ form, url })`. Connections advertise exactly the modes with configured handlers to servers at the `initialize` handshake.
20+
Register elicitation handlers in `onStart()` with `this.mcp.configureElicitationHandlers({ form, url })`. Connections advertise exactly the modes with configured handlers to servers at the `initialize` handshake.
2121

2222
<TypeScriptExample>
2323

@@ -27,7 +27,7 @@ import type { ElicitRequest, ElicitResult } from "agents/mcp";
2727

2828
class MyAgent extends Agent<Env> {
2929
onStart() {
30-
this.mcp.configureElicitationHandler({
30+
this.mcp.configureElicitationHandlers({
3131
url: async (
3232
request: ElicitRequest,
3333
serverId: string,

src/content/docs/agents/model-context-protocol/apis/client-api.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export class MyAgent extends Agent {
316316

317317
## Elicitation
318318

319-
MCP servers can request input from your agent during a tool call using [elicitation](https://modelcontextprotocol.io/specification/latest/client/elicitation). To respond, register an elicitation handler with `this.mcp.configureElicitationHandler()` in `onStart()`:
319+
MCP servers can request input from your agent during a tool call using [elicitation](https://modelcontextprotocol.io/specification/latest/client/elicitation). To respond, register an elicitation handler with `this.mcp.configureElicitationHandlers()` in `onStart()`:
320320

321321
<TypeScriptExample>
322322

@@ -326,7 +326,7 @@ import type { ElicitRequest, ElicitResult } from "agents/mcp";
326326

327327
class MyAgent extends Agent<Env> {
328328
onStart() {
329-
this.mcp.configureElicitationHandler({
329+
this.mcp.configureElicitationHandlers({
330330
url: async (
331331
request: ElicitRequest,
332332
serverId: string,
@@ -362,7 +362,7 @@ Elicitation requests arrive in one of two modes, each with its own handler:
362362
<TypeScriptExample>
363363

364364
```ts
365-
this.mcp.configureElicitationHandler({
365+
this.mcp.configureElicitationHandlers({
366366
form: async (request) => {
367367
// Collect values matching request.params.requestedSchema from the user,
368368
// then accept with the collected fields
@@ -438,7 +438,7 @@ class MyAgent extends Agent<Env> {
438438
return result;
439439
};
440440

441-
this.mcp.configureElicitationHandler({
441+
this.mcp.configureElicitationHandlers({
442442
form: forwardToBrowser,
443443
url: forwardToBrowser,
444444
});

0 commit comments

Comments
 (0)