
emanuelemeazzo/dax-formatter-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
An MCP Server to use SQLBI DAX Formatter with AI agents
Обзор
A Model Context Protocol (MCP) server that provides DAX (Data Analysis Expressions) formatting capabilities to AI assistants and other MCP clients. This server integrates with the official DAX Formatter service by SQLBI to deliver professional-grade DAX code formatting. - : Format individual DAX expressions with professional standards - : Format multiple DAX expressions in a single efficient request - : Control line length, spacing, separators, and more - : Robust error handling with detailed error messages - : Automatic fallback to individual formatting if batch processing fails - : Support for database and server context (anonymized for privacy) - .NET 8.0 Runtime or higher - Internet connection (communicates with daxformatter.com) - MCP-compatible client (Claude Desktop, Continue, or custom MCP client) 1. Download the latest release from the Releases page 2. Extract the archive to your preferred location 3.
README
Показан фрагмент оригинального README. Открыть оригинал.
DAX Formatter MCP Server
A Model Context Protocol (MCP) server that provides DAX (Data Analysis Expressions) formatting capabilities to AI assistants and other MCP clients. This server integrates with the official DAX Formatter service by SQLBI to deliver professional-grade DAX code formatting.
🚀 Features
- Single DAX Expression Formatting: Format individual DAX expressions with professional standards
- Batch Processing: Format multiple DAX expressions in a single efficient request
- Comprehensive Formatting Options: Control line length, spacing, separators, and more
- Error Handling: Robust error handling with detailed error messages
- Fallback Mechanisms: Automatic fallback to individual formatting if batch processing fails
- Database Context: Support for database and server context (anonymized for privacy)
📋 Prerequisites
- .NET 8.0 Runtime or higher
- Internet connection (communicates with daxformatter.com)
- MCP-compatible client (Claude Desktop, Continue, or custom MCP client)
🛠️ Installation
Option 1: Download Release (Recommended)
- Download the latest release from the Releases page
- Extract the archive to your preferred location
- Note the path to the executable for configuration
Option 2: Build from Source
# Clone the repository
git clone https://github.com/EmanueleMeazzo/dax-formatter-mcp.git
cd dax-formatter-mcp
# Build the project
dotnet build --configuration Release
# The executable will be in bin/Release/net8.0/
⚙️ Configuration
Claude Desktop
Add the following to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"dax-formatter": {
"command": "path/to/dax-formatter-mcp.exe",
"args": []
}
}
}
Continue IDE Extension
Add to your Continue configuration:
{
"mcpServers": [
{
"name": "dax-formatter",
"command": "path/to/dax-formatter-mcp.exe",
"args": []
}
]
}
Generic MCP Client
For any MCP client supporting the MCP 2024-11-05 protocol:
{
"servers": [
{
"name": "dax-formatter",
"transport": {
"type": "stdio",
"command": "path/to/dax-formatter-mcp.exe",
"args": []
}
}
]
}
Using with .NET Runtime
If you prefer to use the DLL with the .NET runtime:
{
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"dax-formatter": {
"command": "path/to/dax-formatter-mcp.exe",
"args": []
}
}
}