Skip to content

Project Overview Key Features

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

Key Features

Referenced Files in This Document

Table of Contents

  1. Introduction
  2. Project Structure
  3. Core Components
  4. Architecture Overview
  5. Detailed Component Analysis
  6. Dependency Analysis
  7. Performance Considerations
  8. Troubleshooting Guide
  9. Conclusion

Introduction

Kairos MCP is an AI workflow automation platform that combines intelligent memory, secure authentication, multi-modal artifact handling, and a powerful orchestration layer for stateful workflows. It exposes capabilities via the Model Context Protocol (MCP), enabling seamless integration with AI agents and tools while providing enterprise-grade security, observability, and extensibility.

Key value propositions:

  • Intelligent memory with semantic search and vector embeddings to retrieve relevant context quickly
  • Workflow orchestration with stateful execution, recovery, and guided user interactions
  • Secure authentication with OIDC integration and fine-grained access control
  • Multi-modal artifact handling across text, code, documents, and rich media
  • Extensible tool development framework with strong contracts and runtime safety

Project Structure

At a high level, Kairos MCP consists of:

  • HTTP server and middleware for routing, authentication, and metrics
  • Memory subsystem backed by Qdrant for vector similarity search
  • Embedding service supporting multiple providers
  • Tools implementing MCP operations such as activate, forward, train, export, and search
  • UI and MCP app integrations for interactive experiences
  • CLI and configuration utilities for management and automation
graph TB
Client["Client / Agent"] --> HTTP["HTTP Server<br/>Routes & Middleware"]
HTTP --> Auth["Auth Middleware<br/>OIDC + Bearer"]
HTTP --> Tools["MCP Tools<br/>activate, forward, train, export, search"]
Tools --> Memory["Memory Store<br/>Qdrant-backed"]
Memory --> Qdrant["Qdrant Vector DB"]
Tools --> Embedding["Embedding Service<br/>Providers"]
Tools --> Artifacts["Artifact Catalog<br/>Multi-modal"]
HTTP --> UI["UI & MCP Apps"]
Loading

Diagram sources

Section sources

Core Components

  • Intelligent Memory System: Semantic search over stored content using vector embeddings and hybrid retrieval strategies.
  • Workflow Orchestration: Stateful execution model with begin, forward, continue, reward, and training/tuning flows.
  • Secure Authentication: OIDC-based login, token validation, and profile claims mapping.
  • Multi-modal Artifact Handling: Rich artifact cataloging, relative path resolution, and export/download support.
  • Extensible Tool Framework: Strongly typed MCP tool contracts, input teaching, error handling, and UI offerings.

Section sources

Architecture Overview

The system follows a layered architecture:

  • Presentation Layer: UI and MCP apps expose interactive widgets and resource listings.
  • API Layer: HTTP routes handle requests, enforce auth, and dispatch to tools.
  • Tool Layer: Implements business logic for workflows, artifacts, and memory operations.
  • Services Layer: Memory store, embedding service, and Qdrant client provide core capabilities.
  • Storage Layer: Qdrant for vectors, Redis for cache/state, and file systems for artifacts.
sequenceDiagram
participant Client as "Client"
participant HTTP as "HTTP Server"
participant Auth as "Auth Middleware"
participant Tool as "MCP Tool"
participant Mem as "Memory Store"
participant Emb as "Embedding Service"
participant Q as "Qdrant"
Client->>HTTP : "Request (e.g., forward)"
HTTP->>Auth : "Validate OIDC/Bearer"
Auth-->>HTTP : "Claims + Scope"
HTTP->>Tool : "Invoke tool with args"
Tool->>Emb : "Generate embeddings (optional)"
Emb-->>Tool : "Vectors"
Tool->>Mem : "Search/Update memory"
Mem->>Q : "Vector query/update"
Q-->>Mem : "Results"
Mem-->>Tool : "Structured results"
Tool-->>HTTP : "Response"
HTTP-->>Client : "Result or UI offering"
Loading

Diagram sources

Section sources

Detailed Component Analysis

Intelligent Memory System

Highlights:

  • Semantic search powered by vector embeddings and hybrid retrieval
  • Configurable providers and health checks
  • Qdrant-backed storage with optimized queries and metadata filtering

Benefits:

  • Fast, accurate recall of relevant context for AI workflows
  • Scalable vector indexing and querying
  • Flexible provider abstraction for different embedding models

Use cases:

  • Retrieving prior steps or related artifacts during workflow execution
  • Enhancing prompts with semantically similar knowledge
  • Powering “spaces” and curated collections
classDiagram
class MemoryStore {
+search(query, options)
+upsert(items)
+delete(ids)
}
class QdrantMemoryStore {
+search(query, options)
+upsert(items)
+delete(ids)
}
class EmbeddingService {
+embed(text)
+health()
}
class EmbeddingProviders {
+register(provider)
+get(name)
}
MemoryStore <|-- QdrantMemoryStore : "implements"
QdrantMemoryStore --> EmbeddingService : "uses"
EmbeddingService --> EmbeddingProviders : "configures"
Loading

Diagram sources

Section sources

Workflow Orchestration with Stateful Execution and Recovery

Highlights:

  • Begin, forward, continue, reward, train, tune operations
  • Guided UX and widget-based interactions
  • Robust recovery and audit trails

Benefits:

  • Reliable long-running workflows with checkpoints
  • Interactive guidance for complex tasks
  • Observability and reproducibility

Use cases:

  • Automated code reviews and PR standardization
  • Compliance checks from PDFs
  • Terraform module standardization
sequenceDiagram
participant Client as "Agent"
participant HTTP as "HTTP Server"
participant Activate as "Activate Tool"
participant Forward as "Forward Tool"
participant View as "Forward View"
participant Reward as "Reward Tool"
Client->>HTTP : "Begin activation"
HTTP->>Activate : "activate(params)"
Activate-->>HTTP : "State snapshot + next action"
Client->>HTTP : "Forward step"
HTTP->>Forward : "forward(stepId, payload)"
Forward-->>HTTP : "Next step or completion"
HTTP->>View : "Render UI offering"
View-->>Client : "Interactive form"
Client->>HTTP : "Submit solution"
HTTP->>Reward : "reward(stepId, score)"
Reward-->>Client : "Acknowledgement"
Loading

Diagram sources

Section sources

Secure Authentication with OIDC Integration

Highlights:

  • OIDC redirect and callback flows
  • Bearer token validation and scope enforcement
  • Profile claims mapping for authorization decisions

Benefits:

  • Enterprise SSO compatibility
  • Fine-grained access control per space/tool
  • Secure session management

Use cases:

  • Team collaboration with role-based access
  • Integrating with corporate identity providers
  • Auditing and compliance logging
sequenceDiagram
participant Client as "Client"
participant HTTP as "HTTP Server"
participant OIDC as "OIDC Redirect"
participant Callback as "Auth Callback"
participant Claims as "Profile Claims"
participant Validate as "Bearer Validate"
Client->>HTTP : "Login request"
HTTP->>OIDC : "Redirect to provider"
OIDC-->>Callback : "Authorization code"
Callback->>Claims : "Map profile claims"
Claims-->>Callback : "User context"
Client->>HTTP : "API call with Bearer"
HTTP->>Validate : "Validate token + scopes"
Validate-->>HTTP : "Access granted/denied"
Loading

Diagram sources

Section sources

Multi-modal Artifact Handling

Highlights:

  • Artifact cataloging and relative path resolution
  • Export and download capabilities for diverse formats
  • MIME inference and sanitization

Benefits:

  • Unified handling of code, docs, images, and binaries
  • Safe packaging and distribution of skill bundles
  • Consistent paths and references across environments

Use cases:

  • Bundling documentation and assets for skills
  • Downloading generated reports and diagrams
  • Sharing multi-format deliverables with clients
flowchart TD
Start(["Upload/Train"]) --> Catalog["Catalog Artifacts"]
Catalog --> Resolve["Resolve Relative Paths"]
Resolve --> Infer["Infer MIME Types"]
Infer --> Sanitize["Sanitize Content"]
Sanitize --> Store["Persist Artifacts"]
Store --> Export["Export/Download"]
Export --> End(["Deliverables Ready"])
Loading

Diagram sources

Section sources

Extensible Tool Development Framework

Highlights:

  • Strongly typed MCP contracts and schema validation
  • Input teaching for better agent guidance
  • Runtime error handling and telemetry
  • UI offerings for interactive tool experiences

Benefits:

  • Rapid development of new tools with consistent behavior
  • Improved agent usability through structured inputs
  • Seamless integration with UI and MCP hosts

Use cases:

  • Building custom domain-specific tools
  • Creating guided forms for complex inputs
  • Publishing reusable capabilities to teams
classDiagram
class MCPContractMatch {
+match(inputSchema, payload)
}
class MCPRuntimeError {
+format(error)
+telemetry()
}
class ToolInputTeaching {
+generateHints(schema)
}
class UIOfferings {
+listOfferings()
+renderWidget(type, data)
}
MCPContractMatch --> ToolInputTeaching : "guides"
MCPRuntimeError --> ToolInputTeaching : "enhances errors"
UIOfferings --> MCPContractMatch : "consumes"
Loading

Diagram sources

Section sources

Dependency Analysis

High-level dependencies:

  • HTTP server depends on auth middleware and tool handlers
  • Tools depend on memory store and embedding service
  • Memory store depends on Qdrant client
  • UI and MCP apps depend on tool offerings and resources
graph LR
HTTP["HTTP Server"] --> Auth["Auth Middleware"]
HTTP --> Tools["Tools"]
Tools --> Memory["Memory Store"]
Memory --> Qdrant["Qdrant"]
Tools --> Embedding["Embedding Service"]
Tools --> UI["UI Offerings"]
Loading

Diagram sources

Section sources

Performance Considerations

  • Use embedding batching and caching where possible to reduce latency
  • Tune Qdrant collection sizes and query parameters for optimal recall/speed
  • Apply concurrency limits at the HTTP layer to protect downstream services
  • Monitor metrics and logs for hotspots and adjust thresholds accordingly

[No sources needed since this section provides general guidance]

Troubleshooting Guide

Common issues and resolutions:

  • Authentication failures: Verify OIDC configuration, scopes, and bearer tokens
  • Search anomalies: Check embedding provider health and Qdrant connectivity
  • Workflow stalls: Inspect state snapshots and recovery UX logs
  • Artifact errors: Validate MIME types and relative path resolution

Section sources

Conclusion

Kairos MCP delivers a robust foundation for AI workflow automation with intelligent memory, secure authentication, multi-modal artifacts, and a powerful orchestration layer. Its extensible tool framework and interactive UI offerings enable rapid development and deployment of sophisticated, enterprise-ready AI solutions.

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

KAIROS MCP

Clone this wiki locally