|
1 | 1 | # Zig MCP Server |
2 | 2 | [](https://smithery.ai/server/zig-mcp-server) |
3 | 3 |
|
4 | | -A Model Context Protocol (MCP) server that provides Zig language tooling, code analysis, and documentation access. This server enhances AI capabilities with Zig-specific functionality including code optimization, compute unit estimation, code generation, and best practices recommendations. |
| 4 | +**Modern Zig AI 10x dev assistant with comprehensive build system support** |
| 5 | + |
| 6 | +A powerful Model Context Protocol (MCP) server that provides comprehensive Zig language assistance, including modern build system support, code optimization, and best practices guidance. |
5 | 7 |
|
6 | 8 | <a href="https://glama.ai/mcp/servers/oxiw2bsb15"><img width="380" height="200" src="https://glama.ai/mcp/servers/oxiw2bsb15/badge" alt="Zig Server MCP server" /></a> |
7 | 9 |
|
| 10 | +## 🚀 What's New in v0.2.0 |
| 11 | + |
| 12 | +- **🏗️ Modern Build System Support**: Generate and analyze build.zig files with Zig 0.12+ patterns |
| 13 | +- **📦 Dependency Management**: Create build.zig.zon files for modern package management |
| 14 | +- **🔧 Enhanced Code Analysis**: Improved optimization suggestions and pattern detection |
| 15 | +- **🧪 Comprehensive Testing**: 85+ test cases with full coverage reporting |
| 16 | +- **⚡ Better Performance**: Modular architecture with improved error handling |
| 17 | +- **📚 Extended Documentation**: Build system troubleshooting and best practices guides |
| 18 | + |
| 19 | +## 🛠️ Features |
| 20 | + |
| 21 | +### 🏗️ Build System Tools (NEW!) |
| 22 | + |
| 23 | +#### 1. Build System Generation (`generate_build_zig`) |
| 24 | +Generate modern build.zig files with Zig 0.12+ patterns: |
| 25 | +- Cross-compilation support |
| 26 | +- Modern dependency management |
| 27 | +- Test and documentation integration |
| 28 | + |
| 29 | +#### 2. Build System Analysis (`analyze_build_zig`) |
| 30 | +Analyze existing build files and get modernization recommendations: |
| 31 | +- Detect deprecated patterns |
| 32 | +- Suggest Zig 0.12+ alternatives |
| 33 | +- Identify missing best practices |
| 34 | + |
| 35 | +#### 3. Dependency Management (`generate_build_zon`) |
| 36 | +Generate build.zig.zon files for modern package management: |
| 37 | +- Popular Zig packages catalog |
| 38 | +- Version management guidance |
| 39 | +- Best practices documentation |
| 40 | + |
8 | 41 | ## Features |
9 | 42 |
|
10 | 43 | ### Tools |
11 | 44 |
|
12 | 45 | #### 1. Code Optimization (`optimize_code`) |
13 | | -Analyzes and optimizes Zig code with support for different optimization levels: |
14 | | -- Debug |
15 | | -- ReleaseSafe |
16 | | -- ReleaseFast |
17 | | -- ReleaseSmall |
| 46 | +Enhanced with modern Zig patterns and build mode analysis: |
| 47 | +- Debug, ReleaseSafe, ReleaseFast, ReleaseSmall |
| 48 | +- Modern optimization suggestions |
| 49 | +- Zig 0.12+ pattern recommendations |
18 | 50 |
|
19 | 51 | ```typescript |
20 | 52 | // Example usage |
|
0 commit comments