iframer-cli 1.0.1 → 1.0.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.
- package/cli.cjs +15 -0
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -201,6 +201,20 @@ const [,, command, ...args] = process.argv;
|
|
|
201
201
|
|
|
202
202
|
async function main() {
|
|
203
203
|
switch (command) {
|
|
204
|
+
case "install": {
|
|
205
|
+
try {
|
|
206
|
+
execSync("claude mcp add iframer -- npx -y --package=iframer-cli iframer-mcp", { stdio: "inherit" });
|
|
207
|
+
console.log("\n iframer MCP installed in Claude Code!");
|
|
208
|
+
console.log(" Now run: iframer login");
|
|
209
|
+
} catch {
|
|
210
|
+
console.error(" Failed to install. Make sure Claude Code CLI is available.");
|
|
211
|
+
console.error(" You can manually add it with:");
|
|
212
|
+
console.error(" claude mcp add iframer -- npx -y --package=iframer-cli iframer-mcp");
|
|
213
|
+
process.exit(1);
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
|
|
204
218
|
case "login":
|
|
205
219
|
await login();
|
|
206
220
|
break;
|
|
@@ -518,6 +532,7 @@ async function main() {
|
|
|
518
532
|
iframer - CLI for the Agentic Browser API
|
|
519
533
|
|
|
520
534
|
Commands:
|
|
535
|
+
install Install iframer MCP in Claude Code
|
|
521
536
|
login Authenticate with the server
|
|
522
537
|
logout Remove saved credentials
|
|
523
538
|
status Show current auth status
|