@xano/developer-mcp 2.2.1-beta.0 → 2.2.1-beta.2

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.
@@ -17,6 +17,8 @@ The authentication flow has a 5-minute timeout.
17
17
 
18
18
  On remote/SSH sessions, Docker containers, or locked-down networks where the browser can't reach the CLI's loopback address, use \`--no-browser\`: the CLI prints a login URL, you open it in any browser, and paste back the code it displays. No local callback server required.
19
19
 
20
+ When stdin is piped (not a TTY), \`--no-browser\` reads the code directly from stdin instead of prompting, so scripts and AI agents can complete the flow without an interactive terminal: \`echo "$CODE" | xano auth --no-browser -i my-instance -w 5 -b dev -p staging\`.
21
+
20
22
  ## Pre-selecting with Flags
21
23
 
22
24
  Each interactive picker can be pre-answered with a flag: \`-i/--instance\` (instance name), \`-w/--workspace\` (workspace ID or name), \`-b/--branch\` (branch label), and \`-p/--profile\` (profile name to save). An empty value (\`""\`) takes the picker's default answer: \`-w ""\` skips workspace selection, \`-b ""\` skips and uses the live branch, \`-p ""\` uses the default profile name. With all four set alongside \`--no-browser\`, the only input is pasting the code from the browser — useful for scripted or remote setups.`,
@@ -31,6 +33,7 @@ Each interactive picker can be pre-answered with a flag: \`-i/--instance\` (inst
31
33
  - User doesn't have an access token handy
32
34
  - User prefers browser-based login
33
35
  - User is in a headless/SSH environment: use \`xano auth --no-browser\`
36
+ - Script or agent needs to complete headless auth non-interactively: pipe the code on stdin, e.g. \`echo "$CODE" | xano auth --no-browser ...\` (with -i/-w/-b/-p set, no prompts remain)
34
37
 
35
38
  **When to suggest profile wizard/create instead:**
36
39
  - User already has an access token
@@ -64,7 +67,8 @@ The sandbox is a free-tier personal dev environment (auto-provisioned singleton
64
67
  "xano auth -k # for self-signed certificates",
65
68
  "xano auth --no-browser # headless: paste the code shown in the browser",
66
69
  "xano auth -i my-instance -w 5 -b dev -p staging # pre-answer all pickers",
67
- "xano auth --no-browser -i my-instance -w \"\" -b \"\" -p \"\" # scripted setup, only the code prompt remains"
70
+ "xano auth --no-browser -i my-instance -w \"\" -b \"\" -p \"\" # scripted setup, only the code prompt remains",
71
+ "echo \"$CODE\" | xano auth --no-browser -i my-instance -w 5 -b dev -p staging # fully scripted: code read from piped stdin, no prompt at all"
68
72
  ]
69
73
  }
70
74
  ],
@@ -90,7 +94,7 @@ xano profile me`
90
94
  steps: [
91
95
  "Run: `xano auth --no-browser` (add -i/-w/-b/-p to skip the pickers)",
92
96
  "Open the printed URL in any browser and log in",
93
- "Copy the code shown in the browser and paste it into the CLI prompt",
97
+ "Copy the code shown in the browser and paste it into the CLI prompt (or pipe it on stdin: `echo \"$CODE\" | xano auth --no-browser ...`)",
94
98
  "Verify: `xano profile me`"
95
99
  ],
96
100
  example: `xano auth --no-browser -i my-instance -w 5 -b dev -p staging
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xano/developer-mcp",
3
- "version": "2.2.1-beta.0",
3
+ "version": "2.2.1-beta.2",
4
4
  "description": "MCP server and library for Xano development - XanoScript validation, Meta API, Run API, and CLI documentation",
5
5
  "type": "module",
6
6
  "main": "dist/lib.js",