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
- 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:
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
- 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."
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>\`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tru-mcp",
3
- "version": "0.18.5",
3
+ "version": "0.19.0",
4
4
  "description": "MCP server for tru — portable identity, billing, and provisioning for AI-native apps",
5
5
  "type": "module",
6
6
  "bin": {