Skip to content

Commit 427a634

Browse files
ihrprdsp-ant
authored andcommitted
field rename
1 parent 40470d6 commit 427a634

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
@@ -1003,7 +1003,7 @@ async def elicit(
10031003
related_request_id=self.request_id,
10041004
)
10051005

1006-
return result.response
1006+
return result.content
10071007

10081008
async def log(
10091009
self,

src/mcp/types.py

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

1220-
response: dict[str, Any]
1220+
content: dict[str, Any]
12211221
"""The response from the client, matching the structure of requestedSchema."""
12221222

12231223

tests/server/fastmcp/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ async def test_elicitation_feature(server: None, server_url: str) -> None:
965965
async def elicitation_callback(context, params):
966966
# Verify the elicitation parameters
967967
if params.message == "Tool wants to ask: What is your name?":
968-
return ElicitResult(response={"answer": "Test User"})
968+
return ElicitResult(content={"answer": "Test User"})
969969
else:
970970
raise ValueError("Unexpected elicitation message")
971971

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)