Skip to content

ASTROFLORA/mcp-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧬 AstroFlora AI Chat

AstroFlora AI is an advanced biological intelligence assistant built with Next.js and the AI SDK. It specializes in plant biology, genetics, biotechnology, and life sciences, featuring real-time tool integration for enhanced functionality.

✨ Features

  • πŸ€– AI-Powered Chat: Powered by OpenAI GPT-4o with biological expertise
  • πŸ› οΈ Tool Integration: Real-time tools including Colombia time lookup
  • ⚑ Streaming Responses: Real-time streaming chat interface
  • 🎨 Modern UI: Beautiful Chakra UI components with dark/light mode
  • πŸ“± Responsive Design: Optimized for desktop and mobile devices

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ or Bun
  • OpenAI API key

Installation

  1. Clone the repository:
git clone <your-repo-url>
cd astroflora-ai-chat
  1. Install dependencies:
npm install
# or
bun install
  1. Set up environment variables:
cp .env.example .env.local

Add your OpenAI API key to .env.local:

OPENAI_API_KEY=your_openai_api_key_here
  1. Run the development server:
npm run dev
# or
bun dev
  1. Open http://localhost:3000 with your browser.

πŸ› οΈ Available Tools

  • πŸ• Colombia Time: Get current time in Colombia (COT/UTC-5)
  • More tools coming soon...

πŸ—οΈ Architecture

  • Frontend: Next.js 15 with App Router
  • UI: Chakra UI v3 with modern design system
  • AI: OpenAI GPT-4o via AI SDK v5
  • Streaming: Real-time response streaming
  • Tools: Direct AI SDK tool integration (no MCP dependencies)

πŸ“‚ Project Structure

src/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ chat/          # Main chat API endpoint
β”‚   β”‚   └── colombia-time/ # Colombia time API endpoint
β”‚   β”œβ”€β”€ layout.tsx         # Root layout
β”‚   └── page.tsx          # Chat interface
β”œβ”€β”€ components/
β”‚   └── ui/               # Reusable UI components
└── ...

πŸ”§ Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

Adding New Tools

  1. Create tool definition in src/app/api/chat/route.ts
  2. Add tool logic using AI SDK tool() function
  3. Update system prompt if needed

πŸš€ Deployment

Deploy on Vercel (recommended):

Deploy with Vercel

Or manually:

  1. Build the project: npm run build
  2. Deploy to your preferred platform
  3. Set environment variables on your hosting platform

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License.


Built with ❀️ using Next.js, AI SDK, and OpenAI GPT-4o

About

πŸ” MCP server for clients

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors