This directory contains example scripts and usage patterns for the Maestro Knowledge CLI.
A comprehensive example script that demonstrates how to use the CLI with a real MCP server.
- Automatic MCP server detection: Checks if the MCP server is running and starts it if needed
- Multiple usage patterns: Shows different ways to configure and use the CLI
- Environment variable examples: Demonstrates environment variable configuration
- Command-line flag examples: Shows command-line flag usage
- Dry-run and verbose modes: Examples of testing and debugging modes
# Make the script executable
chmod +x example_usage.sh
# Run the examples
./example_usage.sh- Basic list command: Simple usage without additional flags
- Verbose output: Using
--verbosefor detailed information - Environment variable configuration: Setting
MAESTRO_MCP_SERVER_URI .envfile usage: Loading configuration from.envfiles- Dry-run mode: Testing commands without making changes
- Silent mode: Suppressing success messages
- Go 1.21 or later
- Access to the Maestro Knowledge project root
- MCP server (will be started automatically if not running)
The script will show:
- CLI build status
- MCP server status and startup
- Example command outputs
- Success/failure indicators
If the script fails:
- Check Go installation: Ensure Go 1.21+ is installed
- Verify project structure: Make sure you're in the correct directory
- Check MCP server: The script will attempt to start the server automatically
- Review permissions: Ensure the script is executable
To add new examples:
- Create your example script in this directory
- Make it executable:
chmod +x your_example.sh - Update this README.md with documentation
- Test your example thoroughly
#!/bin/bash
# Example: Your Example Name
# Description: What this example demonstrates
set -e
# Your example code here
echo "Running example..."
# Demonstrate CLI usage
./maestro --help- CLI README - Main CLI documentation
- Project README - Project overview
- MCP Server Documentation - MCP server details