Skip to content

chunkstar/agentanchor-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

48 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Bot Builder πŸ€–

A powerful web application for building, managing, and deploying custom AI assistants with MCP (Model Context Protocol) team integration.

✨ Key Features

  • 🎯 Master Orchestrator: AI-powered setup guide that helps you build your bot ecosystem

    • Automatically created for every new user
    • Provides personalized guidance on bot creation, team organization, and MCP setup
    • Interactive onboarding with progress tracking
    • Suggests specialized bots based on your use case
  • πŸ€– Custom AI Bots: Create AI assistants with custom personalities and system prompts

    • Multiple Claude models (Sonnet, Opus, Haiku)
    • Configurable temperature and token limits
    • Pre-built templates (Code, Writer, Analyst, Research, Support, DevOps)
  • πŸ‘₯ Team Management: Organize bots into collaborative teams

    • Create specialized teams (Development, Content, Analytics)
    • Assign multiple bots per team
    • Team-specific configurations
  • πŸ”§ MCP Integration: Connect bots to external tools and data sources

    • Filesystem access
    • GitHub integration
    • Database connectivity
    • Web search capabilities
    • Custom integrations
  • πŸ’¬ Real-time Chat: Interactive chat interface with streaming responses

  • πŸ” Secure Authentication: Email/password + Google OAuth

  • ☁️ Cloud-Ready: Built for Supabase + Vercel deployment

Tech Stack

  • Frontend: Next.js 14 (App Router), React, TypeScript, Tailwind CSS
  • Backend: Supabase (PostgreSQL + Auth + Real-time)
  • AI: Anthropic Claude API
  • Deployment: Vercel
  • Icons: Lucide React

Getting Started

Prerequisites

  • Node.js 18+ installed
  • Supabase account (free tier available)
  • Anthropic API key
  • Vercel account (for deployment)

Setup Instructions

  1. Clone the repository

    git clone <your-repo-url>
    cd fresh
  2. Install dependencies

    npm install
  3. Set up Supabase

    a. Create a new project at supabase.com

    b. Run the database schema:

    • Go to the SQL Editor in your Supabase dashboard
    • Copy and paste the contents of supabase/schema.sql
    • Run the SQL script

    c. Enable Google OAuth (optional):

    • Go to Authentication > Providers
    • Enable Google provider
    • Add your Google OAuth credentials
  4. Configure environment variables

    Create a .env.local file in the root directory:

    # Supabase Configuration
    NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
    NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
    SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
    
    # Anthropic API
    ANTHROPIC_API_KEY=your-anthropic-api-key
    
    # App Configuration
    NEXT_PUBLIC_APP_URL=http://localhost:3000
  5. Run the development server

    npm run dev

    Open http://localhost:3000 in your browser.

Deploying to Vercel

  1. Push your code to GitHub

    git add .
    git commit -m "Initial commit"
    git push origin main
  2. Deploy to Vercel

    • Go to vercel.com
    • Import your GitHub repository
    • Add environment variables from .env.local
    • Deploy!
  3. Update Supabase settings

    • Add your Vercel domain to Supabase Auth > URL Configuration
    • Add redirect URLs for OAuth

Usage

First Steps with Master Orchestrator

When you create an account, you'll automatically get a Master Orchestrator bot that guides you through setup:

  1. After signup, visit the "Orchestrator" page
  2. Tell the Orchestrator about your goals (development, content, analysis, etc.)
  3. Get personalized recommendations for:
    • Which bots to create
    • What MCP servers to set up
    • How to organize teams
  4. Follow the interactive setup wizard with progress tracking

Creating a Bot

Option 1: With Orchestrator Guidance (Recommended)

  • Chat with the Master Orchestrator
  • Describe what you want the bot to do
  • Get template suggestions and guided creation

Option 2: Manual Creation

  1. Navigate to "Bots" in the sidebar
  2. Click "Create Bot"
  3. Fill in:
    • Bot name and description
    • System prompt (defines personality and behavior)
    • Model selection (Claude 3.5 Sonnet, Opus, etc.)
    • Temperature and max tokens
  4. Click "Create Bot"

Creating a Team

  1. Navigate to "Teams" in the sidebar
  2. Click "Create Team"
  3. Add team name and description
  4. Select bots to add to the team
  5. Click "Create Team"

Chatting with Bots

  1. Navigate to "Dashboard" or "Chat"
  2. Select a bot from the sidebar
  3. Start typing your message
  4. Get real-time streaming responses

Adding MCP Servers

  1. Navigate to "MCP Servers"
  2. Click "Add MCP Server"
  3. Configure server type and settings
  4. Attach to specific bots

Project Structure

fresh/
β”œβ”€β”€ app/                      # Next.js app directory
β”‚   β”œβ”€β”€ auth/                # Authentication pages
β”‚   β”œβ”€β”€ bots/                # Bot management pages
β”‚   β”œβ”€β”€ teams/               # Team management pages
β”‚   β”œβ”€β”€ chat/                # Chat interface
β”‚   β”œβ”€β”€ mcp/                 # MCP server management
β”‚   β”œβ”€β”€ dashboard/           # Dashboard
β”‚   └── api/                 # API routes
β”œβ”€β”€ components/              # React components
β”‚   β”œβ”€β”€ ui/                  # UI components
β”‚   β”œβ”€β”€ bots/                # Bot-specific components
β”‚   └── teams/               # Team-specific components
β”œβ”€β”€ lib/                     # Utility libraries
β”‚   └── supabase/            # Supabase client configs
β”œβ”€β”€ types/                   # TypeScript type definitions
β”œβ”€β”€ supabase/                # Supabase configuration
β”‚   └── schema.sql           # Database schema
└── public/                  # Static assets

Database Schema

  • profiles: User profiles
  • bots: AI bot configurations
  • teams: Team organizations
  • team_bots: Bot-team relationships
  • mcp_servers: MCP server configurations
  • bot_mcp_servers: Bot-MCP relationships
  • conversations: Chat conversations
  • messages: Chat messages

Master Orchestrator Capabilities

The Master Orchestrator can help you:

Bot Creation

  • Suggest specialized bot types based on your needs
  • Provide optimized system prompts
  • Recommend model configurations
  • Guide through MCP server attachments

Team Organization

  • Suggest team structures (Development Team, Content Team, etc.)
  • Recommend bot combinations
  • Help organize by function or project

MCP Server Setup

  • Explain different MCP server types
  • Guide through configuration
  • Suggest integrations for your use case

Best Practices

  • Share tips on bot design
  • Recommend workflow patterns
  • Help troubleshoot issues
  • Provide examples and templates

Features Roadmap

  • Master Orchestrator for guided setup
  • Pre-built bot templates
  • Interactive onboarding flow
  • Team chat (multiple bots collaborating)
  • Bot marketplace (share public bots)
  • Advanced MCP server types
  • Conversation export
  • Bot analytics and usage stats
  • Voice input/output
  • Image generation integration
  • Custom themes
  • Orchestrator API integration (auto-create resources)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

Support

For issues and questions, please open an issue on GitHub.


Built with ❀️ using Next.js, Supabase, and Claude AI

About

AgentAnchor Platform - AI Agent Governance & Trust System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors