Terminal UI for managing AI agents, resources, and MCP servers across multiple AI tools
Project description
AI Agent Manager v0.1.0 (Beta)
Terminal UI for managing AI agents, resources, and MCP servers across multiple AI tools.
๐ฏ What It Does
AI Agent Manager helps you manage AI agents (Amazon Q CLI, Claude, etc.) with a visual terminal interface:
- ๐ Library Management: Organize knowledge files (templates, rules, docs)
- ๐ค Agent Configuration: Create and edit AI agents visually
- ๐ MCP Server Management: Add and configure Model Context Protocol servers
- ๐จ Dual-Pane Editor: Select resources and MCP servers with checkboxes
- ๐ Auto-Export: Agents automatically export to Q CLI directory
โจ Key Features
๐ฅ๏ธ TUI (Terminal User Interface)
- Dual-Pane Editor: Resources on left, agent config on right
- Multi-Select: Use Space to select multiple files/servers
- Keyboard Navigation: Arrow keys + shortcuts (no mouse needed)
- Live Preview: See current agent configuration while editing
- Auto-Export: Changes sync to Q CLI automatically
๐ Library System
- Base Library: Shared templates and rules (5 default templates included)
- Personal Library: Your custom files
- Clone & Edit: Copy base files to personal for customization
- Visual Separation: Clear distinction between base and personal files
๐ MCP Server Management
- Paste Configs: Copy JSON from internet, paste directly
- Flexible Parsing: Handles multiple JSON formats
- Edit Configs: Modify server settings in your editor
- Registry: Browse and add servers from MCP registry
๐ฆ Installation
# Install from PyPI
pip install ai-agent-manager
# Or install from source
git clone https://github.com/jschwellach/ai-configurator.git
cd ai-configurator
pip install -e .
๐ Quick Start
Launch TUI
ai-agent-manager
# or shorthand:
ai-config
# Navigate with:
# 1 - Agent Management
# 2 - Library Management
# 3 - MCP Servers
# 4 - Settings
# ? - Help
# q - Quit
Using CLI (For Automation)
# Create an agent
ai-config agent create my-agent --tool q-cli
# List agents
ai-config agent list
# Sync library
ai-config library sync
# Browse MCP servers
ai-config mcp browse
# Get help
ai-config --help
๐ Features
๐๏ธ Core Features
- Tool-Agnostic Library: Pure markdown knowledge that works with any AI tool
- Role-Based Organization: Knowledge organized around roles
- Multi-Tool Agent Support: Amazon Q CLI, Claude Projects, ChatGPT (planned)
- File References: Agents reference library files without duplication
- MCP Integration: Full MCP server management
- Cross-Platform: Windows, macOS, and Linux
๐ Library Management
- Synchronization: Conflict-aware sync between base and personal libraries
- Local Files: Include project files using glob patterns
- Git Integration: Clone, sync, and collaborate via Git
- Performance: Intelligent caching with 3.3x speedup
๐ฅ๏ธ User Experience
- TUI Mode: Visual, menu-driven interface
- CLI Mode: Simplified, consistent commands
- Interactive Wizards: Step-by-step setup
- Template System: Pre-built agent templates
๐ Documentation
- TUI User Guide - Complete TUI usage guide
- Migration Guide - Upgrading from v3.x
- Keyboard Shortcuts - Quick reference
- User Guide - Comprehensive documentation
- Troubleshooting - Common issues
๐ฎ Usage Examples
Agent Management
# CLI
ai-config agent create my-agent
ai-config agent list
ai-config agent export my-agent
# TUI
ai-config # Navigate to Agent Management
Library Management
# CLI
ai-config library status
ai-config library sync
ai-config library files "**/*.md"
# TUI
ai-config # Navigate to Library Management
MCP Server Management
# CLI
ai-config mcp browse
ai-config mcp install filesystem
ai-config mcp list
# TUI
ai-config # Navigate to MCP Servers
๐ Key Commands
| Command | Description |
|---|---|
ai-config |
Launch TUI |
ai-config agent list |
List all agents |
ai-config agent create <name> |
Create new agent |
ai-config library sync |
Sync library |
ai-config mcp browse |
Browse MCP servers |
ai-config status |
Show system status |
ai-config --help |
Show help |
๐ฏ Quick Start
Using TUI (Recommended for New Users)
# Launch TUI
ai-config
# Navigate with:
# 1 - Agent Management
# 2 - Library Management
# 3 - MCP Servers
# 4 - Settings
# ? - Help
# q - Quit
Using CLI (For Automation)
# Create an agent
ai-config agent create my-agent --tool q-cli
# List agents
ai-config agent list
# Sync library
ai-config library sync
# Browse MCP servers
ai-config mcp browse
# Get help
ai-config --help
cd ai-configurator pip install -r requirements-dev.txt pip install -e .
## ๐ Quick Start
### New User Setup
```bash
# Complete interactive setup for new users
ai-config wizard quick-start
# Or step by step:
ai-config status # Check system status
ai-config library sync # Sync knowledge library
ai-config wizard create-agent # Create your first agent
Existing Users
# Check system status
ai-config status
# Sync library with conflict resolution
ai-config library sync
# Browse available MCP servers
ai-config mcp browse
# Create agent from template
ai-config wizard create-agent
๐ Command Reference
๐ Production Management (Phase 3)
# Git-based library management
ai-config git clone <repo-url> # Clone remote library
ai-config git pull # Pull updates
ai-config git push # Push changes
ai-config git status # Show Git status
ai-config git sync # Sync with remote
# Enhanced synchronization
ai-config sync all # Sync all libraries
ai-config sync source remote # Sync specific source
ai-config sync status # Show sync status
# Performance and caching
ai-config cache stats # Show cache statistics
ai-config cache benchmark # Run performance test
ai-config cache preload # Preload cache
ai-config cache clear # Clear cache
# Production configuration
ai-config production show # Show config
ai-config production environments # List environments
ai-config production validate --env production
ai-config production generate --env production
# Monitoring and logging
ai-config monitoring health # System health check
ai-config monitoring logs # View logs
ai-config monitoring stats # Log statistics
ai-config monitoring setup # Setup logging
๐ Library Management
# Library synchronization
ai-config library status # Show sync status
ai-config library sync # Sync with conflict resolution
ai-config library diff # Show differences
ai-config library update # Update from base library
# View library content
ai-config status # System overview
๐ File Management
# Discover and add local files
ai-config files scan-files <agent> --pattern "**/*.md"
ai-config files add-files <agent> --pattern "./docs/**/*.md"
ai-config files watch-files <agent> --enable
# Examples
ai-config files scan-files my-agent --pattern "**/*.py" --base-path .
ai-config files add-files dev-agent --pattern "./rules/**/*.md"
๐ง MCP Server Management
# Browse and discover servers
ai-config mcp browse # Browse available servers
ai-config mcp search git # Search for specific servers
ai-config mcp status # Show registry status
# Install and manage servers
ai-config mcp install filesystem # Install a server
ai-config mcp create-sample # Create sample registry
๐ง Interactive Wizards
# Setup wizards
ai-config wizard quick-start # Complete new user setup
ai-config wizard create-agent # Interactive agent creation
ai-config wizard setup-mcp <agent> # MCP server setup
# Agent management
ai-config create-agent # Create new agent
ai-config manage-agent <name> # Interactive management
ai-config export-agent <name> --save # Export to Q CLI
๐๏ธ Architecture
Library Structure
~/.config/ai-configurator/
โโโ library/ # Base knowledge library
โ โโโ roles/ # Role-specific knowledge
โ โโโ domains/ # Domain expertise
โ โโโ workflows/ # Process documentation
โ โโโ tools/ # Tool-specific guides
โ โโโ templates/ # Agent templates (NEW!)
โ โโโ common/ # Shared knowledge
โโโ personal/ # Personal customizations (NEW!)
โโโ agents/ # Agent configurations
โโโ registry/ # MCP server registry (NEW!)
โโโ backups/ # Automatic backups (NEW!)
Agent Templates
Pre-built templates for common roles:
- Software Engineer: Development-focused with Git, filesystem tools
- Software Architect: Architecture and design patterns
- System Administrator: Infrastructure and operations
- Daily Assistant: General productivity and task management
- Product Owner: Product management and planning
๐ง Advanced Usage
Library Synchronization
# Check for conflicts before syncing
ai-config library sync --dry-run
# Interactive conflict resolution
ai-config library sync
# Show detailed differences
ai-config library diff --file specific-file.md
Local File Integration
# Add project-specific files to agents
ai-config files add-files my-agent --pattern "./docs/**/*.md"
ai-config files add-files my-agent --pattern "./rules/*.txt"
# Enable file watching for auto-updates
ai-config files watch-files my-agent --enable
# Scan for files without adding
ai-config files scan-files my-agent --pattern "**/*.py" --base-path ./src
MCP Server Management
# Create sample registry for testing
ai-config mcp create-sample
# Browse servers by category
ai-config mcp browse --category development
# Search for specific functionality
ai-config mcp search database
ai-config mcp search "file system"
# Install servers for enhanced capabilities
ai-config mcp install git
ai-config mcp install filesystem
Template Usage
Templates are stored in library/templates/ and can be:
- Used during agent creation via wizards
- Customized in your personal library
- Shared through library synchronization
- Created by copying existing role files
๐ ๏ธ Development
Running Tests
# Run all tests
pytest
# Run Phase 2 specific tests
pytest tests/test_phase2_*.py -v
# Run with coverage
pytest --cov=ai_configurator
Project Structure
ai_configurator/
โโโ models/ # Pydantic data models
โ โโโ sync_models.py # Library sync models (NEW!)
โ โโโ file_models.py # File management models (NEW!)
โ โโโ registry_models.py # MCP registry models (NEW!)
โ โโโ wizard_models.py # Wizard models (NEW!)
โโโ services/ # Business logic services
โ โโโ sync_service.py # Library synchronization (NEW!)
โ โโโ file_service.py # File management (NEW!)
โ โโโ registry_service.py # MCP registry (NEW!)
โ โโโ wizard_service.py # Interactive wizards (NEW!)
โโโ cli/ # CLI command modules (NEW!)
โ โโโ sync_commands.py # Library sync commands
โ โโโ file_commands.py # File management commands
โ โโโ registry_commands.py # MCP registry commands
โ โโโ wizard_commands.py # Wizard commands
โโโ cli_enhanced.py # Main CLI interface
๐ Migration from Phase 1
Phase 2 maintains full backward compatibility with Phase 1 configurations. Your existing agents and MCP servers will continue to work without changes.
New features are additive and optional:
- Library sync is available but not required
- Local file integration is opt-in per agent
- MCP registry enhances but doesn't replace existing MCP management
- Wizards provide alternative setup methods alongside existing commands
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Add tests for new functionality
- Ensure all tests pass (
pytest) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Documentation: Check this README and inline help (
ai-config --help) - Issues: Report bugs and request features via GitHub Issues
- Discussions: Join community discussions for questions and ideas
๐ What's New
๐ Phase 3: Production Ready (Latest)
- Git-based library management with remote repositories
- Performance optimization with intelligent caching (3.3x speedup)
- Production configuration management with environment support
- Comprehensive logging and error handling
- Health monitoring and system diagnostics
โ Phase 2: Advanced Library Management
- Conflict-aware library sync with interactive resolution
- Local file integration with glob patterns and file watching
- MCP server registry with discovery and installation
- Interactive wizards and pre-built templates
๐๏ธ Phase 1: Foundation
- Tool-agnostic knowledge library system
- Multi-tool agent support (Q CLI, Claude, ChatGPT)
- Role-based organization and MCP integration
AI Configurator v4.0.0 - Production-ready tool-agnostic knowledge library manager
Navigate with arrow keys, Enter to select, Esc to go back
### Create Your First Agent
1. **Launch TUI**: `ai-config`
2. **Select "Agent Management"**
3. **Press `n` to create new agent**
4. **Press `e` to edit the agent**
5. **Select resources** with Space key
6. **Select MCP servers** with Space key
7. **Press Ctrl+S to save**
8. **Agent auto-exports to Q CLI!**
## ๐ Usage Guide
### Agent Management
**Keyboard Shortcuts:**
- `n` - Create new agent
- `e` - Edit selected agent
- `m` - Rename agent
- `d` - Delete agent
- `x` - Export to Q CLI
- `r` - Refresh list
**Agent Editor:**
- `Space` - Toggle selection (checkbox)
- `Tab` - Switch between tables
- `โ/โ` - Navigate items
- `Ctrl+S` - Save changes
- `Esc` - Cancel
### Library Management
**Keyboard Shortcuts:**
- `n` - Create new file
- `e` - Edit file (personal files only)
- `c` - Clone file (base โ personal)
- `r` - Refresh list
### MCP Server Management
**Keyboard Shortcuts:**
- `a` - Add new server
- `e` - Edit server config
- `d` - Delete server
- `s` - Sync registry
- `r` - Refresh list
**Supported JSON Formats:**
```json
// Format 1: mcpServers wrapper
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["@package/server"]
}
}
}
// Format 2: Direct entry (auto-wrapped)
"server-name": {
"command": "npx",
"args": ["@package/server"]
}
๐๏ธ Directory Structure
~/.config/ai-configurator/
โโโ agents/ # Agent configurations
โโโ library/
โ โโโ base/ # Shared templates
โ โโโ personal/ # Your custom files
โโโ registry/
โ โโโ servers/ # MCP server configs
โโโ logs/
โโโ tui.log # Application logs
~/.aws/amazonq/cli-agents/ # Q CLI agents (auto-synced)
๐ง CLI Commands
# Agent commands
ai-config agent list
ai-config agent create my-agent
ai-config agent export my-agent
# Library commands
ai-config library list
# MCP commands
ai-config mcp list
# System commands
ai-config status
๐ Troubleshooting
Agent not appearing in Q CLI
# Check if exported
ls ~/.aws/amazonq/cli-agents/
# Manual export
ai-config agent export my-agent
Editor not opening
# Set your preferred editor
export EDITOR=vim # or kate, nano, etc.
๐ Documentation
๐ License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_agent_manager-0.3.1.tar.gz.
File metadata
- Download URL: ai_agent_manager-0.3.1.tar.gz
- Upload date:
- Size: 118.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
431147ce8048573a3cbede15ca1b067456cddeecc3fdcfaae8f1c54e5e50b74d
|
|
| MD5 |
25fcefcb9d6ec66b0a0353f921deaa87
|
|
| BLAKE2b-256 |
da856d869a435973da773cb6776f0f2412c6c1599cf5239cabaf6ac39619bc1d
|
File details
Details for the file ai_agent_manager-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ai_agent_manager-0.3.1-py3-none-any.whl
- Upload date:
- Size: 165.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83833800e5daa189e8ae4443775fcfd65a765a268493f1784cd56249c4184277
|
|
| MD5 |
1bcbf4fca7725dd4516d6c5362dae1c3
|
|
| BLAKE2b-256 |
d79111de3f54c45b854792b7ce368e6f12156fd1d8298b0ef50bbf992d7c9cdf
|