iframer-cli 1.0.0 → 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.
Files changed (2) hide show
  1. package/cli.cjs +15 -0
  2. package/package.json +2 -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
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "iframer-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "CLI and MCP server for iframer — a headful/headless browser for AI agents",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "bin": {
8
+ "iframer-cli": "./cli.cjs",
8
9
  "iframer-mcp": "./index.js",
9
10
  "iframer": "./cli.cjs"
10
11
  },