Logo di 用于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.

Autorehrirkslab
Repositorycontext-server-rs
LinguaRust
Fork
2
Stelle
7
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    用于AI代码生成的MCP上下文服务器 mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    7 stelle e 2 fork nel repository collegato.

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.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

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

Usa MCP 用于AI代码生成的MCP上下文服务器 con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso 用于AI代码生成的MCP上下文服务器, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

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

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di 用于AI代码生成的MCP上下文服务器.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "hrirkslab-context-server-rs": {
      "command": "npx",
      "args": [
        "-y",
        "context-server-rs"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di 用于AI代码生成的MCP上下文服务器, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di 用于AI代码生成的MCP上下文服务器.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare 用于AI代码生成的MCP上下文服务器 per aiutarmi con questa attività?
用于AI代码生成的MCP上下文服务器
Certo. Ho letto.
Ecco cosa ho trovato con 用于AI代码生成的MCP上下文服务器.

Domande frequenti

A cosa serve il server MCP 用于AI代码生成的MCP上下文服务器?

用于AI代码生成的MCP上下文服务器 è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare 用于AI代码生成的MCP上下文服务器 MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare 用于AI代码生成的MCP上下文服务器 con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP 用于AI代码生成的MCP上下文服务器 con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando 用于AI代码生成的MCP上下文服务器, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego 用于AI代码生成的MCP上下文服务器 MCP a TypingMind?

用于AI代码生成的MCP上下文服务器 funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre 用于AI代码生成的MCP上下文服务器 MCP in TypingMind?

用于AI代码生成的MCP上下文服务器 mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare 用于AI代码生成的MCP上下文服务器 MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se 用于AI代码生成的MCP上下文服务器 richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇