MCP Toolkit

Integrations

  • Enables search capabilities through Brave search API, allowing retrieval of information from the web

  • Provides comprehensive repository management including listing contents, viewing file structure, searching repositories and code, managing repositories (creation, updates, deletion), and viewing file contents

  • Allows connection to MySQL databases, executing queries, and managing transactions for data storage and retrieval

MCP ツールキット

英語 |中国語

概要

MCP Toolkitは、包括的なモデルコンテキストプロトコル(MCP)サーバー実装であり、AIアシスタントがローカルシステム、ファイル、データベース、外部サービスとやり取りするための豊富なツールセットを提供します。セキュリティと制御を維持しながら、AIの機能を現実世界のインタラクションに拡張するように設計されています。

特徴

  • ファイルシステム操作
    • ファイルの読み取りと書き込み
    • ディレクトリの作成と削除
    • 正規表現パターンでファイルを検索する
    • ディレクトリの内容を一覧表示する
    • コード定義の抽出
  • データベース統合
    • MySQLサポート
    • PostgreSQLサポート
    • Redisのサポート
    • トランザクション管理
    • パラメータ化されたクエリ
  • GitHub 統合
    • リポジトリ管理
    • コード検索
    • ファイル操作
    • ツリー構造解析
  • ウェブ機能
    • ウェブページコンテンツの抽出
    • Brave検索の統合
    • HTTPリクエスト処理
    • プロキシサポート
  • システムツール
    • コマンド実行
    • あらゆる検索統合
    • スタックトレース分析
    • ログシステム

インストール

npm install mcp-toolkit

構成

プロジェクトにconfig.jsonファイルを作成します。

{ "workspace": { "rootPath": "/path/to/workspace", "allowedPaths": ["/allowed/path1", "/allowed/path2"] }, "network": { "proxy": "http://proxy-server:port" // Optional }, "database": { "mysql": { "host": "localhost", "port": 3306, "user": "user", "password": "password", "database": "dbname" } // Similar configuration for PostgreSQL and Redis } }

使用法

import { Server } from 'mcp-toolkit'; const server = new Server({ configPath: './config.json' }); server.start();

ツールの詳細

ファイル操作ツール

  • read_file : ファイルの内容を読み取ります。テキストファイルとバイナリファイルをサポート
  • write_to_file : ファイルの書き込みまたは作成
  • apply_diff : ファイルに差分変更を適用する
  • insert_content : 指定された位置にコンテンツを挿入する
  • search_and_replace : ファイルの内容を検索して置換する
  • list_files : ディレクトリの内容を一覧表示する
  • search_files : 正規表現を使用してファイルを検索する
  • list_code_definition_names : コード定義を抽出する

データベースツール

  • db_connect : データベース (MySQL/PostgreSQL/Redis) に接続する
  • db_query : データベースクエリを実行する
  • db_begin_transaction : トランザクションを開始する
  • db_commit_transaction : トランザクションをコミットする
  • db_rollback_transaction : トランザクションのロールバック
  • db_close : データベース接続を閉じる

GitHubツール

  • github_ls : リポジトリの内容を一覧表示する
  • github_tree : リポジトリのツリー構造を表示する
  • github_search_repo : リポジトリを検索する
  • github_search_code : コードを検索
  • github_cat : ファイルの内容を表示する
  • github_list_repos : ユーザーのリポジトリを一覧表示する
  • github_create_repo : リポジトリを作成する
  • github_update_repo : リポジトリ設定を更新する
  • github_delete_repo : リポジトリを削除する

ウェブツール

  • read_webpage : ウェブページのコンテンツを抽出する
  • brave_search : Brave検索を使用する
  • http_request : HTTPリクエストを送信する

システムツール

  • execute_command : システムコマンドを実行する
  • everything_search : ローカルファイル検索
  • logger : ログ記録
  • get_stack_trace : スタックトレースの分析

安全

  • 設定可能なワークスペース制限
  • コマンド実行制御
  • データベースアクセス管理
  • 外部サービス向けのトークンベースの認証

貢献

貢献を歓迎します!詳細については貢献ガイドラインをお読みください。

ライセンス

MITライセンス

-
security - not tested
F
license - not found
-
quality - not tested

AI アシスタントがセキュリティと制御を維持しながら、ファイル システム、データベース、GitHub リポジトリ、Web リソース、システム ツールと対話できるようにする包括的なモデル コンテキスト プロトコル サーバー実装。

  1. Overview
    1. Features
      1. Installation
        1. Configuration
          1. Usage
            1. Tool Details
              1. File Operation Tools
              2. Database Tools
              3. GitHub Tools
              4. Web Tools
              5. System Tools
            2. Security
              1. Contributing
                1. License
                  ID: lhj0b7jlx3