本文へ移動
cccskills
無料GitHub で公開日本語紹介

troubleshoot-binlog-mcp

dotnet-msbuildのbinlog MCPが起動・接続できない原因を、SDKやパッケージ配信元、起動ログから調べ、組織の設定方針を守った復旧方法を整理します。

原文原文の説明を見る

Diagnose dotnet-msbuild binlog MCP startup failures. USE FOR: CONNECTION_CLOSED, binlog server won't connect, missing binlog tools, Microsoft.AITools.BinlogMcp not found, dnx launch errors. Checks workspace SDK, feeds, and source mapping without bypassing policy. DO NOT USE FOR: errors inside a binlog (use binlog-failure-analysis), capturing binlogs (use binlog-generation), unrelated MCP servers.

インストール方法を見る

こんなときに便利

  • 起動時のCONNECTION_CLOSED調査
  • SDK選択とパッケージ配信元の確認
  • Microsoft.AITools.BinlogMcp取得失敗の調査
  • 復旧後のbinlogツール認識確認

日本語での紹介

できること

dotnet-msbuildのbinlog MCPサーバーが起動・接続できない原因を調べます。MCPはエージェントと外部ツールをつなぐ仕組みです。起動ログ、作業場所で選ばれるSDK、NuGetのパッケージ配信元や取得先の対応設定を確認し、根拠に合った最小限の復旧策を整理します。パッケージの発見と接続成功を区別し、ホスト側でのツール一覧取得まで確認します。

こんなときに便利

CONNECTION_CLOSEDが出る、binlog用ツールが見つからない、dnxの起動に失敗する場合に向いています。ビルドの実行やbinlogファイルの用意は不要です。

使い方の例

  • 「binlog MCPが接続できません。起動ログとSDKの選択を確認して原因を調べて」
  • 「社内のNuGet配信元を使ったまま復旧する方法を整理して」

注意点

標準の起動コマンドには.NET 10以上のSDKが必要です。設定変更やSDKの固定設定の変更には利用者の承認を求めます。ログが見えない場合は診断の限界を示します。ビルドログ内のエラー解析やログの取得、別のMCPサーバーは対象外です。ライセンスはMITです。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md7.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Troubleshoot Binlog MCP Startup

Explain why the plugin's binlog MCP server cannot connect and give an evidence-based, policy-safe recovery. This diagnoses the server launch, not failures recorded in a build. No binlog file or project build is needed.

This skill runs on demand. It cannot see a host error that was never exposed to the agent, inject session-start context, or guarantee activation merely because a plugin was installed.

1. Establish what failed

Use the user's error and any host MCP status or startup logs already available. CONNECTION_CLOSED alone says that the transport closed, not why. Do not translate it directly into "package missing."

  • If the binlog server is connected and its tools are discoverable, stop startup troubleshooting. Continue the original binlog analysis; do not change a working setup.
  • If the plugin's skills loaded but its binlog server did not, continue below.
  • If the plugin itself is not installed/enabled or no server is registered, address that host configuration first. Do not diagnose NuGet package resolution without a launch attempt.
  • If execution or host logs are unavailable, explain that limit and give the next command for the user to run. Never claim to have inspected logs or repaired a connection.

2. Match the host's workspace and SDK

Discover the affected workspace directory and the host's actual MCP command, arguments, and environment from available configuration. The shipped command is:

dotnet dnx Microsoft.AITools.BinlogMcp --yes --prerelease

Run diagnostics from that workspace with the host's environment, not from the plugin directory or a temporary directory with different NuGet settings. Inspect:

dotnet --info
dotnet --version
dotnet nuget list source

Check the applicable global.json and inherited NuGet configuration, including parent/user configuration, clear, disabled sources, and packageSourceMapping. A workspace clear can replace the default nuget.org source with a private mirror that lacks this package. An installed SDK is not necessarily the SDK selected in this directory. The shipped dotnet dnx command requires a .NET 10+ SDK.

Do not dump credential settings, private feed URLs, tokens, or credential-provider output into the answer. Inspect locally as needed and report a redacted source label and relevant error.

3. Capture the real launch error

Prefer an existing startup log from the failing host. Otherwise reproduce its unchanged launch command once, from the affected workspace, capturing both stdout and stderr plus the exit code. Do not initially add --source, replace the configuration, remove global.json, clear caches, or install another copy: those change the conditions being diagnosed.

A stdio MCP server may remain running waiting for protocol input. Keep stdin open while observing startup and use a bounded execution (for example, 30 seconds) with cleanup of only the diagnostic process tree, including credential-provider children. Use the host's supported timeout/cancellation facility; if it cannot safely clean up, ask the user to run the command locally instead. Do not leave a background server running or kill unrelated dotnet processes. A timeout, silence, or an open process is not proof that MCP initialized.

Only if package availability remains unclear, run this supporting probe under the same workspace settings with a bounded execution:

dotnet package search Microsoft.AITools.BinlogMcp --exact-match --prerelease --format json

Inspect the exact package ID and version in searchResult[].packages, and check both top-level and per-source problems. Exit code zero alone does not establish a successful search.

Observed evidenceDiagnosis and next action
dnx reports no matching version in the configured feedsThose settings did not resolve the package. Check whether the approved mirror provides prerelease versions of this exact package.
Search returns no packages and no source problemsOnly the searched feeds lack a listed match. This is not proof that dnx must fail: a cached tool or unlisted version may still work.
Search has top-level/per-source problems, HTTP 401/403, TLS, network, or credential-provider errorsAvailability is unverified, not "package missing." Address the specific feed/access failure first, even if search exited zero.
Search finds the package but dnx failsFollow the launch error. Search does not apply package source mapping; check mapping, restore/download access, and runtime requirements. Do not declare the connection healthy.
Missing dotnet, unrecognized dnx, or SDK selection errorFix the host's PATH/SDK selection. Account for global.json; do not silently upgrade the repository or remove its SDK pin.
Timeout, unsupported search command, or malformed/non-JSON outputReport an inconclusive probe. Use launch logs or a user-run diagnostic; do not infer absence or success.
Launch succeeds but host connection still failsInvestigate the host's actual command/environment and MCP initialization logs; package discovery is no longer the demonstrated failure.

Do not repeat expensive probes once the evidence establishes the next action.

4. Choose a policy-safe recovery

Recommend the smallest change supported by the observed failure:

  • Have the feed owner mirror Microsoft.AITools.BinlogMcp and its required versions/dependencies into an approved feed, or correct an approved mapping that excludes it.
  • Repair the approved feed's authentication, connectivity, or certificate configuration when that is the observed problem. Never suggest disabling certificate validation.
  • Add nuget.org only if organizational policy permits and the user approves the change. Do not remove clear, disable source mapping, or override sources to bypass enterprise policy.
  • If appropriate and approved, install the tool from an approved feed and register its binlog-mcp executable with the host as an alternative MCP server. Confirm the executable's path and avoid registering a duplicate server. Installation alone is not connection recovery.
  • For SDK/PATH issues, make the required SDK available to the host or use a deliberately configured alternative launch. Ask before changing repository SDK selection.

Do not edit NuGet settings, host registration, or SDK pins without the user's approval. If policy prevents recovery, say so. For an existing binlog, offer the text-log replay fallback in binlog-failure-analysis rather than blocking build diagnosis on MCP repair.

5. Verify and report

After an approved change, reconnect/restart the server using the host's supported controls. Confirm MCP initialization and a tool listing that contains binlog tools such as binlog_overview. If a binlog is available, resume the original analysis.

Report the observed cause (or what remains unknown), the relevant redacted evidence, the smallest recovery, and what was actually verified. End with one status line:

MCP status: connected

Use connected only after the host discovers the server's tools, failed for an observed launch/connection failure, and unverified when only probes or advice are available. Never substitute "package found" or "tool installed" for a verified MCP connection.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

agentic-workflows

無料概要あり

GitHub Agentic Workflowsの設計・作成・更新・不具合調査などの依頼を分類し、作業に合った外部のプロンプトやガイドへ振り分けるスキル。

  • 聞き取りからワークフローを設計したいとき
  • 新規作成や更新のガイド選び
  • 不具合調査や更新手順を探したいとき
dotnet/skills5,6952026年10月21日 更新

C#/.NETコードの非同期処理、文字列、コレクションなど約50種の性能上の問題を調べ、検出件数と重要度、具体的な修正案をまとめるスキル。

  • 頻繁に実行されるC#コードの見直し
  • 不要なメモリ確保を探したいとき
  • リリース前の性能上の問題の点検
dotnet/skills5,6952026年10月21日 更新

Androidのクラッシュ記録にある.NETランタイムのアドレスを、デバッグシンボルを使って関数名・ソースファイル・行番号へ変換し、調査の手がかりを整理します。

  • .NET MAUIやMonoのクラッシュ調査
  • libmonosgen-2.0.so等の位置解決
  • ランタイム由来のSIGABRTやSIGSEGV調査
dotnet/skills5,6952026年10月21日 更新

apple-crash-symbolication

無料概要あり

Apple向け.NETアプリのクラッシュログを解析し、実行時のアドレスを関数名・ソースファイル・行番号に変換して、障害箇所の調査を支援するスキル。

  • Apple向け.NETアプリの障害調査
  • 実行時アドレスをソース行に変換したいとき
  • 接続したiPhoneのログ取得
dotnet/skills5,6952026年10月21日 更新

assertion-quality

無料概要あり

既存テストの検証内容を12種類に分類し、件数や偏りを分析します。値の存在確認だけのテストや検証の抜けを見つけ、具体的な改善案をまとめるスキルです。

  • 通るテストの検証内容を見直したいとき
  • 検証なし・自明なテストの洗い出し
  • テスト全体の検証の偏りを測りたいとき
dotnet/skills5,6952026年10月21日 更新

author-component

無料概要あり

Blazorの画面部品を作成・レビューし、親子間のデータやイベントの受け渡し、非同期処理、表示状態の分岐、終了時の後片付けまで構成を整えるスキル。

  • 再利用するBlazorの画面部品の作成
  • 親子間のデータ・イベント設計の見直し
  • 連続操作の間引きや定期更新の実装
dotnet/skills5,6952026年10月21日 更新

dotnet のスキルをすべて見る

このスキルの問題を報告する