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
# If the authorization is not completed, print the authorization URL and wait for the user to authorize the app.
127
144
# Tools that do not require authorization will have the status "completed" already.
128
145
if auth_response.status !="completed":
129
-
print(f"Click this link to authorize {tool_name}:{auth_response.url}. The process will continue once you have authorized the app.")
146
+
print(f"Click this link to authorize {tool_name}:\n{auth_response.url}.\nThe process will continue once you have authorized the app.")
130
147
client.auth.wait_for_completion(auth_response.id)
131
148
132
149
# Run the tool
@@ -157,7 +174,7 @@ async function authorize_and_run_tool({
157
174
// If the authorization is not completed, print the authorization URL and wait for the user to authorize the app. Tools that do not require authorization will have the status "completed" already.
158
175
if (authResponse.status!=="completed") {
159
176
console.log(
160
-
`Click this link to authorize ${tool_name}:\`${authResponse.url}\`. The process will continue once you have authorized the app.`
177
+
`Click this link to authorize ${tool_name}:\n${authResponse.url}.\nThe process will continue once you have authorized the app.`
print(f"Success! Check your email at {user_id}\n\nYou just chained 3 tools together:\n 1. Searched Google News for stories about MCP URL mode elicitation\n 2. Created a Google Doc with the results\n 3. Sent yourself an email with the document link\n\nEmail metadata:")
444
464
print(response_send_email.output.value)
445
465
```
466
+
</details>
446
467
447
468
</Tabs.Tab>
448
469
<Tabs.Tab>
449
470
471
+
<details>
472
+
<summary>**example.ts** (full file)</summary>
450
473
```typescript filename="example.ts"
451
474
importArcadefrom"@arcadeai/arcadejs";
452
475
@@ -481,7 +504,7 @@ async function authorize_and_run_tool({
481
504
// If the authorization is not completed, print the authorization URL and wait for the user to authorize the app. Tools that do not require authorization will have the status "completed" already.
482
505
if (authResponse.status!=="completed") {
483
506
console.log(
484
-
`Click this link to authorize ${tool_name}:\`${authResponse.url}\`. The process will continue once you have authorized the app.`
507
+
`Click this link to authorize ${tool_name}:\n${authResponse.url}.\nThe process will continue once you have authorized the app.`
0 commit comments