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

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

コミュニティ
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.

公開者hrirkslab
リポジトリcontext-server-rs
言語Rust
フォーク
2
スター
7
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    用于AI代码生成的MCP上下文服务器は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには7件のスターと2件のフォークがあります。

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.

インストール

TypingMind
前提条件:

Node.js 18+

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

用于AI代码生成的MCP上下文服务器のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度用于AI代码生成的MCP上下文服务器に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

用于AI代码生成的MCP上下文服务器をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. 用于AI代码生成的MCP上下文服务器のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "hrirkslab-context-server-rs": {
      "command": "npx",
      "args": [
        "-y",
        "context-server-rs"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いて用于AI代码生成的MCP上下文服务器のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. 用于AI代码生成的MCP上下文服务器のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
用于AI代码生成的MCP上下文服务器を使ってこのタスクを手伝ってもらえますか?
用于AI代码生成的MCP上下文服务器
はい、読みました。
用于AI代码生成的MCP上下文服务器で調べた結果をお伝えします。

よくある質問

用于AI代码生成的MCP上下文服务器 MCPサーバーは何に使いますか?

用于AI代码生成的MCP上下文服务器は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindで用于AI代码生成的MCP上下文服务器 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルで用于AI代码生成的MCP上下文服务器を利用できます。

TypingMindで用于AI代码生成的MCP上下文服务器 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。用于AI代码生成的MCP上下文服务器を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

用于AI代码生成的MCP上下文服务器 MCPをTypingMindに接続するにはどうすればよいですか?

用于AI代码生成的MCP上下文服务器はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindで用于AI代码生成的MCP上下文服务器 MCPのどのようなツールを利用できますか?

用于AI代码生成的MCP上下文服务器はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

用于AI代码生成的MCP上下文服务器 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。用于AI代码生成的MCP上下文服务器で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇