Skip to content
/ lux Public

A tool for managing a knowledge repository (.md files) and providing it to AI agents via the Model Context Protocol (MCP).

License

Notifications You must be signed in to change notification settings

snowmerak/lux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

286 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lux

Lux is a tool for managing a knowledge repository (.md files) and providing it to AI agents via the Model Context Protocol (MCP). This project features the ability to index and search highly structured knowledge data.

Project Structure

.
├── cmd/
│   ├── indexer/          # Tool to read Markdown files and generate a search index (Bleve)
│   └── lux/              # Entry point for running the MCP server
├── knowledge/            # Markdown-based knowledge repository (Raw data)
├── pkg/
│   ├── knowledge/        # Knowledge data modeling and Bleve search engine logic
│   ├── lux/              # Lux application framework core
│   └── mcp/              # MCP server implementation and Tool definitions
├── Taskfile.yml          # Build and task automation configuration
└── go.mod                # Go module dependency definition

Key Features

  • Knowledge Indexing: Analyzes Markdown files in the knowledge/ directory to create a pkg/knowledge/data.bleve index.
  • MCP Server: Provides a standard MCP interface so AI agents (e.g., Claude Desktop) can search and retrieve knowledge.
  • Knowledge Search (Tools):
    • search_knowledge: Searches for a list of knowledge items based on tag matching.
    • get_knowledge_content: Retrieves the detailed content of a specific knowledge item by its ID.
    • get_godoc: Retrieves Go documentation for a specific package, type, or function using go doc.
  • Embedded Index: The generated search index is embedded into the binary for easy distribution and deployment.

Getting Started

Prerequisites

  • Go 1.25 or higher
  • Go Task (Optional, if using Taskfile.yml)

Installation & Build

  1. Install dependencies and generate the index:

    go tool task index
  2. Build the binary:

    go tool task build

    or install binary via go install to $GOPATH/bin/lux:

    go tool task install

Running

Run the MCP server using the Stdio transport:

./lux.exe

Knowledge Guides

This project includes various guides for development. Refer to these when adding new modules or extending functionality:

License

This project is licensed under the MIT License.

About

A tool for managing a knowledge repository (.md files) and providing it to AI agents via the Model Context Protocol (MCP).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages