Skip to main content

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

๐ŸŽฎ 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass (pytest)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_agent_manager-0.3.1.tar.gz (118.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_agent_manager-0.3.1-py3-none-any.whl (165.0 kB view details)

Uploaded Python 3

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

Hashes for ai_agent_manager-0.3.1.tar.gz
Algorithm Hash digest
SHA256 431147ce8048573a3cbede15ca1b067456cddeecc3fdcfaae8f1c54e5e50b74d
MD5 25fcefcb9d6ec66b0a0353f921deaa87
BLAKE2b-256 da856d869a435973da773cb6776f0f2412c6c1599cf5239cabaf6ac39619bc1d

See more details on using hashes here.

File details

Details for the file ai_agent_manager-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_agent_manager-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83833800e5daa189e8ae4443775fcfd65a765a268493f1784cd56249c4184277
MD5 1bcbf4fca7725dd4516d6c5362dae1c3
BLAKE2b-256 d79111de3f54c45b854792b7ce368e6f12156fd1d8298b0ef50bbf992d7c9cdf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page