mcp-binlog-tool

mcp-binlog-tool

2

This project is a demo of a Model Context Protocol Server designed to analyze MSBuild projects. It provides tools and prompts that can be used with various MCP servers, making it versatile for developers utilizing Claude or VSCode.

MSBuild MCP Demo

This is a simple demo of a Model Context Protocol Server (MCP) that exposes tools and prompts for analyzing MSBuild projects to any MCP server.

To configure this:

  1. build the repo with dotnet build in the msbuild.mcp directory
  2. configure Claude or VSCode to use the server
  3. launch your server app and have fun!

To locally debug, use npx to run the Model Context Protocol inspector::

npx @modelcontextprotocol/inspector ./bin/Debug/net9.0/msbuild.mcp

Claude

{
  "mcpServers": {
    "msbuild": {
      "command": "<your repo root>\\msbuild.mcp\\bin\\Debug\\net9.0\\msbuild.mcp.exe"
    }
  }
}

VSCode

If you have Claude configured already, you can tell VSCode to use the same settings by adding the following to your settings.json:

  "chat.mcp.discovery.enabled": true,

otherwise, you can configure the server directly:

{
    "mcp": {
        "inputs": [],
        "servers": {
            "msbuild": {
                "command": "<repo root>\\msbuild.mcp\\bin\\Debug\\net9.0\\msbuild.mcp.exe",
                "args": [],
                "env": {}
            }
        }
    }
}