tru-mcp 0.18.5 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -311,9 +311,11 @@ app.use((req, res, next) => {
|
|
|
311
311
|
|
|
312
312
|
**Change 1: Agent signup link**
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
First, open the developer's login page in their browser so they can see the current state: open the local login URL (e.g. http://localhost:4000/login).
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
Then use AskUserQuestion:
|
|
317
|
+
|
|
318
|
+
question: "I just opened your login page. I'll add a small link at the bottom:\\n\\n Email: [________________]\\n Password: [________________]\\n [ Log in ]\\n\\n No account? Sign up\\n\\n AI Agent? Sign up with tru ← added by tru\\n\\nBarely visible to humans — but AI agents follow it to learn how to sign users up and process payments through your app."
|
|
317
319
|
header: "Agent Signup Link"
|
|
318
320
|
options:
|
|
319
321
|
- label: "Yes, add it"
|
|
@@ -321,8 +323,6 @@ Use AskUserQuestion. Include an ASCII mock showing how the login page will look
|
|
|
321
323
|
- label: "Tell me more"
|
|
322
324
|
description: "I want to understand what this does first"
|
|
323
325
|
|
|
324
|
-
Customize the ASCII mock based on the actual login page you read — show the real form fields and existing text, with the tru link at the bottom.
|
|
325
|
-
|
|
326
326
|
If they say yes, run \`dev_add_agent_signup(service_name)\` to get the snippet and add it to the login page HTML.
|
|
327
327
|
|
|
328
328
|
**Important:** The \`<tru-agent-signup>\` web component requires tru.js to render. Check if the login page already has a \`<script src="${BASE_URL}/tru.js" ...>\` tag. If not, add it to the login page's \`<head>\` or before the closing \`</body>\`:
|