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_pipe
- Unix/MacOS:
/tmp/stdout_pipe
利用可能なツール
ログを取得する
オプションのフィルタリングを使用して名前付きパイプからログを取得します。
パラメータ:
lines
(オプション、デフォルト:50):返されるログ行数filter
(オプション):ログをフィルタリングするテキストsince
(オプション): ログを取得するタイムスタンプ
応答例:
ライセンス
MITライセンス
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
名前付きパイプを介して stdout ログをキャプチャおよび管理し、アプリケーション出力を Cursor IDE などの AI ツールでクエリおよびデバッグに使用できるようにするモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to explore and interact with Cursor IDE's SQLite databases, providing access to project data, chat history, and composer information.Last updated -10Python
- 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 -3JavaScriptMIT License
- AsecurityFlicenseAqualityA starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.Last updated -169TypeScript
- -securityFlicense-qualityA Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.Last updated -19TypeScript