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 using the vswhere Python package and provides customizable build configuration options.
Features
- Dynamic MSBuild Discovery: Automatically detects the MSBuild executable using
vswhere, 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.
- Clear Error Reporting: Filters and presents concise, relevant error messages upon build failures.
- MCP Client Compatibility: Integrates seamlessly with MCP clients, including VSCode, Cursor, Windsurf, and more.
- Cross-Language Support: Works with MSBuild-compatible projects (.sln, .csproj, .vcxproj).
Prerequisites
Ensure the following prerequisites are installed:
- Python 3.11 or higher
- Visual Studio or Visual Studio Build Tools (for MSBuild)
uv(recommended)
MCP Client Setup
Use the same configuration snippet for all MCP clients:
{
"mcpServers": {
"msbuild-mcp-server": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"<path/to/cloned/msbuild-mcp-server>",
"run",
"src/msbuild_mcp_server/server.py"
]
}
}
}
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
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.0.tar.gz.
File metadata
- Download URL: msbuild_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa4d3545728e145b9512a082036ac612347457d73c00111060bb26151ad2f135
|
|
| MD5 |
070ae826263edce4a5ffd1daee453edd
|
|
| BLAKE2b-256 |
9b16956da55a37f7206902aa14d3a891c8599fef3b5dd3f5fc9e4288d889812b
|
File details
Details for the file msbuild_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: msbuild_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d41a40df6a52450848f9b9e86ac2d17b633aeb3ad2b62a5813b3b06699d1c250
|
|
| MD5 |
bea4967c4281727d5dfaa4f33d557002
|
|
| BLAKE2b-256 |
af2acbb655a660743316920ae045859794d7b431990b835d4644c0e1f60f2e6b
|