Skip to main content

mcp-build-toolchain MCP Server

Advanced build toolchain with compilation error analysis and filtering capabilities

The objective of the MCP is minimize use of tokens to allow LLM model to process the warning and errors of compilation process and fix. So some build log result could result so big to be sent to model.

Using Clinerules can send information to specific project and what to do with results. Also can use a second file where warning and/or errors can be added to avoid the model to try to fix them.

Key Components

MCP Tool: get-compilation-errors

graph TD
    A[get-compilation-errors] --> B[Analyzes build output]
    B --> C[Extracts errors/warnings]
    C --> D[Filters using .clinerules]
    D --> E[Provides structured results]

Key features:

  • Processes raw compilation logs into structured data
  • Integrates with .clinerules for targeted filtering
  • Prioritizes critical errors first
  • Generates actionable remediation steps

.clinerules Configuration

Create .clinerules in project root to control error handling:

Describe how to compile and how to react to the different errors/warnings:

# Files
Command to build/compile: `.\build.cmd`
outfile to read to get warnings and errors result from the compilation: `output_log_file.log`, use absolute path.

# Tasks
- If user request to check or solve compilation errors or warnings follow to following procedure
- In case user request to compile or build use the command: build.cmd *Replace by user command*
- Use mcp server tool "mcp-build-toolchain" function "get-compilation-errors" to get the list of warnings and errors.
- In case the user tells file names, description or regular expression to filter the errors, create the regular expression and use the parameter 'regexp'
- After getting the errors and warnings try to fix them and compile again. Repeat the operation 5 times until no errores are reported.
- Check `docs/avoidable_errors.md` and do nothing with errors or warning reported in this file.
- Filter by default the errors and warnings: "*text to filter errors*" or "*text to filter warnings*"
    - This filter is applied in any position of the line and is case insensitive.
- Don't modify anything furthermore than the needed to fix the errors or warnings.
- If there is a fix that can have different solutions, ask the user for the solution to apply.

Error Documentation

Maintain docs/avoidable_errors.md with common issues:

## Avoidable Warnings
- W0611: Unused import → Remove unused packages
- E302: Expected 2 blank lines → Follow PEP8 spacing

## Ignorable Errors  
- E266: Too many leading '#' → Style preference
- W504: Line break after binary operator → Project-specific

Prompt examples

Configuration

"mcpServers": {
  "mcp-build-toolchain": {
    "command": "uv",
    "args": [
      "--directory",
      "/Users/username/mcp/mcp-build-toolchain",  --> Folder where MCP server is installed
      "run",
      "mcp-build-toolchain"
    ],
    "tools": {
      "get-compilation-errors": {
        "outfile": "build/errors.log"
      }
    }
  }
}

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "mcp-build-toolchain": { "command": "uv", "args": [ "--directory", "/Users/username/mcp/mcp-build-toolchain", "run", "mcp-build-toolchain" ] } } ```
Published Servers Configuration ``` "mcpServers": { "mcp-build-toolchain": { "command": "uvx", "args": [ "mcp-build-toolchain" ] } } ```

Cline

Cline: %APPDATA%/Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json

Metadata

Release files for mcp-build-toolchain 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-build-toolchain 0.1.1
File Size Uploaded Provenance
mcp_build_toolchain-0.1.1.tar.gz 13.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-build-toolchain 0.1.1
File Interpreter ABI Platform
mcp_build_toolchain-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / mcp_build_toolchain-0.1.1.tar.gz

Download URL mcp_build_toolchain-0.1.1.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0c63ce86e99d2a688b853e43ecc49f9c547e97a0b5d2747e704bd1e734d46469
BLAKE2b-256 checksum
How to use checksums
3a3bdf17d178359f9864359d4a37536a45e19100857213b8c2a5fa7cd23eba74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Release files / mcp_build_toolchain-0.1.1-py3-none-any.whl

Download URL mcp_build_toolchain-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2724f4106ed0626ba2e7bcebf50afe296495118ca33d72b138e69ee4317cc3ca
BLAKE2b-256 checksum
How to use checksums
4a95619dce11514a339fb33b3672f037b62d9ab21c8c7510fc33d4fb32ef5003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Security for mcp-build-toolchain 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page