stdout-mcp-server
名前付きパイプシステムを介して標準出力ログをキャプチャおよび管理するモデルコンテキストプロトコル(MCP)サーバー。このサーバーは特に以下の用途に役立ちます。
複数のプロセスまたはアプリケーションからログをキャプチャし、Cursor IDE でデバッグできるようにします。
アプリケーションの出力をリアルタイムで監視し、ログを照会、フィルタリング、分析するための MCP インターフェースを提供します。
仕組み
サーバーは特定の場所に名前付きパイプを作成します (Unix/MacOS の場合は
/tmp/stdout_pipe、Windows の場合は\\.\pipe\stdout_pipe)どのアプリケーションも、標準出力リダイレクトを使用してこのパイプにログを書き込むことができます。例:
サーバーはパイプを監視し、すべての受信ログをキャプチャし、最後の100エントリの履歴を維持します。
MCPツールを使用すると、これらのログを照会、フィルタリング、分析できます。
システム要件
インストールする前に、次のものを用意してください。
Node.js v18以降
インストールオプション
オプション1: カーソルへのインストール
カーソルを開き、
Cursor > Settings > MCP Serversに移動します。「新しいMCPサーバーを追加」をクリックします
次の構成で MCP 設定ファイルを更新します。
オプション2: 他のMCPクライアントへのインストール
他のMCPクライアントへのインストール
macOS/Linuxの場合:
Windowsの場合:
使用例
アプリケーションログのリダイレクト
アプリケーションの出力をパイプに送信するには:
複数のアプリケーションの監視
複数のソースからログをリダイレクトできます。
ログのクエリ
AI は MCP クライアントのget-logsツールを使用してログを取得およびフィルタリングします。
特徴
名前付きパイプの作成と監視
リアルタイムのログキャプチャと保存
MCPツールによるログのフィルタリングと取得
設定可能なログ履歴(デフォルト: 100 エントリ)
クロスプラットフォーム サポート (Windows および Unix ベースのシス��ム)
名前付きパイプの場所
Windows:
\\.\pipe\stdout_pipeUnix/MacOS:
/tmp/stdout_pipe
利用可能なツール
ログを取得する
オプションのフィルタリングを使用して名前付きパイプからログを取得します。
パラメータ:
lines(オプション、デフォルト:50):返されるログ行数filter(オプション):ログをフィルタリングするテキストsince(オプション): ログを取得するタイムスタンプ
応答例:
ライセンス
MITライセンス
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
名前付きパイプを介して stdout ログをキャプチャおよび管理し、アプリケーション出力を Cursor IDE などの AI ツールでクエリおよびデバッグに使用できるようにするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that integrates with Cursor IDE, providing real-time communication, modern web dashboards, and extensible tools via SSE and WebSocket connections.
- AsecurityAlicenseAqualityA Model Context Protocol server that provides programmatic access to the Windows terminal, enabling AI models to interact with the Windows command line through standardized tools for writing commands, reading output, and sending control signals.Last updated -3MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that loads multiple OpenAPI specifications and exposes them to LLM-powered IDE integrations, enabling AI to understand and work with your APIs directly in development tools like Cursor.Last updated -74264MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI tools to automatically log their activities with detailed metrics like timestamps, token usage, and costs into daily markdown worklog files.Last updated -11MIT License