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

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

Publisherhrirkslab
Repositorycontext-server-rs
LanguageRust
Forks
2
Stars
7
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    用于AI代码生成的MCP上下文服务器 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    7 stars and 2 forks from the linked 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.

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use 用于AI代码生成的MCP上下文服务器 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 用于AI代码生成的MCP上下文服务器 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 用于AI代码生成的MCP上下文服务器 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 用于AI代码生成的MCP上下文服务器 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "hrirkslab-context-server-rs": {
      "command": "npx",
      "args": [
        "-y",
        "context-server-rs"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 用于AI代码生成的MCP上下文服务器 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 用于AI代码生成的MCP上下文服务器 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 用于AI代码生成的MCP上下文服务器 to help me with this task?
用于AI代码生成的MCP上下文服务器
Sure. I read it.
Here is what I found using 用于AI代码生成的MCP上下文服务器.

Frequently asked questions

What is the 用于AI代码生成的MCP上下文服务器 MCP server used for?

用于AI代码生成的MCP上下文服务器 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 用于AI代码生成的MCP上下文服务器 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 用于AI代码生成的MCP上下文服务器 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 用于AI代码生成的MCP上下文服务器 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 用于AI代码生成的MCP上下文服务器 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 用于AI代码生成的MCP上下文服务器 MCP to TypingMind?

用于AI代码生成的MCP上下文服务器 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does 用于AI代码生成的MCP上下文服务器 MCP provide in TypingMind?

用于AI代码生成的MCP上下文服务器 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 用于AI代码生成的MCP上下文服务器 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 用于AI代码生成的MCP上下文服务器 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇