@@ -248,20 +248,20 @@ func main() {
248248 if session == nil {
249249 return nil , fmt .Errorf ("no active session" )
250250 }
251-
251+
252252 // Generate unique elicitation ID
253253 elicitationID := uuid .New ().String ()
254-
254+
255255 // Create URL with elicitation ID for tracking
256256 // In a real application, you would store the ID and associate it with the user session
257257 url := fmt .Sprintf ("https://myserver.com/set-api-key?elicitationId=%s" , elicitationID )
258258
259259 // Request URL mode elicitation
260260 result , err := mcpServer .RequestURLElicitation (
261- ctx ,
262- session ,
263- elicitationID ,
264- url ,
261+ ctx ,
262+ session ,
263+ elicitationID ,
264+ url ,
265265 "Please authenticate in your browser to continue." ,
266266 )
267267 if err != nil {
@@ -281,14 +281,14 @@ func main() {
281281 // Log error but continue
282282 fmt .Fprintf (os .Stderr , "Failed to send completion notification: %v\n " , err )
283283 }
284-
284+
285285 return & mcp.CallToolResult {
286286 Content : []mcp.Content {
287287 mcp .NewTextContent ("Authentication flow initiated. User accepted URL open request." ),
288288 },
289289 }, nil
290290 }
291-
291+
292292 return & mcp.CallToolResult {
293293 Content : []mcp.Content {
294294 mcp .NewTextContent (fmt .Sprintf ("User declined authentication: %s" , result .Action )),
@@ -311,7 +311,7 @@ func main() {
311311 if ! isAuthorized {
312312 // When a request needs authorization that hasn't been set up
313313 elicitationID := uuid .New ().String ()
314-
314+
315315 // Return a special error that tells the client to start elicitation
316316 return nil , mcp.URLElicitationRequiredError {
317317 Elicitations : []mcp.ElicitationParams {
0 commit comments