@myop/cli 0.1.48 → 0.1.49

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.
@@ -60,12 +60,14 @@ Uploads the component to Myop platform. First push assigns a `componentId` and u
60
60
 
61
61
  ### Pull (download) from Myop
62
62
  ```bash
63
- # Pull using componentId from myop.config.json
63
+ # Pull latest variant (preview)
64
64
  npx myop pull
65
-
66
- # Pull by ID
67
65
  npx myop pull <componentId>
68
66
 
67
+ # Pull variant released to a specific environment
68
+ npx myop pull --env staging
69
+ npx myop pull <componentId> --env production
70
+
69
71
  # Pull to a specific output path
70
72
  npx myop pull <componentId> -o ./output/index.html
71
73
  ```
@@ -125,6 +127,25 @@ npx myop dev # Start dev server at localhost:9292
125
127
  # Edit index.html → changes reflect instantly
126
128
  ```
127
129
 
130
+ ## Myop MCP Tools (Fallback)
131
+
132
+ If the Myop MCP server is configured in your IDE, you also have access to MCP tools:
133
+ `upload_component`, `get_component`, `list_components`, `list_organizations`, `whoami`, `setup_cli_auth`.
134
+
135
+ **Always prefer CLI commands over MCP tools.** The CLI is faster, handles build detection,
136
+ file I/O, and config updates automatically. MCP tools like `get_component` return large
137
+ HTML payloads that waste LLM context — `myop pull` + reading the file is always better.
138
+
139
+ Use MCP tools only when:
140
+ - The `myop` CLI is not installed or not accessible
141
+ - The CLI fails with `[MYOP_MCP_FALLBACK]` (sandboxed environment, network blocked)
142
+ - You need org/component metadata without file operations
143
+
144
+ ### Auth sharing
145
+ If the user is authenticated via MCP but not CLI, call the `setup_cli_auth` MCP tool
146
+ to get credentials, then save to `~/.myop/credentials.json`. This enables `myop push/pull`
147
+ without requiring `myop login`.
148
+
128
149
  ## Configuration
129
150
 
130
151
  ### myop.config.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myop/cli",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Myop cli",
5
5
  "type": "module",
6
6
  "repository": {