icon for mcp server

MSBuild 构建日志

STDIO

MSBuild日志分析MCP服务器

Binlog MCP Server

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

Features

The server provides comprehensive tools for analyzing MSBuild binary logs, including:

  • Target Analysis: Identify expensive targets, search for specific targets across projects, and analyze target execution times
  • Project Analysis: Calculate project build times, find the most expensive projects, and analyze all targets in a project at once
  • Evaluation Analysis: List project evaluations, inspect global properties, and identify potential overbuilding issues
  • File Access: List and retrieve source files embedded in binary logs
  • Performance: Intelligent caching ensures fast queries even on large binlogs

See PACKAGE_README.md for detailed tool documentation.

Setup

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>\\binlog.mcp\\bin\\Debug\\net9.0\\binlog.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>\\binlog.mcp\\bin\\Debug\\net9.0\\binlog.mcp.exe", "args": [], "env": {} } } } }

Cortex App 重磅来袭,抢先一步体验