You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking Changes:
- Remove all specific mbro CLI flags (--connect, --list-tools, --call-tool, etc.)
- mbro now takes commands as positional arguments instead of flags
- Use semicolons to separate multiple commands
- Connect to servers with mbro shell syntax in the CLI
Major improvements:
- Add script execution support with -x/--execute-script flag
- Support stdin input with '-' as command argument
- Implement semicolon command separator for chaining commands
- Add friendly path display for script listing (relative/~/absolute)
- Add smart partial path matching for scripts with full basename requirement
- Fix script errors to exit(1) instead of dropping to interactive mode
- Add format_warning method to OutputFormatter
- Logging improvements
Code cleanup:
- Remove ~200 useless comments throughout mbro codebase
- Clean up circular import handling
Documentation:
- Update mbro.md to reflect new CLI interface
- Update all examples to use correct syntax
- Add proper command line options documentation
- Update readme.md to show magg CLI commands before mbro examples
- Add MBro to features list with documentation link
Testing:
- Add test suite for CLI overhaul
- Fix test expectations for stderr vs stdout output
Signed-off-by: Phillip Sitbon <phillip.sitbon@gmail.com>
2. **JSON in Interactive Shell vs Command Line**: In the interactive shell, use JSON directly without surrounding quotes. On the command line, you may need single quotes to protect from shell parsing.
498
514
3. **Multiple Connections**: You can connect to multiple servers and switch between them using the `switch` command.
499
-
4. **Direct Commands**: Use command line options like `--call-tool` to execute operations without entering the interactive shell.
515
+
4. **Direct Commands**: Pass commands as arguments to execute operations without entering the interactive shell.
500
516
5. **Empty Arguments**: When calling tools with no arguments, you can omit the empty `{}`in the interactive shell
501
517
502
518
### Command Line Options
503
-
- `--connect NAME CONNECTION` - Connect to a server on startup
504
-
- `--json` - Output only JSON (machine-readable)
519
+
- `commands` - Commands to execute (positional arguments)
520
+
- `--json` / `-j` - Output only JSON (machine-readable)
521
+
- `--no-rich` - Disable Rich formatting
522
+
- `--indent N` - Set JSON indent level (0 for compact, default: 2)
523
+
- `--verbose` / `-v` - Enable verbose output (can be used multiple times)
505
524
- `--no-enhanced` - Disable enhanced features (shell-style args, multiline, etc.)
506
-
- `--indent N` - Set JSON indent level (0 for compact)
507
-
- `--verbose` / `-v` - Enable verbose output
508
-
- `--list-tools` - List available tools
509
-
- `--list-resources` - List available resources
510
-
- `--list-prompts` - List available prompts
511
-
- `--call-tool TOOL [ARGS]` - Call a tool directly (use quotes for JSON args on command line)
512
-
- `--get-resource URI` - Get a resource directly
513
-
- `--get-prompt NAME [ARGS]` - Get a prompt directly
514
-
- `--search TERM` - Search tools, resources, and prompts
515
-
- `--info TYPE NAME` - Show info about tool/resource/prompt
525
+
- `--repl` - Drop into REPL mode on startup
526
+
- `-n` / `--no-interactive` - Don't drop into interactive mode after commands
527
+
- `-x SCRIPT` / `--execute-script SCRIPT` - Execute script file (can be used multiple times)
0 commit comments