tru-mcp 0.18.4 → 0.18.5
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,9 @@ app.use((req, res, next) => {
|
|
|
311
311
|
|
|
312
312
|
**Change 1: Agent signup link**
|
|
313
313
|
|
|
314
|
-
Use AskUserQuestion:
|
|
314
|
+
Use AskUserQuestion. Include an ASCII mock showing how the login page will look with the tru link added. Read the developer's actual login page first to understand the layout, then create a simple text representation:
|
|
315
315
|
|
|
316
|
-
question: "
|
|
316
|
+
question: "I'll add a small agent discovery link below your login form. Here's how it'll look:\\n\\n┌─────────────────────────┐\\n│ │\\n│ [Email] │\\n│ [Password] │\\n│ [ Log in ] │\\n│ │\\n│ Don't have an account? │\\n│ Sign up │\\n│ │\\n│ AI Agent? Sign up with │\\n│ tru │\\n│ │\\n└─────────────────────────┘\\n\\nThe last line is barely visible — small gray text. Human visitors won't notice it. When an AI agent visits your login page, it follows this link to learn how to sign users up and process payments through tru."
|
|
317
317
|
header: "Agent Signup Link"
|
|
318
318
|
options:
|
|
319
319
|
- label: "Yes, add it"
|
|
@@ -321,6 +321,8 @@ Use AskUserQuestion:
|
|
|
321
321
|
- label: "Tell me more"
|
|
322
322
|
description: "I want to understand what this does first"
|
|
323
323
|
|
|
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
|
+
|
|
324
326
|
If they say yes, run \`dev_add_agent_signup(service_name)\` to get the snippet and add it to the login page HTML.
|
|
325
327
|
|
|
326
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>\`:
|
|
@@ -333,6 +335,12 @@ Replace \`{service_name}\` with the actual service name. Only add it if it's not
|
|
|
333
335
|
|
|
334
336
|
If they say "tell me more", explain: the link is a plain \`<a>\` tag styled in small gray text. It points to the tru-hosted agent.md URL. Agents browsing the web follow links — when they land on your login page and see this link, they follow it to learn how to use your app through tru. It's like a \`robots.txt\` but for agent onboarding. Then ask again.
|
|
335
337
|
|
|
338
|
+
**After adding the snippet**, open the login page in the developer's browser so they can see it live:
|
|
339
|
+
\`\`\`
|
|
340
|
+
Tell the developer: "I've opened your login page in the browser so you can see how the link looks. If the styling doesn't match, let me know and I'll adjust the CSS."
|
|
341
|
+
\`\`\`
|
|
342
|
+
Open the login page URL (localhost) in the browser. If they want changes, adjust the \`tru-agent-signup a\` CSS styles.
|
|
343
|
+
|
|
336
344
|
**Optional: Content negotiation**
|
|
337
345
|
|
|
338
346
|
Use AskUserQuestion:
|
|
@@ -380,6 +388,27 @@ Run \`dev_validate(service_name)\` to verify the full integration — provisioni
|
|
|
380
388
|
|
|
381
389
|
Fix any issues. Re-run until all checks pass.
|
|
382
390
|
|
|
391
|
+
**Optional: Create a pull request**
|
|
392
|
+
|
|
393
|
+
Use AskUserQuestion:
|
|
394
|
+
|
|
395
|
+
question: "I've made several changes to your codebase (server, login page, env config). Want me to create a Git branch and open a pull request so you can review the changes before merging?"
|
|
396
|
+
header: "Pull Request"
|
|
397
|
+
options:
|
|
398
|
+
- label: "Yes, create a PR"
|
|
399
|
+
description: "I'll review the changes before merging"
|
|
400
|
+
- label: "No, keep the changes"
|
|
401
|
+
description: "I'm happy with the changes as-is"
|
|
402
|
+
|
|
403
|
+
If they say yes:
|
|
404
|
+
1. Create a new branch: \`git checkout -b tru-integration\`
|
|
405
|
+
2. Stage all tru-related changes (server.js, public/login.html, public/llms.txt, .env, .gitignore)
|
|
406
|
+
3. Commit with message: "Add tru integration: provisioning, agent discovery, payments"
|
|
407
|
+
4. If a GitHub remote exists, push and create a PR using \`gh pr create\` or provide the URL
|
|
408
|
+
5. Tell the developer the PR is ready for review
|
|
409
|
+
|
|
410
|
+
If they say no, that's fine — the changes are already in their working directory.
|
|
411
|
+
|
|
383
412
|
**Your app is live on tru.**
|
|
384
413
|
|
|
385
414
|
AI agents can now discover your app, sign users up, and process payments — all flowing directly to your Stripe account. Your next customer could come from any AI agent, anywhere.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup_guide.js","sourceRoot":"","sources":["../../src/tools/setup_guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,QAAQ,EAER,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAE5B,oEAAoE;AAEpE,SAAS,iBAAiB;IACxB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0FK,QAAQ;;;;;;;;;;;;;;;kDAe4B,CAAC;AACnD,CAAC;AAED,SAAS,iBAAiB;IACxB,OAAO;;;;;;;;;;;;2BAYkB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAiDe,CAAC;AACnD,CAAC;AAED,SAAS,qBAAqB;IAC5B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CP,4BAA4B;;;;EAI5B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;4EAyBmD,CAAC;AAC7E,CAAC;AAED,SAAS,eAAe;IACtB,OAAO;;;;0JAIiJ,QAAQ;;;;;;;;EAQhK,qBAAqB;;;;;;;;;;;MAWjB,QAAQ;;;;;;;;;+BASiB,QAAQ;;;;;;;;;;;kBAWrB,QAAQ
|
|
1
|
+
{"version":3,"file":"setup_guide.js","sourceRoot":"","sources":["../../src/tools/setup_guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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