Logo van 用于AI代码生成的MCP上下文服务器

用于AI代码生成的MCP上下文服务器

Community
hrirkslab

A Rust-based Model Context Protocol (MCP) server for AI code generation. Solves the context engineering problem by organizing and serving structured context from a local SQLite database to LLMs and AI tools. Fast, standards-based, and easy to run locally.

Uitgeverhrirkslab
Repositorycontext-server-rs
TaalRust
Forks
2
Sterren
7
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    用于AI代码生成的MCP上下文服务器 biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    7 sterren en 2 forks in de gekoppelde repository.

Professional Context Engine

A comprehensive context management system for AI-powered development, featuring both a Rust-based MCP server and a VS Code extension for intelligent context assistance.

🚀 Quick Start

MCP Context Server

bash
# Build and run the MCP server
cargo run --release

# Or simply run (default mode)
context-server-rs

CLI Mode (OpenClaw Integration)

bash
# Query contexts by task
context-server-rs query --task auth --project myapp --format json

# List all business rules
context-server-rs list business_rule --project myapp

# Search for "pagination"
context-server-rs search "pagination" --project myapp

# Get specific context by ID
context-server-rs get "rule-123" --project myapp

See CLI Usage Guide for complete documentation. Perfect for OpenClaw agent integration and programmatic access.

VS Code Extension

bash
# Build the VS Code extension
./scripts/build-extension.sh  # Linux/Mac
# or
.\scripts\build-extension.ps1  # Windows

# Install the extension
code --install-extension vscode-extension/professional-context-engine-1.0.0.vsix

📦 Repository Structure

├── src/                          # Rust MCP server source code
│   ├── api/                      # HTTP API endpoints
│   ├── context/                  # Context management logic
│   ├── db/                       # Database layer
│   ├── models/                   # Data models
│   ├── repositories/             # Data access layer
│   └── services/                 # Business logic services
├── vscode-extension/             # VS Code extension
│   ├── src/                      # TypeScript source code
│   ├── INSTALLATION.md           # Installation guide
│   ├── QUICK_START.md            # Quick setup guide
│   └── README.md                 # Extension documentation
├── docs/                         # Project documentation
├── examples/                     # Usage examples
├── tests/                        # Integration tests
├── scripts/                      # Build and utility scripts
│   ├── build-extension.sh         # Extension build script (Linux/Mac)
│   ├── build-extension.ps1        # Extension build script (Windows)
└── README.md                     # This file

🎯 Features

MCP Context Server

  • Model Context Protocol (MCP) compliant - Works with Claude Desktop, Cursor IDE, and other MCP clients
  • Intelligent context management - Store, query, and analyze project context
  • Real-time synchronization - WebSocket support for live updates
  • Advanced search - Semantic and full-text search capabilities
  • Plugin architecture - Extensible with custom plugins
  • Multi-project support - Manage context across multiple projects

CLI Interface (NEW!)

  • Dual-mode binary - Runs as MCP server or CLI tool automatically
  • OpenClaw integration - Designed for autonomous agent workflows
  • Multiple output formats - JSON (programmatic), Text (terminal), YAML (config)
  • Fast query execution - ~10-500ms per context query from database
  • SOLID architecture - Trait-based design for extensibility
  • Command types - Query (task-based), List (type-based), Search (full-text), Get (ID-based)

See CLI Quick Reference and OpenClaw Integration Guide

VS Code Extension

  • Real-time context suggestions - Hover and code action providers
  • Intelligent file monitoring - Automatic analysis of code changes
  • Context creation - Create context entries from selected code
  • Project insights - Analytics dashboard for context health
  • Team collaboration - Real-time synchronization across team members
  • Custom analysis rules - Configure project-specific context extraction

🔧 Installation & Setup

Prerequisites

  • Rust 1.70+ (for MCP server)
  • Node.js 16+ (for VS Code extension)
  • VS Code 1.74+ (for extension)

MCP Context Server

  1. Clone and build:

    bash
    git clone <repository-url>
    cd professional-context-engine
    cargo build --release
  2. Run the server:

    bash
    cargo run --release
  3. Configure MCP clients (see MCP Integration Guide)

VS Code Extension

  1. Build the extension:

    bash
    # Linux/Mac
    ./scripts/build-extension.sh
    
    # Windows
    .\scripts\build-extension.ps1
  2. Install in VS Code:

    bash
    code --install-extension vscode-extension/professional-context-engine-1.0.0.vsix
  3. Configure the extension:

    • Open VS Code Settings (Ctrl+,)
    • Search for "Context Engine"
    • Set server URL to http://localhost:3000

For detailed setup instructions, see:

🔌 MCP Integration

Claude Desktop

Add to your Claude Desktop configuration:

Windows: %APPDATA%\Claude\claude_desktop_config.json macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "context-server": {
      "command": "path/to/your/context-server-executable",
      "args": [],
      "env": {}
    }
  }
}

Cursor IDE

Configure in Cursor's MCP settings:

json
{
  "mcpServers": {
    "context-server": {
      "command": "cargo",
      "args": ["run", "--release"],
      "cwd": "/path/to/professional-context-engine"
    }
  }
}

🛠️ Development

Building from Source

bash
# Build MCP server
cargo build --release

# Build VS Code extension
cd vscode-extension
npm install
npm run compile
npx vsce package

Running Tests

bash
# Run Rust tests
cargo test

# Run VS Code extension tests
cd vscode-extension
npm test

Development Workflow

  1. MCP Server Development:

    bash
    # Run in development mode
    cargo run
    
    # Run with debug logging
    RUST_LOG=debug cargo run
  2. VS Code Extension Development:

    bash
    cd vscode-extension
    npm run watch  # Compile in watch mode
    # Then press F5 in VS Code to launch extension host

📚 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass
  6. Submit a pull request

See CONTRIBUTING.md for detailed guidelines.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

  • Issues: Report bugs and request features via [GitHub Issues]
  • Documentation: Check the docs/ directory
  • Examples: See examples/ for usage examples

🎯 Roadmap

  • Enhanced semantic search capabilities
  • Additional IDE integrations (IntelliJ, Vim)
  • Cloud deployment options
  • Advanced analytics and reporting
  • Machine learning-powered context suggestions

Built with ❤️ for developers who love intelligent, context-aware coding assistance.

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "mcpServers": {
    "hrirkslab-context-server-rs": {
      "command": "",
      "args": []
    }
  }
}

Gebruik 用于AI代码生成的MCP上下文服务器 MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra 用于AI代码生成的MCP上下文服务器 is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg 用于AI代码生成的MCP上下文服务器 toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van 用于AI代码生成的MCP上下文服务器.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "hrirkslab-context-server-rs": {
      "command": "npx",
      "args": [
        "-y",
        "context-server-rs"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van 用于AI代码生成的MCP上下文服务器 in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van 用于AI代码生成的MCP上下文服务器 in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je 用于AI代码生成的MCP上下文服务器 gebruiken om me hiermee te helpen?
用于AI代码生成的MCP上下文服务器
Zeker. Ik heb het gelezen.
Dit vond ik met 用于AI代码生成的MCP上下文服务器.

Veelgestelde vragen

Waarvoor wordt de MCP-server 用于AI代码生成的MCP上下文服务器 gebruikt?

用于AI代码生成的MCP上下文服务器 is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik 用于AI代码生成的MCP上下文服务器 MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je 用于AI代码生成的MCP上下文服务器 gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom 用于AI代码生成的MCP上下文服务器 MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als 用于AI代码生成的MCP上下文服务器 verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik 用于AI代码生成的MCP上下文服务器 MCP met TypingMind?

用于AI代码生成的MCP上下文服务器 werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt 用于AI代码生成的MCP上下文服务器 MCP in TypingMind?

用于AI代码生成的MCP上下文服务器 biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om 用于AI代码生成的MCP上下文服务器 MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als 用于AI代码生成的MCP上下文服务器 authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇