Skip to content

Project Overview Getting Started

github-actions[bot] edited this page Aug 3, 2026 · 3 revisions

Getting Started

Referenced Files in This Document

Update Summary

Changes Made

  • Updated documentation structure to reflect migration from manual 'Started.md' file to automated .qoder/repowiki documentation system
  • Consolidated getting started content into the automated wiki structure
  • Maintained all existing installation and setup instructions while improving organization
  • Enhanced cross-references to align with new documentation architecture

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Quick Start with Docker Compose
  4. Local Development with npm
  5. Basic Configuration
  6. Start the Server and Access the Web Interface
  7. Run Your First CLI Command
  8. Troubleshooting Common Issues
  9. Next Steps

Introduction

This guide helps you install, configure, and run Kairos MCP quickly using Docker Compose or npm. You will start the server, open the web interface, and execute your first CLI commands to interact with the system.

As part of our documentation modernization effort, this getting started content has been consolidated into the automated wiki structure for better maintainability and consistency across the project documentation.

Prerequisites

Before installing, ensure the following are available on your machine:

  • Node.js (LTS recommended)
  • npm
  • Docker and Docker Compose
  • External services:
    • PostgreSQL
    • Redis
    • Qdrant

For detailed prerequisites and environment requirements, see:

Section sources

Quick Start with Docker Compose

The repository includes a compose file that orchestrates the application and its dependencies.

Steps:

  1. Clone the repository and navigate to the project root.
  2. Ensure Docker is running and your user has permission to use Docker.
  3. Use the provided compose file to start all services:
    • Run: docker compose up --build
  4. Wait for the services to initialize. The application will be accessible at the configured HTTP port.

Notes:

  • The compose file defines the main service and required infrastructure. See:
  • The container image is built from:

After startup:

  • Open the web UI at http://localhost: (use the port defined in your configuration).
  • Verify health endpoints if exposed by your configuration.

Section sources

Local Development with npm

If you prefer to run the server locally without containers:

  1. Install dependencies:
    • npm ci
  2. Build the UI assets (if required by your setup):
    • npm run build
  3. Configure environment variables as described in Basic Configuration.
  4. Start the server:
    • npm start

The server entry points and bootstrap logic are implemented in:

Section sources

Basic Configuration

Kairos MCP reads configuration from environment variables. Key areas include:

  • Application server settings (host, port)
  • Database connection (PostgreSQL)
  • Cache/session store (Redis)
  • Vector search index (Qdrant)
  • Embedding provider settings
  • Authentication (OIDC) and UI base URL

Configuration loading and defaults are handled in:

Service integrations:

Environment scaffolding helper:

Tips:

Section sources

Start the Server and Access the Web Interface

Starting the server:

  • Using Docker Compose: docker compose up --build
  • Using npm: npm start

HTTP server startup and routing are implemented in:

Once started:

  • Open the web UI at http://localhost: (replace with your configured port).
  • If authentication is enabled, log in via the configured OIDC provider.

Section sources

Run Your First CLI Command

The CLI provides commands to manage sessions, spaces, exports, training, and more.

Common first steps:

  • Login to authenticate:
    • kairos login
  • Get or refresh an access token:
    • kairos token
  • Search across your data:
    • kairos search ""
  • List or manage spaces:
    • kairos spaces list
  • Export artifacts:
    • kairos export ...
  • Train models or datasets:
    • kairos train ...
  • Update the CLI:
    • kairos update

CLI program and command implementations:

CLI configuration and API client:

For a complete reference of CLI commands and options, see:

Section sources

Troubleshooting Common Issues

  • Cannot connect to PostgreSQL:
    • Verify host, port, credentials, and database name in environment variables.
    • Ensure the database is reachable from the application container or localhost.
  • Redis connection errors:
    • Confirm Redis URL and network accessibility.
    • Check firewall rules and container networking.
  • Qdrant not responding:
    • Validate Qdrant endpoint and collection readiness.
    • Review initialization logs for migration or schema issues.
  • Embedding provider failures:
    • Check provider credentials and rate limits.
    • Inspect embedding service logs for errors.
  • Authentication problems:
    • Ensure OIDC issuer, client ID, and redirect URLs are correct.
    • Use the CLI login flow to obtain a valid token.
  • Health checks failing:
    • Use the health endpoints exposed by the HTTP server to verify readiness.

Helpful scripts and utilities:

Section sources

Next Steps

[No sources needed since this section summarizes without analyzing specific files]

KAIROS MCP

Clone this wiki locally