Skip to content

๐Ÿง  Self-learning MCP server for Mendix development - TF-IDF search, fuzzy matching, auto-maintenance, project analysis

License

Notifications You must be signed in to change notification settings

jordnlvr/mendix-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

67 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

npm version npm downloads Node >= 18 MIT License MCP Compatible

๐Ÿง  Mendix Expert MCP Server

A self-learning, auto-researching MCP server that gives AI assistants deep Mendix expertise and grows smarter with every interaction.

npm install


๐Ÿš€ Quick Install

# Install globally
npm install -g @jordnlvr/mendix-mcp-server

# Or use with npx (no install needed)
npx @jordnlvr/mendix-mcp-server

๐Ÿ“– Full Documentation: jordnlvr.github.io/mendix-mcp-server


๐Ÿ†• What's New in v3.1.0

๐ŸŒพ Automated Weekly Harvesting

  • GitHub Action runs every Monday at 3AM UTC
  • Crawls releaseNotes, studioProGuide, and refGuide from docs.mendix.com
  • Auto-commits fresh knowledge - your AI assistant stays current!
  • Manual trigger available via GitHub Actions UI

๐Ÿš€ Performance Improvements

  • Disk-cached embeddings - Cache persists to data/embedding-cache.json
  • Server restarts 3-5x faster with warm cache
  • Graceful shutdown saves cache automatically

๐Ÿ“Š New REST API Endpoints

  • GET /harvest-status - Check harvest schedule and last run time
  • POST /harvest - Trigger manual harvest (sources: releaseNotes, studioProGuide, etc.)
  • POST /knowledge-gap - Report missing knowledge for future harvesting

See CHANGELOG.md for full release history.


๐Ÿค” What Is This?

This is a Model Context Protocol (MCP) server that supercharges AI assistants (like GitHub Copilot, Claude, ChatGPT) with:

  1. Deep Mendix Knowledge - 700KB+ of curated entries about SDK patterns, best practices, troubleshooting
  2. Semantic Vector Search - Pinecone + Azure OpenAI/OpenAI embeddings for meaning-based search
  3. Self-Learning - Every discovery gets saved to the knowledge base automatically
  4. Auto-Harvesting - Scheduled crawls of docs.mendix.com for fresh content
  5. Project & Theme Analysis - Analyze .mpr files AND custom themes with grades (A+ to F)
  6. Beast Mode - Exhaustive 5-tier research protocol when answers aren't in the knowledge base
  7. Analytics Dashboard - Visual dashboard showing usage patterns and popular topics
  8. Studio Pro Extensions - Complete guide for building C# extensions for Studio Pro 11+

Think of it as giving your AI assistant a Mendix expert's brain that keeps getting smarter.


โœจ Key Features

Feature Description
๐Ÿ” Intelligent Search TF-IDF with fuzzy matching - typos like "micorflow" still find "microflow"
๐Ÿ”ฎ Vector Search Semantic search using Pinecone - find concepts, not just keywords
๐ŸŽฏ Hybrid Search Combined keyword + semantic search for best of both worlds
๐Ÿง  Self-Learning Automatically grows smarter as you add knowledge
๐Ÿ”ฌ Beast Mode 5-tier research protocol - docs, GitHub, npm, forums, archives
๐Ÿ“Š Analytics Dashboard Visual HTML dashboard at /dashboard endpoint
๐ŸŽจ Theme Analyzer v2.0 Web-focused, follows @imports, CSS custom properties, letter grades
๐Ÿ”ง Auto-Maintenance Scheduled harvesting, validation, staleness detection, cache cleanup
๐Ÿ“ Project Analysis Analyze any .mpr file - discover modules, entities, microflows
๐Ÿงฉ Studio Pro Extensions Build C# extensions for Studio Pro 11+ with verified patterns
๐Ÿ”„ Zero Config Built-in Pinecone key - works out of the box, no API keys required!

๐Ÿ”ฌ The Research Protocol (Beast Mode)

This is the magic. When the knowledge base doesn't have an answer, the AI is instructed to search through 5 tiers exhaustively:

๐Ÿ“š Tier 1: Official Sources

  • docs.mendix.com, API references, Academy, Marketplace
  • Release notes (version-specific changes)

๐Ÿ’ป Tier 2: Code Repositories

  • GitHub mendix org - sdk-demo (GOLDMINE!), widgets-resources, docs repo
  • GitHub Code Search - Find real implementations across ALL repos
  • npm packages - Search mendixmodelsdk, mendixplatformsdk, @mendix/*

๐Ÿ’ฌ Tier 3: Community Sources

  • Mendix Forum (community.mendix.com)
  • Stack Overflow ([mendix] tag)
  • GitHub Issues & Discussions
  • Reddit (r/mendix, r/lowcode)
  • Dev.to, Medium, LinkedIn articles

๐Ÿ—„๏ธ Tier 4: Archives

  • Wayback Machine (web.archive.org) - Old/removed docs
  • archive.today (archive.ph) - Preserved pages
  • Google Cache - Recently cached versions

๐ŸŽฌ Tier 5: Video & Multimedia

  • YouTube (Mendix Official, Mendix World talks)
  • LinkedIn Learning courses

โš ๏ธ Version Grading

Results are graded by version compatibility:

  • ๐ŸŸข Exact - Same Mendix version
  • ๐ŸŸก Close - Same major version (10.x matches 10.y)
  • ๐ŸŸ  Relevant - Different major but concept applies
  • โšช Legacy - Old but useful for understanding

๐Ÿง  Self-Learning

After finding ANY information:

  1. โœ… Automatically saves to knowledge base
  2. โœ… Re-indexes keyword search
  3. โœ… Updates vector embeddings for semantic search

The knowledge base grows every time you use it!

See docs/RESEARCH-PROTOCOL.md for the full protocol.


๐Ÿš€ Quick Start

1. Clone & Install

git clone https://github.com/jordnlvr/mendix-mcp-server.git
cd mendix-mcp-server
npm install

2. Configure Your MCP Client

VS Code (Copilot Chat)

Add to your VS Code settings.json:

"chat.mcp.servers": {
  "mendix-expert": {
    "type": "stdio",
    "command": "node",
    "args": ["C:/path/to/mendix-mcp-server/src/index.js"]
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mendix-expert": {
      "command": "node",
      "args": ["C:/path/to/mendix-mcp-server/src/index.js"]
    }
  }
}

3. Use It!

In your AI chat:

  • @mendix-expert - Ask about Mendix development
  • "How do I create a microflow with the SDK?"
  • "Analyze my project at D:/Projects/MyApp.mpr"

๐ŸŒ REST API (NEW in v2.5.2!)

Want to use Mendix Expert from ChatGPT Custom GPTs, web apps, or other tools? The REST API exposes all functionality over HTTP.

Start the REST Server

# Using npm script
npm run rest

# Or directly
node src/rest-proxy.js

Server runs at http://localhost:5050

Available Endpoints

Endpoint Method Description
/health GET Health check and status
/status GET Server status with example queries
/tools GET List all available endpoints
/dashboard GET ๐Ÿ“Š Visual analytics dashboard (HTML)
/beast-mode GET ๐Ÿ”ฅ Get Beast Mode research protocol
/analytics GET Usage analytics and statistics (JSON)
/harvest-status GET ๐ŸŒพ Check harvest schedule & status
/query POST Query knowledge base
/search POST Hybrid search (keyword + semantic)
/best-practice POST Get best practice recommendations
/analyze POST Analyze Mendix project
/analyze-theme POST ๐ŸŽจ Deep theme analysis with grading
/harvest POST ๐ŸŒพ Trigger manual harvest
/knowledge-gap POST ๐Ÿ“ Report missing knowledge

Example Usage

# Health check
curl http://localhost:5050/health

# Search for entity creation
curl -X POST http://localhost:5050/search \
  -H "Content-Type: application/json" \
  -d '{"query":"how to create entity SDK","limit":5}'

# Get best practices
curl -X POST http://localhost:5050/best-practice \
  -H "Content-Type: application/json" \
  -d '{"scenario":"microflow error handling"}'

ChatGPT Integration

Make Mendix Expert available as a ChatGPT Custom GPT with public internet access:

# One command to start REST server + ngrok tunnel
.\start-chatgpt-api.ps1

# Check status anytime
.\check-api-status.ps1

Full setup guide: docs/CHATGPT-SETUP.md

Quick steps:

  1. Run .\start-chatgpt-api.ps1 - starts server and shows public URL
  2. Create a Custom GPT at chat.openai.com
  3. Go to Configure โ†’ Actions โ†’ Import from URL
  4. Enter: https://YOUR-NGROK-URL.ngrok-free.app/openapi.json
  5. Copy the system prompt from docs/CHATGPT-SETUP.md

Note: Free ngrok URLs change on restart. Keep the script running or consider ngrok's paid tier for a stable URL.


๐Ÿ“š Available Tools

Tool Description
query_mendix_knowledge Search the knowledge base for any Mendix topic
analyze_project Analyze a .mpr file or extracted project directory
analyze_theme ๐ŸŽจ NEW! Deep theme analysis with grading (A+ to F)
get_best_practice Get recommendations for specific scenarios
add_to_knowledge_base Contribute new knowledge (auto quality scoring)
sync_mcp_server Sync with GitHub (pull updates, push changes)
harvest ๐ŸŒพ Crawl Mendix docs for fresh knowledge
harvest_status Check harvest status and available sources
hello Get a welcome screen with status and examples
beast_mode ๐Ÿ”ฅ Get the exhaustive research protocol prompt
vector_search ๐Ÿ”ฎ Semantic search - find concepts
hybrid_search ๐ŸŽฏ Combined keyword + semantic search
vector_status Check Pinecone index and search stats
reindex_vectors Re-index knowledge for vector search
get_usage_analytics ๐Ÿ“Š View usage stats, popular topics, trends

๐Ÿ”ฅ Beast Mode Research Protocol

The server includes an aggressive, exhaustive research protocol that ensures AI assistants never give up when searching for Mendix answers.

What It Does

When enabled (it's embedded in every query!), Beast Mode mandates:

  1. 6-Tier Exhaustive Search - Official docs โ†’ GitHub code โ†’ npm packages โ†’ Community โ†’ Archives โ†’ Obscure sources
  2. Never Give Up - Search ALL tiers before saying "I don't know"
  3. Version Awareness - Always verify Mendix version compatibility (7.x through 11.x differ!)
  4. Auto-Learning - Save everything found to knowledge base

Key Gold Mine Sources

Source Why It's Critical
github.com/mendix/sdk-demo Has schema extraction patterns!
npm search mendixmodelsdk Find packages that USE the SDK - real implementations
web.archive.org/web/*/docs.mendix.com/* Old/removed documentation

Get the Full Prompt

# Get the full copy-paste ready research prompt
@mendix-expert beast_mode

# Get a brief summary
@mendix-expert beast_mode format="brief"

# Get explanation of what it is
@mendix-expert beast_mode format="instructions"

Use the prompt output in ANY AI chat to enable exhaustive Mendix research!

See docs/RESEARCH-PROTOCOL.md for the complete protocol.


๐ŸŒพ Knowledge Harvester (NEW!)

The server can automatically crawl official Mendix documentation to stay up-to-date!

How It Works

Scheduled Crawler โ†’ docs.mendix.com โ†’ Parse โ†’ Add to Knowledge Base
                                                      โ†“
                              User Query โ†’ TF-IDF Search โ†’ Results

Sources Indexed

Source Content Priority
Studio Pro Release Notes 10.x, 11.x changelogs High
Reference Guide Pages, domain model, microflows High
How-To Guides Front-end, integration, extensibility Medium
Studio Pro Guide Page variables, Maia, workflows High
SDK Documentation Platform SDK, Model SDK High
API Documentation REST, OData, web services Medium

Priority Topics Auto-Harvested

  • โœ… Page Variables (new in 10.0+)
  • โœ… Workflows 2.0
  • โœ… Maia AI Assistant
  • โœ… Atlas UI 3.x / Design Tokens
  • โœ… Pluggable Widgets API
  • โœ… Studio Pro Extensions
  • โœ… Platform & Model SDK patterns

Usage

# Harvest all sources
@mendix-expert harvest

# Harvest specific sources
@mendix-expert harvest sources=["releaseNotes", "mxsdk"]

# Check harvest status
@mendix-expert harvest_status

# Dry run (preview without saving)
@mendix-expert harvest dryRun=true

Auto-Harvest Schedule

  • Runs automatically every 7 days
  • Can be triggered manually anytime
  • Rebuilds search index after adding new knowledge

๐Ÿ”ฎ Vector Search (Enhanced in v2.8.0!)

The server includes semantic vector search using Pinecone! This means you can search by meaning, not just keywords.

Why Vector Search?

Keyword Search Vector Search
Finds "microflow" Finds "microflow", "workflow", "automation", "business logic"
Exact match required Semantic understanding
"loop" won't find "iterate" "loop" finds "iterate", "forEach", "while"

Zero Configuration Required! ๐ŸŽ‰

Good news: Vector search works out of the box! The server includes a built-in connection to the shared Mendix knowledge base. No Pinecone account or API key needed.

Optional: Improve Search Quality with Embeddings

For the best semantic search quality, provide an embedding API key:

Option 1: OpenAI (Recommended for most users)

OPENAI_API_KEY=sk-your-key-here

Option 2: Azure OpenAI (Enterprise/Siemens users)

AZURE_OPENAI_API_KEY=your_azure_key
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-ada-002

Priority Order: Azure OpenAI โ†’ Standard OpenAI โ†’ Local TF-IDF (fallback)

Without any API keys: Server uses local TF-IDF search - still works great!

Advanced: Use Your Own Pinecone Index

If you want to maintain your own knowledge base:

PINECONE_API_KEY=your_pinecone_key
PINECONE_INDEX=your-index-name

Usage

# Semantic search - finds conceptually related content
@mendix-expert vector_search query="how to iterate over a list"

# Hybrid search - best of both worlds
@mendix-expert hybrid_search query="microflow error handling"

# Check vector index status
@mendix-expert vector_status

# Re-index after adding new knowledge
@mendix-expert reindex_vectors

How Hybrid Search Works

User Query: "loop through entities"
    โ”‚
    โ”œโ”€โ†’ Keyword Search (40% weight)
    โ”‚      Finds: "loop", "entity", "iterate"
    โ”‚
    โ””โ”€โ†’ Vector Search (60% weight)
           Finds: "forEach", "list iteration", "aggregate"
    โ”‚
    โ””โ”€โ†’ Reciprocal Rank Fusion
           Merges results, ranks by combined score
           ๐ŸŽฏ = Both matched, ๐Ÿ“ = Keyword only, ๐Ÿ”ฎ = Vector only

๐Ÿ“Š MCP Resources

Access these via the MCP resources protocol:

Resource What It Shows
mendix://knowledge/overview Knowledge base summary & file list
mendix://stats Server statistics (uptime, cache, index size)
mendix://search/config Current search configuration
mendix://validation/report Knowledge validation errors/warnings
mendix://analytics Search analytics (hit rate, top terms, gaps)
mendix://staleness Entries older than 90 days needing updates
mendix://maintenance Auto-maintenance schedule & status

๐Ÿ”ง Search Features

Fuzzy Matching

Typos are handled gracefully:

  • "micorflow" โ†’ finds microflow
  • "domian model" โ†’ finds domain model
  • "platfrom sdk" โ†’ finds platform sdk

Synonym Expansion

Searches automatically expand:

  • MF โ†’ microflow
  • DM โ†’ domain model
  • SDK โ†’ mendixmodelsdk, mendixplatformsdk
  • NP โ†’ non-persistent

Stemming

Finds variations:

  • "microflows" matches microflow
  • "creating" matches create
  • "validation" matches validate

๐Ÿ“ Knowledge Base

177 entries across 9 topic files:

File Entries Topics
model-sdk.json 25 Model manipulation, elements, properties
platform-sdk.json 23 Working copies, commits, branches
best-practices.json 28 Naming, architecture, performance
troubleshooting.json 22 Common errors and solutions
studio-pro.json 20 Studio Pro features, shortcuts
advanced-patterns.json 18 Complex SDK patterns
performance-guide.json 15 Optimization techniques
security-guide.json 14 Security best practices
sdk-community-resources.json 12 Community links, forums
pluggable-widgets.json 6 NEW! Widget types, hooks, patterns
getting-started.json 4 NEW! Environment setup guides

๐Ÿงช Verified Patterns (v2.5.0)

All SDK and Widget patterns have been live-tested against real Mendix apps in December 2025.

โœ… Platform/Model SDK Patterns (VERIFIED)

These patterns are confirmed working with mendixplatformsdk + mendixmodelsdk:

Pattern Status Notes
Entity creation โœ… All 5 attribute types work
Association creation โœ… Reference type verified
Microflow creation โœ… Start โ†’ LogMessage โ†’ End
model.allDomainModels() โœ… Returns domain model interfaces
model.allMicroflows() โœ… Returns all microflow interfaces
model.flushChanges() โœ… Required before commit
workingCopy.commitToRepository() โœ… Commits to branch

โš ๏ธ Critical API Corrections

Incorrect Pattern Correct Pattern
model.allEntities() Does NOT exist - use domainModel.load().entities
StartEvent.createIn(mf) StartEvent.createIn(mf.objectCollection)
StringTemplate.create(model) StringTemplate.createInLogMessageActionUnderMessageTemplate(logAction)
workingCopy.id() workingCopy.id (it's a property, not a method)

โœ… Widget API Patterns (VERIFIED)

These types compile correctly with mendix@11.5.0:

Core Types: EditableValue, DynamicValue, ActionValue, ListValue, ListAttributeValue, ListActionValue, SelectionSingleValue, ListExpressionValue, ListWidgetValue

React Hooks: useConst, useSetup, useDebounce, useLazyListValue, useSelectionHelper, useOnResetValueEvent, useOnSetValueEvent, useFilterAPI

๐Ÿ“š Getting Started Guides

The knowledge base now includes step-by-step setup guides for:

  1. Platform/Model SDK - Connect to Mendix, create working copies, modify models
  2. Pluggable Widgets - Create custom React widgets for Studio Pro
  3. Studio Pro Extensions - Build C# or web extensions for the IDE
  4. mx.exe Analysis - Local offline analysis of .mpr files

Ask: @mendix-expert "How do I set up SDK development?" or "Getting started with pluggable widgets"


๐Ÿ”„ Auto-Maintenance

The server maintains itself with scheduled tasks:

Task Frequency Purpose
Validation Every 7 days Check knowledge quality
Staleness Check Every 7 days Find outdated entries
Cache Cleanup Daily Clear expired cache
Analytics Reset Every 14 days Archive and reset stats
Knowledge Harvest Every 7 days Crawl Mendix docs for updates

View status via mendix://maintenance resource.


๐Ÿ—บ๏ธ Roadmap

See ROADMAP.md for the enhancement roadmap.

Phase 1: Knowledge Harvester โœ… COMPLETE

  • Auto-crawl Mendix documentation
  • Weekly auto-updates
  • Priority topic targeting (Maia, page variables, etc.)

Phase 2: Vector Search ๐Ÿ”ฎ PLANNED

  • Pinecone integration for semantic search
  • Hybrid keyword + vector search
  • "How do I loop" finds "iteration patterns"

Phase 3: RAG Integration ๐Ÿš€ FUTURE

  • Generated answers with context
  • Source citations
  • Conversation memory

๐Ÿ“ˆ Performance

Current metrics:

  • 92% hit rate - Most queries find relevant results
  • 2ms average response - Near-instant answers
  • 177 indexed entries - Comprehensive coverage
  • 3,157 unique terms - Rich vocabulary

๐Ÿ› ๏ธ Development

Project Structure

mendix-mcp-server/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.js              # Main MCP server
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”œโ”€โ”€ SearchEngine.js   # TF-IDF + fuzzy search
โ”‚   โ”‚   โ”œโ”€โ”€ KnowledgeManager.js
โ”‚   โ”‚   โ”œโ”€โ”€ CacheManager.js
โ”‚   โ”‚   โ”œโ”€โ”€ ProjectLoader.js
โ”‚   โ”‚   โ””โ”€โ”€ QualityScorer.js
โ”‚   โ””โ”€โ”€ utils/
โ”‚       โ”œโ”€โ”€ MaintenanceScheduler.js
โ”‚       โ”œโ”€โ”€ WebFetcher.js
โ”‚       โ””โ”€โ”€ ...
โ”œโ”€โ”€ knowledge/               # Knowledge base JSON files
โ”œโ”€โ”€ config/default.json      # Configuration
โ””โ”€โ”€ package.json

Testing

# Test search
node -e "
const SE = require('./src/core/SearchEngine.js');
const e = new SE(); e.initialize('./knowledge');
console.log(e.search('microflow'));
"

# Validate knowledge
node -e "
const KM = require('./src/core/KnowledgeManager.js');
new KM('./knowledge').validateKnowledgeBase().then(r => console.log(r.summary));
"

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Quick Contribution Ideas

  • ๐Ÿ“š Add knowledge entries for topics you know well
  • ๐Ÿ› Report bugs or unexpected behavior
  • โœจ Suggest new features
  • ๐Ÿ“– Improve documentation

๐Ÿ“‹ Changelog

See CHANGELOG.md for version history.

Recent Updates (v2.5.0) ๐Ÿ†•

  • ๐Ÿงช Verified SDK Patterns - All patterns live-tested against real Mendix apps
  • ๐Ÿ”ง Critical Bug Fixes - Fixed model.allEntities(), StartEvent.createIn(), StringTemplate patterns
  • ๐Ÿ“š Pluggable Widgets Knowledge - 9 widget types, 8 React hooks, filter builders
  • ๐Ÿš€ Getting Started Guides - Step-by-step environment setup for SDK, widgets, extensions
  • ๐Ÿ“– Enhanced Documentation - Verified patterns, API corrections, setup guides

v2.4.1

  • ๐Ÿ”ง Self-Learning Pipeline Fix - add_to_knowledge_base now updates vector store
  • ๐Ÿ”ง Harvester Integration - Auto-harvest now re-indexes vectors after adding new knowledge
  • ๐Ÿ“š Documentation - Updated README with Azure OpenAI setup and maintenance guide

v2.4.0

  • ๐Ÿง  Azure OpenAI Embeddings - 3x faster than standard OpenAI (355ms vs 971ms)
  • ๐Ÿ”ฎ Enhanced Semantic Search - 1536-dimension vectors for better understanding
  • โš–๏ธ Rebalanced Weights - 40% keyword / 60% vector for optimal results
  • ๐Ÿ”„ Embedding Fallback Chain - Azure โ†’ OpenAI โ†’ Local TF-IDF

v2.3.0

  • ๐Ÿ”ฎ Vector Search - Semantic search using Pinecone
  • ๐ŸŽฏ Hybrid Search - Combined keyword + vector with RRF fusion
  • ๐Ÿ“Š 316 Knowledge Vectors - Full knowledge base indexed

v2.2.0

  • ๐ŸŒพ Knowledge Harvester - Auto-crawl Mendix docs for fresh knowledge
  • โœ… Weekly auto-harvest from official documentation
  • โœ… Priority topic targeting (Maia, page variables, workflows 2.0)
  • โœ… Release notes parser for Studio Pro 10.x, 11.x

v2.1.0

  • โœ… Fuzzy search with Levenshtein distance
  • โœ… Analytics tracking with knowledge gap detection
  • โœ… Auto-maintenance scheduler

๐Ÿ”ง Maintenance Guide

Keeping the Knowledge Base Current

The MCP server is designed to be self-maintaining:

Feature How It Works Frequency
Auto-Harvest Crawls docs.mendix.com for new content Weekly (every 7 days)
Self-Learning Saves solutions discovered during research On every discovery
Vector Re-Index Updates semantic embeddings when knowledge changes Automatic

Manual Maintenance Tasks

  1. Trigger Manual Harvest

    @mendix-expert harvest
  2. Re-index Vectors (if search seems off)

    @mendix-expert reindex_vectors
  3. Check Index Health

    @mendix-expert vector_status
  4. Sync with GitHub (if running on multiple machines)

    @mendix-expert sync_mcp_server

Monitoring

  • Hit Rate: Should be >90% (check via @mendix-expert hello)
  • Vector Count: Should match knowledge entry count (~300+)
  • Last Harvest: Check harvest_status - should be <7 days old

Troubleshooting

Issue Fix
Search results seem wrong Run reindex_vectors
Missing new Mendix features Run harvest to fetch latest docs
Slow embeddings Check if Azure OpenAI key is configured (faster than standard OpenAI)
No vector results Built-in Pinecone works automatically; check network connectivity
  • โœ… Web suggestions for missed queries
  • โœ… Staleness detection for old entries
  • โœ… GitHub sync reminder system

๐Ÿ“œ License

MIT License - Use it, modify it, share it!


๐Ÿ™ Acknowledgments

  • Mendix - For the amazing low-code platform
  • Model Context Protocol - For the MCP specification
  • Kelly Seale - Co-creator and Mendix SDK expert

Built with ๐Ÿ’œ for the Mendix community

About

๐Ÿง  Self-learning MCP server for Mendix development - TF-IDF search, fuzzy matching, auto-maintenance, project analysis

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published