MAGI Orchestrator

MAGI Orchestrator

A task-based AI orchestrator that bridges AI models (Gemini, Claude, OpenAI) with local environments, operating as an interactive CLI and an MCP server for structured autonomous development.

Category
Visit Server

README

<div align="center"> <h1>🧙‍♂️ MAGI Orchestrator (magi)</h1> <p><strong>The Task-Based AI Orchestrator & MCP Server</strong></p> <p> <a href="https://www.npmjs.com/package/magi-orchestrator"><img src="https://img.shields.io/npm/v/magi-orchestrator?color=cyan&label=npm" alt="NPM Version" /></a> <img src="https://img.shields.io/badge/Model_Context_Protocol-Ready-blue" alt="MCP Ready" /> <img src="https://img.shields.io/badge/Agents-Gemini_|Claude|_OpenAI-purple" alt="Supported Agents" /> <img src="https://img.shields.io/badge/License-MIT-green" alt="License" /> </p> </div>


MAGI is a high-performance, task-based AI orchestrator designed to bring structure, persistence, and specialized intelligence to autonomous development. It operates as a bridge between your preferred AI models and your local environment, functioning simultaneously as a powerful interactive CLI and a background Model Context Protocol (MCP) server.

🌟 Why MAGI? (Key Benefits)

  • Professional Interactive UI: Inspired by Claude Code, featuring dimmed reasoning for better focus, real-time action spinners, and clean result boxes.
  • Hybrid Power: Use it directly in your terminal for dedicated focus, or annex it to your favorite AI client (Gemini CLI, Claude Desktop) via MCP.
  • Persistent Orchestration: Unlike standard chat interfaces, MAGI manages its own state in a local .magi directory, including progress logs, activity history, and strict Guardrails (Signs) to prevent AI loops.
  • Native SDK Integration: Fast and secure connections to official Google Gemini, Anthropic Claude, and OpenAI SDKs. No middleman proxies.
  • Zero-Touch Automation: Registration and skill installation happen automatically. Just install and start orquestrating.

📦 Installation

Install MAGI Orchestrator globally via npm to get the magi command:

# Official installation
npm install -g magi-orchestrator

Note: The automatic registration script (postinstall) will detect your Gemini CLI and Claude Desktop configurations and inject the MAGI server/skill automatically.


🚀 How it Operates (Quick Start)

Option 1: Interactive CLI Mode (Recommended for Focus)

Run tasks directly from your terminal with rich, stylized feedback.

# Execute a task iteration interactively
magi run "build-auth-layer"

Option 2: The "Annexed" Mode (Skill Injection)

Open your Gemini CLI and use the native skill:

/magi fix-login-bug MAGI will run in the background and report progress directly in your chat session.


⚙️ Configuration

MAGI looks for a magi-config.json file in your project directory. If not found, it uses sensible defaults.

{
  "agents": [
    {
      "name": "gemini-flash",
      "type": "gemini",
      "model": "gemini-2.0-flash"
    },
    {
      "name": "claude-sonnet",
      "type": "claude",
      "model": "claude-3-5-sonnet-20241022"
    }
  ],
  "defaultAgent": "gemini-flash",
  "stateDirectory": ".magi"
}

🔑 Authentication

Set your API keys as environment variables:

  • GEMINI_API_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY.

🛠 Operation Mechanics: The .magi Directory

MAGI keeps your project context clean by orchestrating everything inside the .magi folder:

  • progress.md: Tracking success criteria and current status.
  • guardrails.md: Active "Signs" learned from previous failures to guide the AI.
  • activity.log: Detailed history of every decision and action.

🛠 Available CLI Commands

Command Description
magi run <task> Start/Continue a task iteration interactively.
magi setup Manually trigger auto-registration in AI clients.
magi serve Start the MCP server (STDIO).
magi --version Report the current version (v1.2.1).

<div align="center"> <p>Built with 🩵 by <a href="https://github.com/reaper1067MSX">Santiago Arguello</a></p> <p><em>"Bringing divine structure to chaotic agents."</em></p> </div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured