Skip to content

Commit 547d516

Browse files
committed
field rename
1 parent 032b630 commit 547d516

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ async def elicit(
853853
related_request_id=self.request_id,
854854
)
855855

856-
return result.response
856+
return result.content
857857

858858
async def log(
859859
self,

src/mcp/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ class ElicitRequest(Request[ElicitRequestParams, Literal["elicitation/create"]])
11721172
class ElicitResult(Result):
11731173
"""The client's response to an elicitation/create request from the server."""
11741174

1175-
response: dict[str, Any]
1175+
content: dict[str, Any]
11761176
"""The response from the client, matching the structure of requestedSchema."""
11771177

11781178

tests/server/fastmcp/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ async def test_elicitation_feature(server: None, server_url: str) -> None:
137137
async def elicitation_callback(context, params):
138138
# Verify the elicitation parameters
139139
if params.message == "Tool wants to ask: What is your name?":
140-
return ElicitResult(response={"answer": "Test User"})
140+
return ElicitResult(content={"answer": "Test User"})
141141
else:
142142
raise ValueError("Unexpected elicitation message")
143143

tests/server/fastmcp/test_stdio_elicitation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def ask_user(prompt: str, ctx: Context) -> str:
3636
async def elicitation_callback(context, params):
3737
# Verify the elicitation parameters
3838
if params.message == "Tool wants to ask: What is your name?":
39-
return ElicitResult(response={"answer": "Test User"})
39+
return ElicitResult(content={"answer": "Test User"})
4040
else:
4141
raise ValueError(f"Unexpected elicitation message: {params.message}")
4242

0 commit comments

Comments
 (0)