A lightweight MCP server for automating MSBuild projects and solutions builds.
Project description
MSBuild MCP Server
A lightweight MCP (Model Context Protocol) server for automating MSBuild projects and solutions builds. It dynamically locates MSBuild and provides customizable build configuration options.
Features
- Dynamic MSBuild Discovery: Automatically detects the MSBuild executable, ensuring compatibility with various Visual Studio installations.
- Customizable Build Settings: Easily configure build options such as configuration, platform, verbosity level, parallel build CPU count, NuGet restore, and additional command-line arguments through LLM-driven tool invocation.
- Clear Error Reporting: Filters and presents concise, relevant error messages upon build failures.
- MCP Client Compatibility: Supports seamless integration with popular MCP clients such as VSCode, Cursor, Windsurf, and more. Configuration snippets for these clients are provided in the documentation.
- Cross-Language Support: Supports MSBuild-compatible projects, including .sln, .csproj, and .vcxproj files, enabling builds for languages like C#, C++, and more across Windows platforms.
Prerequisites
Ensure the following prerequisites are installed:
- Python 3.11 or higher
- Visual Studio or Visual Studio Build Tools (for MSBuild)
uv(recommended)
Registering the MCP Server
Ensure uv is installed.
In the MCP settings of your AI tools (e.g., Cursor, Windsurf, Claude Desktop, etc.), add the following configuration:
{
"mcpServers": {
"msbuild-mcp-server": {
"command": "uvx",
"args": [
"msbuild-mcp-server@latest"
]
}
}
}
Place this snippet in your client configuration file:
- VSCode:
.vscode/mcp.json - Cursor:
~/.cursor/mcp.jsonor<project-root>/.cursor/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json
Restart your tool to ensure that the msbuild-mcp-server and its provided tools are properly registered.
Agent Prompt Examples
AI agents can trigger builds using natural language like:
-
Basic Project Build
"Build this solution at
C:/Path/To/Project.slnusingRelease|x64." -
Unreal Engine Build
"Build the solution located at
C:/Projects/MyGame/MyGame.slnusingDevelopment Editor|Win64."
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msbuild_mcp_server-0.1.6.tar.gz.
File metadata
- Download URL: msbuild_mcp_server-0.1.6.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ecdbf23799689906cf137f5e2740283fbad3b5eae5b4064047bc91a0d92af4
|
|
| MD5 |
7476092b38b3a4d45a70c22e51cf0f69
|
|
| BLAKE2b-256 |
a32afb5f101b409cc354274ab244c06e04a28ee6d678cacb928200dcfb837afe
|
Provenance
The following attestation bundles were made for msbuild_mcp_server-0.1.6.tar.gz:
Publisher:
publish.yml on zenoengine/msbuild-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
msbuild_mcp_server-0.1.6.tar.gz -
Subject digest:
e4ecdbf23799689906cf137f5e2740283fbad3b5eae5b4064047bc91a0d92af4 - Sigstore transparency entry: 937092783
- Sigstore integration time:
-
Permalink:
zenoengine/msbuild-mcp-server@75edd1937fb0539ae5c7b335e30bc304378832e0 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/zenoengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@75edd1937fb0539ae5c7b335e30bc304378832e0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file msbuild_mcp_server-0.1.6-py3-none-any.whl.
File metadata
- Download URL: msbuild_mcp_server-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80313625d1e531ceaca37dc139a8b5cddcf868b9f54354abf5176e2edc62db0f
|
|
| MD5 |
3e5eaa2e0077197c9b21112336eaaa80
|
|
| BLAKE2b-256 |
e213d9ed4233b8250923c3037c987013d35661b3e88223701ea8fb9765ba20f6
|
Provenance
The following attestation bundles were made for msbuild_mcp_server-0.1.6-py3-none-any.whl:
Publisher:
publish.yml on zenoengine/msbuild-mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
msbuild_mcp_server-0.1.6-py3-none-any.whl -
Subject digest:
80313625d1e531ceaca37dc139a8b5cddcf868b9f54354abf5176e2edc62db0f - Sigstore transparency entry: 937092784
- Sigstore integration time:
-
Permalink:
zenoengine/msbuild-mcp-server@75edd1937fb0539ae5c7b335e30bc304378832e0 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/zenoengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@75edd1937fb0539ae5c7b335e30bc304378832e0 -
Trigger Event:
release
-
Statement type: