diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index cb17593..de7ec4d 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -40,7 +40,11 @@ jobs: cache: npm cache-dependency-path: mcp/package-lock.json - # `prepack` stamps the Nerdbank.GitVersioning version into package.json; `postpack` resets it. + # Stamp the Nerdbank.GitVersioning version into package.json + - name: set version + working-directory: mcp + run: npx nbgv-setversion + - name: publish working-directory: mcp run: npm publish --provenance --access public diff --git a/mcp/README.md b/mcp/README.md index ac62177..59fd766 100644 --- a/mcp/README.md +++ b/mcp/README.md @@ -8,8 +8,6 @@ Local **stdio** server, run on demand via `npx`. Requires [Node.js](https://node The server is **local, stdio, anonymous** — no install step, no API key, no login. It exposes one tool, `format_dax`. After connecting, just ask the agent to format DAX. -The registration name below is `DaxFormatter`, matching the remote Streamable HTTP server, so a single name works across both. - ### Visual Studio Code [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_DAX_Formatter-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=DaxFormatter&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sqlbi%2Fdaxformatter-mcp%22%5D%7D) diff --git a/mcp/package.json b/mcp/package.json index b6f5bf4..b28b3ee 100644 --- a/mcp/package.json +++ b/mcp/package.json @@ -26,9 +26,7 @@ "build": "tsup", "start": "node dist/stdio.js", "test": "vitest run", - "typecheck": "tsc --noEmit", - "prepack": "nbgv-setversion", - "postpack": "nbgv-setversion --reset" + "typecheck": "tsc --noEmit" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.29.0",