You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For URL mode elicitations, send a completion notification after the out-of-band interaction finishes. This tells the client that the elicitation is done and it may retry any blocked requests:
1012
+
URL mode elicitation directs the user to an external URL for out-of-band interactions that must not pass through the MCP client (e.g., entering sensitive data, OAuth flows). The tool call blocks while waiting for the user to complete the interaction:
1013
1013
1014
1014
```python
1015
+
import asyncio
1016
+
import uuid
1017
+
1018
+
import anyio
1019
+
1015
1020
from mcp.server.fastmcp import Context, FastMCP
1016
1021
from mcp.server.session import ServerSession
1017
1022
1018
-
mcp = FastMCP("Elicit Complete Example")
1023
+
mcp = FastMCP("Weather Example")
1024
+
1025
+
# Simulates a database that the web form writes to on submit
0 commit comments