Skip to main content

Undocumented Modules v1.1.0

This document covers the 6 modules not yet individually documented. All are production-ready in MoLOS v1.1.0 with full MCP integration.


Quick Navigation

Use the Table of Contents in the right sidebar to jump to any module documentation.

1. MoLOS-AI-Knowledge v1.1.0

A knowledge base and prompt management system that lets you organize information and reusable prompt templates for AI agents.

Overview

Location: /ui/MoLOS-AI-Knowledge Version: 1.1.0

The MoLOS-AI-Knowledge module provides a centralized repository for structured knowledge entries and reusable prompt templates. It serves as the memory layer for AI agents, enabling them to access your domain-specific knowledge, predefined instructions, and refined prompt patterns.

Features:

  • Hierarchical knowledge organization with folders and tags
  • Prompt template management with variable substitution
  • Full-text search across all knowledge entries
  • Version control for knowledge entries
  • Cross-references between knowledge items
  • AI integration via MCP tools
SectionPathDescription
Knowledge Base/ui/MoLOS-AI-KnowledgeBrowse and manage knowledge entries
Prompts/ui/MoLOS-AI-Knowledge/promptsCreate and manage prompt templates
Search/ui/MoLOS-AI-Knowledge/searchFull-text search across entries
Import/Export/ui/MoLOS-AI-Knowledge/settingsData portability and backup

Core Features

Hierarchical Knowledge Organization

Knowledge entries are organized in a folder-based hierarchy:

/Knowledge
├── Development/
│ ├── Architecture/
│ │ ├── system-design.md
│ │ └── api-patterns.md
│ └── Coding Standards/
│ ├── typescript-guide.md
│ └── code-review-checklist.md
├── Domain Expertise/
│ ├── project-context.md
│ └── business-rules.md
└── Reference/
├── glossary.md
└── faq.md

Prompt Template Management

Create reusable prompt templates with variable substitution:

// Example prompt template
const template = {
name: "Code Review Template",
content: "Review the following {{language}} code for:\n1. Security vulnerabilities\n2. Performance issues\n3. Code style\n\nCode:\n{{code}}",
variables: [
{ name: "language", description: "Programming language", required: true },
{ name: "code", description: "Code snippet to review", required: true }
]
};

Search across all knowledge entries with ranking and highlighting.

Version Control

Every knowledge entry tracks changes with full version history.

Cross-References

Link knowledge entries to each other for contextual navigation.

AI Integration (MCP Tools)

The AI-Knowledge module exposes the following tools for the Architect Agent:

ToolDescription
get_knowledgeRetrieve a specific knowledge entry by ID
create_knowledgeCreate a new knowledge entry
update_knowledgeUpdate an existing knowledge entry
delete_knowledgeRemove a knowledge entry
search_knowledgeFull-text search across knowledge entries
get_promptsRetrieve all prompt templates
get_promptGet a specific prompt template by ID
create_promptCreate a new prompt template
update_promptUpdate an existing prompt template
delete_promptRemove a prompt template
apply_promptApply a prompt template with variable values

API Endpoints

Knowledge API

MethodEndpointDescription
GET/api/AI-Knowledge/knowledgeList all knowledge entries
GET/api/AI-Knowledge/knowledge/:idGet specific entry
POST/api/AI-Knowledge/knowledgeCreate knowledge entry
PUT/api/AI-Knowledge/knowledge/:idUpdate entry
DELETE/api/AI-Knowledge/knowledge/:idDelete entry
GET/api/AI-Knowledge/knowledge/searchSearch entries

Prompts API

MethodEndpointDescription
GET/api/AI-Knowledge/promptsList all prompt templates
GET/api/AI-Knowledge/prompts/:idGet specific template
POST/api/AI-Knowledge/promptsCreate prompt template
PUT/api/AI-Knowledge/prompts/:idUpdate template
DELETE/api/AI-Knowledge/prompts/:idDelete template
POST/api/AI-Knowledge/prompts/:id/applyApply template with variables

Database Schema

MoLOS-AI-Knowledge_knowledge_entries

ColumnTypeDescription
idTEXTPrimary key
titleTEXTEntry title
contentTEXTKnowledge content (markdown)
pathTEXTHierarchical path
tagsJSONArray of tags
referencesJSONArray of related entry IDs
createdAtINTEGERCreation timestamp
updatedAtINTEGERLast update timestamp

MoLOS-AI-Knowledge_prompt_templates

ColumnTypeDescription
idTEXTPrimary key
nameTEXTTemplate name
contentTEXTPrompt content with {{variable}} placeholders
variablesJSONArray of variable definitions
tagsJSONArray of tags
createdAtINTEGERCreation timestamp
updatedAtINTEGERLast update timestamp

MoLOS-AI-Knowledge_versions

ColumnTypeDescription
idTEXTPrimary key
entryIdTEXTForeign key to knowledge entry
contentTEXTContent snapshot
versionINTEGERVersion number
createdAtINTEGERVersion timestamp

Use Cases

AI Research Assistant

Store domain-specific research, glossaries, and context documents that AI agents can reference when answering questions. For example, keep your project's architecture decisions and business rules in the knowledge base so the AI always has up-to-date context.

Prompt Engineering

Create and iterate on prompt templates for recurring tasks. Refine prompts over time using version history, then share templates with other modules via the apply_prompt MCP tool.

Integration

ModuleIntegration
LLM CouncilCouncil personas access knowledge entries for domain context
MarkdownCross-link knowledge entries with documentation pages
TasksAI agents use knowledge when creating or analyzing tasks
GoalsReference knowledge entries for goal context

Best Practices

Tagging Strategy

Use consistent, lowercase tags with hyphens. Create a tag taxonomy at the top level (e.g., domain:backend, type:architecture, project:molos) and apply 2-5 tags per entry.

Prompt Templates

Start with broad templates and refine them. Use version history to compare prompt iterations. Always include a description field so AI agents understand when to use each template.

Knowledge Organization

Mirror your project structure in the knowledge hierarchy. Keep entries focused on a single topic. Use cross-references instead of duplicating content.

Troubleshooting

Search Not Returning Results

Problem: Search queries return no results for known content.

Solution:

  1. Check that the knowledge entry is published (not draft)
  2. Try broader search terms
  3. Verify the search index is up to date (try refreshing the page)
  4. Check that the entry's path is correct

Template Variable Errors

Problem: Applying a prompt template fails with variable errors.

Solution:

  1. Ensure all required variables are provided
  2. Check variable names match exactly (case-sensitive)
  3. Verify variable values don't contain template syntax ({{ or }})
  4. Review the template content for malformed placeholders

Import Failures

Problem: Knowledge import from JSON fails silently.

Solution:

  1. Validate the JSON structure matches the expected schema
  2. Check for duplicate entry IDs in the import file
  3. Ensure file size is within limits
  4. Review the import logs in the browser console

2. MoLOS-Goals v1.1.0

A goal setting and tracking system with visual progress charts, milestones, and recurrence support.

Overview

Location: /ui/MoLOS-Goals Version: 1.1.0

The MoLOS-Goals module provides a structured approach to setting, tracking, and achieving personal and professional goals. With support for categories, milestones, progress visualization, and recurrence, it transforms vague aspirations into actionable, measurable outcomes.

Features:

  • Goal creation with SMART criteria support
  • Categorized goals with custom categories
  • Milestone tracking for incremental progress
  • Recurring goals for habits and routines
  • Visual progress charts and dashboards
  • AI integration via MCP tools
SectionPathDescription
Dashboard/ui/MoLOS-GoalsOverview with progress summaries
All Goals/ui/MoLOS-Goals/goalsBrowse and manage all goals
Categories/ui/MoLOS-Goals/categoriesManage goal categories
Calendar/ui/MoLOS-Goals/calendarCalendar view of deadlines
Settings/ui/MoLOS-Goals/settingsConfigure goal preferences

Core Features

Goal Creation

Create goals with detailed configuration:

PropertyTypeDescription
titlestringGoal name (required)
descriptionstringDetailed description
categorystringCategory assignment
statusenumnot_started, in_progress, completed, paused, abandoned
progressnumberPercentage (0-100)
targetDatenumberTarget completion timestamp
milestonesJSONArray of milestone objects
recurrencestringnone, daily, weekly, monthly, yearly

Categories

Organize goals into meaningful categories:

// Example categories
const categories = [
{ name: "Career", color: "#3B82F6", icon: "briefcase" },
{ name: "Health", color: "#10B981", icon: "heart" },
{ name: "Finance", color: "#F59E0B", icon: "wallet" },
{ name: "Learning", color: "#8B5CF6", icon: "book" },
{ name: "Personal", color: "#EC4899", icon: "user" }
];

Milestones

Break goals into measurable milestones:

const milestones = [
{ title: "Complete research phase", completed: true, dueDate: 1774112409 },
{ title: "Build prototype", completed: false, dueDate: 1774717209 },
{ title: "Launch MVP", completed: false, dueDate: 1775926809 }
];

Visual Progress Charts

Track progress with:

  • Circular progress indicators per goal
  • Category breakdown bar charts
  • Timeline view for milestone completion
  • Trend charts showing progress over time

AI Integration (MCP Tools)

ToolDescription
get_goalsRetrieve goals with filtering by status, category
create_goalCreate a new goal with milestones
update_goalUpdate goal properties and progress
update_progressUpdate goal progress percentage
delete_goalRemove a goal
get_milestonesGet milestones for a goal
complete_milestoneMark a milestone as completed
get_goal_statsGet goal analytics and summaries

API Endpoints

MethodEndpointDescription
GET/api/Goals/goalsList all goals
GET/api/Goals/goals/:idGet specific goal
POST/api/Goals/goalsCreate goal
PUT/api/Goals/goals/:idUpdate goal
DELETE/api/Goals/goals/:idDelete goal
PUT/api/Goals/goals/:id/progressUpdate progress
GET/api/Goals/categoriesList categories
POST/api/Goals/categoriesCreate category
GET/api/Goals/statsGet goal analytics

Database Schema

MoLOS-Goals_goals

ColumnTypeDescription
idTEXTPrimary key
titleTEXTGoal title
descriptionTEXTDetailed description
categoryTEXTCategory name
statusTEXTCurrent status
progressINTEGERProgress percentage (0-100)
targetDateINTEGERTarget completion timestamp
milestonesJSONArray of milestone objects
recurrenceTEXTRecurrence pattern
createdAtINTEGERCreation timestamp
updatedAtINTEGERLast update timestamp

MoLOS-Goals_categories

ColumnTypeDescription
idTEXTPrimary key
nameTEXTCategory name
colorTEXTHex color code
iconTEXTIcon identifier
createdAtINTEGERCreation timestamp

Use Cases

Annual Planning

Set yearly goals across multiple categories (career, health, finance, learning). Break each goal into quarterly milestones. Review progress monthly using the dashboard charts. AI agents can suggest adjustments based on progress trends.

Habit Formation

Use recurring goals to track daily, weekly, or monthly habits. Combine with the Tasks module to create actionable checklists. Use progress charts to visualize streaks and consistency over time.

Integration

ModuleIntegration
TasksBreak goals into actionable tasks with dependencies
Daily LogsTrack goal progress in daily reviews
HealthSet and track health-related goals
AI KnowledgeStore goal-related context for AI agents
LLM CouncilGet AI perspectives on goal planning

Best Practices

SMART Goals

Write goals that are Specific, Measurable, Achievable, Relevant, and Time-bound. Use the description field to define success criteria. Set realistic target dates and meaningful milestones.

Milestone Planning

Break large goals into 3-7 milestones. Each milestone should be independently verifiable. Set due dates for each milestone that sum to the overall target date.

Regular Reviews

Schedule weekly goal reviews in your Daily Log. Use the dashboard to identify stalled goals. Let AI agents analyze patterns and suggest course corrections.

Troubleshooting

Progress Not Updating

Problem: Goal progress percentage doesn't change after completing milestones.

Solution:

  1. Check that milestone completion was saved (refresh the page)
  2. Verify the update_progress call succeeded
  3. Ensure progress is auto-calculated or manually synced
  4. Check browser console for error messages

Goal Deletion Not Working

Problem: Cannot delete a goal, or it reappears after deletion.

Solution:

  1. Check if the goal has linked tasks (remove them first)
  2. Verify you have permission to delete the goal
  3. Clear the Docusaurus cache and retry
  4. Check for active references from other modules

Milestone Issues

Problem: Milestones appear out of order or duplicates exist.

Solution:

  1. Edit the goal and re-order milestones manually
  2. Remove duplicate milestones and save
  3. Ensure milestone due dates are unique and sequential
  4. Refresh the page after saving changes

3. MoLOS-Health v1.1.0

A comprehensive health metrics tracking module for personal wellness, including vitals logging, medication management, and appointment scheduling.

Overview

Location: /ui/MoLOS-Health Version: 1.1.0

The MoLOS-Health module provides tools for tracking personal health metrics, managing medications, scheduling appointments, and maintaining a symptom journal. All data stays local on your infrastructure, ensuring complete privacy of sensitive health information.

Features:

  • Vitals logging (weight, blood pressure, heart rate, blood sugar, sleep)
  • Medication tracking with dosage schedules
  • Appointment scheduling and reminders
  • Visual charts and trend analysis
  • Symptom journal with severity tracking
  • AI integration via MCP tools
SectionPathDescription
Dashboard/ui/MoLOS-HealthHealth overview with latest metrics
Vitals/ui/MoLOS-Health/vitalsLog and view vital signs
Medications/ui/MoLOS-Health/medicationsManage medications and schedules
Appointments/ui/MoLOS-Health/appointmentsSchedule and track appointments
Journal/ui/MoLOS-Health/journalSymptom and wellness journal
Settings/ui/MoLOS-Health/settingsUnits, reminders, and preferences

Core Features

Vitals Logging

Track a wide range of health metrics:

MetricUnitTypical Range
Weightkg / lbsVaries by individual
Blood PressuremmHg90-120 / 60-80
Heart Ratebpm60-100
Blood Sugarmg/dL70-100 (fasting)
Sleep Durationhours7-9
Body Temperature°C / °F36.1-37.2°C
StepscountVaries by individual

Medication Tracking

Manage your medications with full scheduling support:

const medication = {
name: "Vitamin D",
dosage: "2000 IU",
frequency: "daily",
timeOfDay: ["08:00"],
startDate: 1774112409,
endDate: null, // Ongoing
notes: "Take with food",
refillReminder: true,
refillDate: 1776711609
};

Appointment Scheduling

Schedule and track medical appointments:

PropertyTypeDescription
titlestringAppointment description
providerstringDoctor or clinic name
datenumberAppointment timestamp
durationnumberDuration in minutes
locationstringClinic address or link
notesstringPre-appointment notes
statusenumscheduled, completed, cancelled
reminderbooleanEnable reminder notification

Symptom Journal

Log symptoms with severity and context:

const journalEntry = {
date: 1774112409,
symptoms: [
{ name: "Headache", severity: 3, notes: "Behind eyes" },
{ name: "Fatigue", severity: 2, notes: "After lunch" }
],
mood: "moderate",
notes: "Didn't sleep well last night",
triggers: ["poor sleep", "stress"]
};

Charts and Trend Analysis

Visualize health data over time with interactive charts for each metric type.

AI Integration (MCP Tools)

ToolDescription
log_health_dataLog vitals or health metrics
get_health_dataRetrieve health data with date filtering
analyze_trendsAnalyze health trends over time
manage_medicationsAdd, update, or remove medications
schedule_appointmentCreate or update appointments
log_symptomsLog symptoms to the journal
get_health_summaryGet a comprehensive health overview

API Endpoints

Vitals API

MethodEndpointDescription
GET/api/Health/vitalsList vitals entries
POST/api/Health/vitalsLog vitals entry
GET/api/Health/vitals/:metricGet entries for specific metric
GET/api/Health/vitals/trendsGet trend analysis

Medications API

MethodEndpointDescription
GET/api/Health/medicationsList all medications
POST/api/Health/medicationsAdd medication
PUT/api/Health/medications/:idUpdate medication
DELETE/api/Health/medications/:idRemove medication

Appointments API

MethodEndpointDescription
GET/api/Health/appointmentsList appointments
POST/api/Health/appointmentsSchedule appointment
PUT/api/Health/appointments/:idUpdate appointment
DELETE/api/Health/appointments/:idCancel appointment

Journal API

MethodEndpointDescription
GET/api/Health/journalList journal entries
POST/api/Health/journalCreate journal entry
PUT/api/Health/journal/:idUpdate journal entry

Database Schema

MoLOS-Health_health_entries

ColumnTypeDescription
idTEXTPrimary key
metricTEXTMetric type (weight, bp, hr, etc.)
valueREALRecorded value
unitTEXTUnit of measurement
notesTEXTOptional notes
dateINTEGERRecording timestamp
createdAtINTEGERCreation timestamp

MoLOS-Health_medications

ColumnTypeDescription
idTEXTPrimary key
nameTEXTMedication name
dosageTEXTDosage information
frequencyTEXTHow often to take
timeOfDayJSONArray of times
startDateINTEGERStart timestamp
endDateINTEGEREnd timestamp (nullable)
notesTEXTAdditional notes
isActiveINTEGERActive status (0/1)
createdAtINTEGERCreation timestamp

MoLOS-Health_appointments

ColumnTypeDescription
idTEXTPrimary key
titleTEXTAppointment title
providerTEXTDoctor or clinic
dateINTEGERAppointment timestamp
durationINTEGERDuration in minutes
locationTEXTLocation details
notesTEXTAdditional notes
statusTEXTAppointment status
createdAtINTEGERCreation timestamp

MoLOS-Health_journal

ColumnTypeDescription
idTEXTPrimary key
dateINTEGEREntry timestamp
symptomsJSONArray of symptom objects
moodTEXTMood description
notesTEXTGeneral notes
triggersJSONArray of trigger tags
createdAtINTEGERCreation timestamp

Use Cases

Personal Health Monitoring

Track daily vitals like weight, blood pressure, and sleep. Use trend charts to identify patterns. Share summaries with your doctor. AI agents can flag concerning trends and suggest when to seek medical advice.

Family Health Tracking

Maintain separate health profiles for family members. Track appointments, medications, and symptoms for each person. Use the journal to document medical history and communicate with healthcare providers.

Integration

ModuleIntegration
GoalsSet health-related goals (weight loss, exercise targets)
TasksCreate tasks for doctor visits, prescription refills
GoogleSync appointments to Google Calendar
Daily LogsReference health data in daily reviews

Best Practices

Regular Logging

Log vitals at the same time each day for consistent data. Set a daily reminder in Tasks. Even a single metric tracked consistently provides valuable trend data.

Medication Management

Keep medication records up to date. Note side effects in the journal. Set refill reminders ahead of time. Include dosage instructions for emergency reference.

Data Backup

Export health data regularly using the import/export feature. Store backups securely. Health data is sensitive—ensure backups are encrypted.

Troubleshooting

Chart Display Issues

Problem: Health charts don't render or show incomplete data.

Solution:

  1. Ensure at least 2 data points exist for the selected time range
  2. Check that metric values are valid numbers
  3. Try selecting a different time range
  4. Clear browser cache and reload

Data Sync Issues

Problem: Recently logged data doesn't appear in charts or lists.

Solution:

  1. Refresh the page to trigger a data reload
  2. Check browser console for network errors
  3. Verify the data was saved (check the vitals list)
  4. Ensure the date filter includes the entry date

Missing Vitals After Update

Problem: Some vitals entries disappeared after a module update.

Solution:

  1. Check the import/export settings for a backup
  2. Verify database migration completed successfully
  3. Review module logs for migration errors
  4. Restore from the most recent backup

4. MoLOS-Meals v1.1.0

A meal planning and recipe management system with nutrition tracking, shopping lists, and AI-powered meal suggestions.

Overview

Location: /ui/MoLOS-Meals Version: 1.1.0

The MoLOS-Meals module helps you plan meals, manage recipes, track nutrition, and generate shopping lists. With AI-powered meal suggestions and template-based planning, it simplifies the weekly meal preparation cycle from planning to shopping to cooking.

Features:

  • Recipe database with ingredients and instructions
  • Weekly and monthly meal calendar planning
  • Auto-generated shopping lists from meal plans
  • Nutrition tracking with macro and micronutrient breakdown
  • Meal plan templates for quick setup
  • AI integration via MCP tools
SectionPathDescription
Dashboard/ui/MoLOS-MealsMeal plan overview and nutrition summary
Recipes/ui/MoLOS-Meals/recipesBrowse and manage recipes
Meal Plans/ui/MoLOS-Meals/plansCreate and manage meal plans
Shopping Lists/ui/MoLOS-Meals/shoppingView and manage shopping lists
Nutrition/ui/MoLOS-Meals/nutritionTrack nutrition goals and intake
Settings/ui/MoLOS-Meals/settingsDietary preferences and units

Core Features

Recipe Database

Store and organize recipes with full details:

const recipe = {
title: "Greek Salad",
description: "Fresh Mediterranean salad",
ingredients: [
{ name: "Cucumber", amount: 1, unit: "whole" },
{ name: "Tomatoes", amount: 200, unit: "g" },
{ name: "Feta cheese", amount: 100, unit: "g" },
{ name: "Olive oil", amount: 2, unit: "tbsp" }
],
instructions: "Chop vegetables. Crumble feta. Drizzle with olive oil.",
prepTime: 15, // minutes
cookTime: 0,
servings: 2,
tags: ["vegetarian", "quick", "summer"],
nutrition: {
calories: 220,
protein: 8,
carbs: 12,
fat: 16
}
};

Meal Calendar

Plan meals on a weekly or monthly calendar:

PropertyTypeDescription
datenumberMeal date timestamp
mealTypeenumbreakfast, lunch, dinner, snack
recipeIdstringLinked recipe
servingsnumberNumber of servings
notesstringAdditional notes

Shopping Lists

Auto-generate shopping lists from meal plans:

  • Smart Aggregation: Combines duplicate ingredients across recipes
  • Categorized: Groups items by store section (produce, dairy, etc.)
  • Checkable: Mark items as purchased
  • Manual Items: Add non-recipe items to any list

Nutrition Tracking

Track daily and weekly nutrition intake:

NutrientUnitDescription
CalorieskcalTotal energy
ProteingProtein intake
CarbsgCarbohydrate intake
FatgFat intake
FibergDietary fiber
SodiummgSodium intake

Meal Plan Templates

Create reusable templates for common meal patterns:

const template = {
name: "High Protein Week",
meals: {
breakfast: ["oatmeal-protein", "greek-yogurt-bowl"],
lunch: ["chicken-salad", "tuna-wrap"],
dinner: ["salmon-veggies", "lean-steak"],
snacks: ["protein-shake", "nuts"]
}
};

AI Integration (MCP Tools)

ToolDescription
generate_meal_planGenerate a meal plan based on preferences and constraints
suggest_recipesSuggest recipes matching criteria
create_shopping_listGenerate shopping list from meal plan
get_recipesRetrieve recipes with filtering
create_recipeCreate a new recipe
get_nutrition_summaryGet nutrition summary for a date range
get_meal_planRetrieve current meal plan

API Endpoints

Recipes API

MethodEndpointDescription
GET/api/Meals/recipesList all recipes
GET/api/Meals/recipes/:idGet specific recipe
POST/api/Meals/recipesCreate recipe
PUT/api/Meals/recipes/:idUpdate recipe
DELETE/api/Meals/recipes/:idDelete recipe
GET/api/Meals/recipes/searchSearch recipes

Meal Plans API

MethodEndpointDescription
GET/api/Meals/meal-plansList meal plans
POST/api/Meals/meal-plansCreate meal plan
PUT/api/Meals/meal-plans/:idUpdate meal plan
DELETE/api/Meals/meal-plans/:idDelete meal plan

Shopping Lists API

MethodEndpointDescription
GET/api/Meals/shopping-listsList shopping lists
POST/api/Meals/shopping-listsCreate shopping list
PUT/api/Meals/shopping-lists/:idUpdate list
POST/api/Meals/shopping-lists/:id/itemsAdd item to list

Nutrition API

MethodEndpointDescription
GET/api/Meals/nutritionGet nutrition log
GET/api/Meals/nutrition/summaryGet nutrition summary
POST/api/Meals/nutritionLog nutrition entry

Database Schema

MoLOS-Meals_recipes

ColumnTypeDescription
idTEXTPrimary key
titleTEXTRecipe title
descriptionTEXTRecipe description
ingredientsJSONArray of ingredient objects
instructionsTEXTStep-by-step instructions
prepTimeINTEGERPrep time in minutes
cookTimeINTEGERCook time in minutes
servingsINTEGERNumber of servings
tagsJSONArray of tags
createdAtINTEGERCreation timestamp
updatedAtINTEGERLast update timestamp

MoLOS-Meals_meal_plans

ColumnTypeDescription
idTEXTPrimary key
nameTEXTPlan name
startDateINTEGERPlan start timestamp
endDateINTEGERPlan end timestamp
mealsJSONArray of meal assignments
createdAtINTEGERCreation timestamp

MoLOS-Meals_shopping_list_items

ColumnTypeDescription
idTEXTPrimary key
listIdTEXTParent shopping list
nameTEXTItem name
amountREALQuantity
unitTEXTUnit of measurement
categoryTEXTStore section category
isCheckedINTEGERPurchased status (0/1)
recipeIdTEXTSource recipe (nullable)

MoLOS-Meals_nutrition

ColumnTypeDescription
idTEXTPrimary key
dateINTEGEREntry timestamp
mealTypeTEXTMeal type
recipeIdTEXTSource recipe
caloriesREALCalorie count
proteinREALProtein in grams
carbsREALCarbs in grams
fatREALFat in grams

Use Cases

Weekly Meal Prep

Plan a full week of meals every Sunday. Generate a shopping list from the plan. Cook batch meals for lunch and dinner. Track nutrition to ensure balanced intake. Use templates to rotate through favorite meal patterns.

Dietary Tracking

Set nutrition goals (e.g., 2000 kcal/day, 150g protein). Log meals and snacks. Review weekly nutrition summaries. Use AI suggestions to fill nutritional gaps. Adjust meal plans based on tracking data.

Integration

ModuleIntegration
TasksCreate shopping tasks from meal plans
HealthCross-reference nutrition with health metrics
GoalsSet dietary goals and track progress
GoogleShare shopping lists via Google Drive

Best Practices

Recipe Organization

Use consistent tags for recipes (cuisine type, dietary restriction, prep time). Include accurate nutrition data for every recipe. Rate recipes to surface favorites in AI suggestions.

Batch Cooking

Plan meals that share ingredients to reduce waste. Cook proteins and grains in bulk. Use the meal plan template system to create batch-cooking schedules.

Seasonal Planning

Adjust meal plans with seasonal produce. Create seasonal recipe collections. Update shopping lists to reflect what's in season for better nutrition and cost savings.

Troubleshooting

Nutrition Data Missing

Problem: Recipe shows 0 or missing nutrition information.

Solution:

  1. Edit the recipe and add nutrition data manually
  2. Ensure ingredient amounts include units
  3. Use the AI suggest_recipes tool to auto-populate nutrition
  4. Check that the nutrition fields are in the correct format (numbers, not strings)

Shopping List Sync Issues

Problem: Changes to the meal plan don't update the shopping list.

Solution:

  1. Regenerate the shopping list after updating the meal plan
  2. Check that the meal plan was saved successfully
  3. Verify the recipe ingredients are complete
  4. Clear the shopping list and regenerate from scratch

Recipe Import Problems

Problem: Imported recipe has formatting issues or missing fields.

Solution:

  1. Validate the import JSON structure matches the schema
  2. Ensure all required fields are present (title, ingredients)
  3. Check that ingredient amounts are valid numbers
  4. Review the import logs for specific field errors

5. MoLOS-Google v1.1.0

A Google services integration module that syncs your Google Calendar, Drive, Gmail, and Tasks with MoLOS for a unified productivity experience.

Overview

Location: /ui/MoLOS-Google Version: 1.1.0

The MoLOS-Google module bridges MoLOS with the Google ecosystem. It synchronizes calendars, manages Drive files, integrates Gmail, and keeps Google Tasks in sync with MoLOS Tasks. All data flows through your own infrastructure—Google API calls are made directly from your server, and credentials are stored locally.

Features:

  • Google Calendar bidirectional sync
  • Google Drive file management
  • Gmail integration for reading and composing
  • Google Tasks sync with MoLOS Tasks
  • Configurable sync intervals
  • AI integration via MCP tools
SectionPathDescription
Dashboard/ui/MoLOS-GoogleConnection status and sync overview
Calendar/ui/MoLOS-Google/calendarGoogle Calendar sync
Drive/ui/MoLOS-Google/driveGoogle Drive files
Gmail/ui/MoLOS-Google/gmailGmail integration
Tasks/ui/MoLOS-Google/tasksGoogle Tasks sync
Settings/ui/MoLOS-Google/settingsOAuth and sync configuration

Core Features

Google Calendar Sync

Synchronize events between Google Calendar and MoLOS:

PropertyTypeDescription
titlestringEvent title
descriptionstringEvent description
startTimenumberStart timestamp
endTimenumberEnd timestamp
locationstringEvent location
attendeesJSONArray of attendee emails
googleEventIdstringGoogle Calendar event ID
syncStatusenumsynced, pending, conflict

Google Drive Management

Browse, upload, and manage Drive files from within MoLOS:

  • File Browser: Navigate Drive folders
  • Upload: Upload files to Drive
  • Search: Search across Drive content
  • Sharing: Manage file sharing permissions

Gmail Integration

Read and compose emails without leaving MoLOS:

  • Inbox: Read and search emails
  • Compose: Write and send emails
  • Labels: Manage Gmail labels and filters
  • Attachments: Handle email attachments

Google Tasks Sync

Keep MoLOS Tasks and Google Tasks in sync:

  • Bidirectional Sync: Changes in either system propagate
  • Conflict Resolution: Configurable conflict handling
  • Selective Sync: Choose which task lists to sync

AI Integration (MCP Tools)

ToolDescription
schedule_eventCreate a Google Calendar event
get_eventsRetrieve calendar events for a date range
update_eventModify an existing event
delete_eventRemove a calendar event
create_documentCreate a Google Drive document
search_driveSearch Google Drive files
send_emailCompose and send an email
read_emailsRetrieve emails with filtering
sync_tasksTrigger manual sync of Google Tasks

API Endpoints

Calendar API

MethodEndpointDescription
GET/api/Google/calendar/eventsList calendar events
POST/api/Google/calendar/eventsCreate event
PUT/api/Google/calendar/events/:idUpdate event
DELETE/api/Google/calendar/events/:idDelete event
GET/api/Google/calendar/syncTrigger sync

Drive API

MethodEndpointDescription
GET/api/Google/drive/filesList Drive files
POST/api/Google/drive/uploadUpload file
GET/api/Google/drive/searchSearch Drive
DELETE/api/Google/drive/files/:idDelete file

Gmail API

MethodEndpointDescription
GET/api/Google/gmail/messagesList emails
GET/api/Google/gmail/messages/:idGet email
POST/api/Google/gmail/sendSend email
GET/api/Google/gmail/searchSearch emails

Tasks Sync API

MethodEndpointDescription
GET/api/Google/tasks/listsList Google Task lists
GET/api/Google/tasks/syncTrigger task sync
POST/api/Google/tasks/configureConfigure sync settings

Database Schema

MoLOS-Google_google_events

ColumnTypeDescription
idTEXTPrimary key
googleEventIdTEXTGoogle Calendar event ID
titleTEXTEvent title
descriptionTEXTEvent description
startTimeINTEGERStart timestamp
endTimeINTEGEREnd timestamp
locationTEXTEvent location
syncStatusTEXTSync status
lastSyncedAtINTEGERLast sync timestamp

MoLOS-Google_drive_files

ColumnTypeDescription
idTEXTPrimary key
googleFileIdTEXTGoogle Drive file ID
nameTEXTFile name
mimeTypeTEXTFile type
parentIdTEXTParent folder ID
sizeINTEGERFile size in bytes
lastSyncedAtINTEGERLast sync timestamp

MoLOS-Google_gmail_messages

ColumnTypeDescription
idTEXTPrimary key
googleMessageIdTEXTGmail message ID
threadIdTEXTGmail thread ID
subjectTEXTEmail subject
fromTEXTSender email
toTEXTRecipient emails (JSON)
snippetTEXTMessage preview
labelsJSONGmail labels
receivedAtINTEGERReceive timestamp

MoLOS-Google_sync_config

ColumnTypeDescription
idTEXTPrimary key
serviceTEXTGoogle service name
syncIntervalINTEGERSync interval in minutes
lastSyncAtINTEGERLast successful sync
statusTEXTSync status
errorCountINTEGERConsecutive error count

Use Cases

Cross-Platform Productivity

Use MoLOS as your central hub while keeping Google Calendar, Drive, and Gmail synchronized. AI agents can schedule events, search emails, and manage files—all through a single interface with MCP tools.

Google Ecosystem Users

For teams or individuals deeply invested in Google Workspace, this module provides seamless two-way sync. Keep your existing Google workflows while benefiting from MoLOS's task management, goals, and AI capabilities.

Integration

ModuleIntegration
TasksBidirectional sync between MoLOS Tasks and Google Tasks
HealthSync health appointments to Google Calendar
MealsShare shopping lists via Google Drive
GoalsAdd goal milestones to Google Calendar
LLM CouncilAI agents access Google data for richer context

Best Practices

API Rate Limiting

Google APIs enforce rate limits. Configure sync intervals to stay within quotas. Use batch operations where possible. Monitor the sync dashboard for rate limit warnings.

Error Handling

Configure retry logic for failed sync operations. Set up alerts for persistent sync failures. Review the error count column in sync_config to detect chronic issues.

Permission Management

Grant only the minimum required OAuth scopes. Review permissions periodically. Revoke access for unused integrations. Never share OAuth credentials.

Troubleshooting

OAuth Token Issues

Problem: Sync fails with authentication errors.

Solution:

  1. Re-authorize by going to Settings and clicking "Reconnect"
  2. Verify the OAuth client ID and secret are correct
  3. Check that the redirect URI matches your MoLOS instance
  4. Ensure the Google API services are enabled in your Google Cloud console

Sync Conflicts

Problem: Data differs between MoLOS and Google after sync.

Solution:

  1. Check the sync_config table for error count
  2. Review conflict resolution settings in the Google module settings
  3. Trigger a manual sync to force reconciliation
  4. If needed, choose a "source of truth" and reset the other side

Quota Exceeded

Problem: Google API calls return 429 (Too Many Requests) errors.

Solution:

  1. Increase the sync interval in Settings
  2. Reduce the number of concurrent API calls
  3. Check the Google Cloud Console for current quota usage
  4. Wait for the quota window to reset (usually 24 hours)

6. MoLOS-Sample-Module v1.1.0

An example module demonstrating the MoLOS module development patterns, including UI components, database CRUD operations, API endpoints, and AI tool integration.

Overview

Location: /ui/MoLOS-Sample-Module Version: 1.1.0

The MoLOS-Sample-Module serves as a reference implementation for developers building custom modules. It demonstrates every aspect of the module architecture: Svelte UI components, SQLite database operations, REST API endpoints, and MCP tool definitions. Use this module as a starting point and template for your own modules.

Features:

  • Sample UI with Svelte components and layouts
  • Complete database CRUD (Create, Read, Update, Delete)
  • REST API endpoint demonstrations
  • AI tool integration via MCP protocol
  • Configuration and settings panel
  • Standalone—no cross-module dependencies
SectionPathDescription
Dashboard/ui/MoLOS-Sample-ModuleModule overview and sample data
Data/ui/MoLOS-Sample-Module/dataCRUD operations demo
Actions/ui/MoLOS-Sample-Module/actionsCustom action demonstrations
API Demo/ui/MoLOS-Sample-Module/api-demoAPI endpoint testing
Settings/ui/MoLOS-Sample-Module/settingsModule configuration

Core Features

Sample UI

Demonstrates standard MoLOS UI patterns:

<!-- Example: Sample data list component -->
<script lang="ts">
import type { SampleItem } from './types';

interface Props {
items: SampleItem[];
onSelect: (item: SampleItem) => void;
}

let { items, onSelect }: Props = $props();
</script>

<div class="sample-list">
{#each items as item (item.id)}
<button class="sample-item" onclick={() => onSelect(item)}>
<span class="item-title">{item.title}</span>
<span class="item-status">{item.status}</span>
</button>
{/each}
</div>

Database CRUD

Full Create, Read, Update, Delete operations:

OperationDescriptionExample
CreateInsert new recordsAdd a sample data item
ReadQuery recordsList items with filters
UpdateModify existing recordsChange item status
DeleteRemove recordsDelete by ID or bulk

API Endpoints Demo

REST API endpoints following MoLOS conventions:

MethodEndpointDescription
GET/api/Sample-Module/dataList all sample data
GET/api/Sample-Module/data/:idGet single item
POST/api/Sample-Module/dataCreate item
PUT/api/Sample-Module/data/:idUpdate item
DELETE/api/Sample-Module/data/:idDelete item
POST/api/Sample-Module/actionsExecute custom action

Settings Panel

Demonstrates module configuration patterns:

interface ModuleSettings {
theme: 'light' | 'dark' | 'system';
pageSize: number;
autoRefresh: boolean;
refreshInterval: number; // seconds
debugMode: boolean;
}

AI Integration (MCP Tools)

The Sample-Module exposes example MCP tools that demonstrate the tool definition pattern:

ToolDescription
sample_tool_1Retrieve sample data with filtering options
sample_tool_2Create or update sample data items
sample_tool_3Execute a custom action on sample data
sample_get_settingsRetrieve module configuration
sample_analyzePerform analysis on sample data

Tool Definition Pattern:

// Example MCP tool definition
const sampleTool = {
name: "sample_tool_1",
description: "Retrieve sample data items with optional filtering",
parameters: {
filter: { type: "string", required: false, description: "Filter query" },
limit: { type: "number", required: false, description: "Max results" },
sortBy: { type: "string", required: false, description: "Sort field" }
},
handler: async (params) => {
// Implementation
}
};

API Endpoints

Data API

MethodEndpointDescription
GET/api/Sample-Module/dataList all items with pagination
GET/api/Sample-Module/data/:idGet specific item
POST/api/Sample-Module/dataCreate new item
PUT/api/Sample-Module/data/:idUpdate existing item
DELETE/api/Sample-Module/data/:idDelete item
POST/api/Sample-Module/data/bulkBulk create/update/delete

Actions API

MethodEndpointDescription
POST/api/Sample-Module/actionsExecute custom action
GET/api/Sample-Module/actions/historyGet action history

Settings API

MethodEndpointDescription
GET/api/Sample-Module/settingsGet module settings
PUT/api/Sample-Module/settingsUpdate module settings

Database Schema

MoLOS-Sample-Module_sample_data

ColumnTypeDescription
idTEXTPrimary key (auto-generated UUID)
titleTEXTItem title
descriptionTEXTItem description
statusTEXTStatus (active, archived, draft)
priorityINTEGERPriority level (1-5)
tagsJSONArray of tag strings
metadataJSONArbitrary key-value metadata
valueREALNumeric value field
isActiveINTEGERActive flag (0/1)
createdAtINTEGERCreation timestamp
updatedAtINTEGERLast update timestamp

This schema demonstrates all common column types used in MoLOS modules: TEXT, INTEGER, REAL, and JSON.

Use Cases

Learning Module Development

Use this module as a reference when building your first custom module. Study the directory structure, copy the boilerplate, and follow the patterns demonstrated in the code. Each section is annotated with comments explaining the MoLOS conventions.

Testing API Patterns

Use the built-in API demo page to test REST endpoints and understand the request/response format. Verify your own module's API behavior by comparing against the sample module's documented patterns.

Integration

This module is designed as a standalone example with no cross-module integration. However, it demonstrates integration patterns you can apply:

PatternExample
Link to TasksReference task IDs in sample data
Link to MarkdownEmbed knowledge entry IDs
MCP ToolsFollow the tool definition pattern for AI integration

Best Practices

Code Organization

Follow the standard module directory structure:

modules/MoLOS-Sample-Module/
├── ui/ # Frontend (Svelte)
│ ├── +layout.svelte
│ ├── +page.svelte
│ └── components/
├── server/ # Backend
│ ├── api/ # API endpoints
│ ├── repositories/ # Database layer
│ └── mcp/ # MCP tool definitions
├── models/ # TypeScript types
├── package.json
└── tsconfig.json

Testing Patterns

Test your module at each layer:

  1. Database: Verify CRUD operations with raw SQL
  2. API: Use the API demo page or curl to test endpoints
  3. UI: Test components in isolation before integrating
  4. MCP: Verify tool definitions with the Architect Agent

Deployment

  • Keep package.json name as @molos/module-{name}
  • Use workspace:* for dependencies on shared packages
  • Ensure TypeScript compiles without errors (tsc --noEmit)
  • Test the module in the monorepo dev server before release

Troubleshooting

Build Errors

Problem: Module fails to compile or build.

Solution:

  1. Verify all TypeScript types are correct
  2. Check that imports reference valid module paths
  3. Ensure package.json name follows the @molos/module-* convention
  4. Run tsc --noEmit from the module directory for detailed errors

Runtime Issues

Problem: Module loads but shows errors at runtime.

Solution:

  1. Check browser console for JavaScript errors
  2. Verify API endpoints return valid JSON
  3. Ensure database tables are created on first run
  4. Check that the module is registered in the workspace configuration

Permission Problems

Problem: Module features don't work due to permissions.

Solution:

  1. Check that the module has required database permissions
  2. Verify API endpoints have correct authentication
  3. Ensure MCP tools have appropriate scope
  4. Review module logs for permission-related errors

Module Index

ModuleStatusDocumentation
Tasks✅ ProductionFull Guide
Markdown✅ ProductionFull Guide
LLM Council✅ ProductionFull Guide
AI-Knowledge✅ ProductionThis Document
Goals✅ ProductionThis Document
Health✅ ProductionThis Document
Meals✅ ProductionThis Document
Google✅ ProductionThis Document
Sample-Module✅ SampleThis Document

Getting Started with Additional Modules

Quick Start

All 6 modules are production-ready and can be activated in your MoLOS instance. Navigate to the module location in the UI to explore features.

Development

For building custom modules, see Module Development Guide and reference MoLOS-Sample-Module.


Last Updated: March 21, 2026 | Version: 1.1.0