MCP差異ログ
会話構造における統計的な変動を検出し、異常なイベントをSQLiteデータベースに記録するエージェントツールです。モデルコンテキストプロトコル(MCP)を使用して構築されたこのシステムは、Claude Desktopやその他のMCP互換クライアントで使用できるように設計されています。
要件
- Python ≥3.10
- MCP ≥1.2.0
- SQLite3
- UV (Python パッケージインストーラーおよび環境マネージャー)
クイックスタート
Claude Desktop 構成 (Windows の場合は%APPDATA%\Claude\claude_desktop_config.json
) に追加します。
Claude Desktop の設定に追加:
使用法
自動ログの例
データフレームビュー
テキスト2 SQL
詳細なインストール
- Python 3.10+ と UV がインストールされていることを確認してください。
次のいずれかの方法で UV をインストールします。
- クローンしてインストール:
- Claude デスクトップを設定します。
claude_desktop_config.json
に追加:
設定場所:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
ツール
監視
log-query
: 会話パターンを追跡する- 高: 一般的なインタラクション(ログに記録されない)
- 中: 異常なパターン(ログに記録)
- 低: 重大なイベント(優先度が記録される)
クエリ
read-logs
: フィルタリングしてログを表示するread_query
: SELECTクエリを実行するwrite_query
: INSERT/UPDATE/DELETEを実行するcreate_table
: テーブルを作成するlist_tables
: すべてのテーブルを表示describe_table
: テーブル構造を表示する
インストールを基準としたdata/varlog.db
にあります。
スキーマ
トラブルシューティング
- データベースアクセス
- エラー:「データベースへの接続に失敗しました」
- ファイルの権限を確認する
- 設定内のパスを確認する
/data
ディレクトリが存在することを確認する
- インストールの問題
- エラー:「'mcp' という名前のモジュールがありません」
- 実行:
uv pip install mcp>=1.2.0
- 実行:
- エラー:「UV コマンドが見つかりません」
- UV をインストールします:
curl -LsSf https://astral.sh/uv/install.sh | sh
- UV をインストールします:
- 構成
- エラー:「MCP サーバーの起動に失敗しました」
- config.json の構文を確認する
- パス区切り文字を確認する(Windowsでは\を使用)
- UVがシステムPATHにあることを確認する
貢献
- リポジトリをフォークする
- 機能ブランチを作成する
- プルリクエストを送信する
ライセンス
マサチューセッツ工科大学
サポート
問題: GitHub の問題
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
会話構造における統計的な変動を検出し、異常なイベントをSQLiteデータベースに記録するエージェントツールです。モデルコンテキストプロトコル(MCP)を使用して構築されたこのシステムは、Claude Desktopやその他のMCP互換クライアントで使用できるように設計されています。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityModel Context Protocol (MCP) server that integrates Redash with AI assistants like Claude, allowing them to query data, manage visualizations, and interact with dashboards through natural language.Last updated -105316JavaScript
- -securityFlicense-qualityManages AI conversation context and personal knowledge bases through the Model Context Protocol (MCP), providing tools for user data, conversation content, and knowledge management.Last updated -1TypeScript
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI agents like Claude to interact with the Aligo SMS API to send text messages and retrieve related information.Last updated -JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that extends AI agents' context window by providing tools to store, retrieve, and search memories, allowing agents to maintain history and context across long interactions.Last updated -5TypeScriptMIT License