wexinc-azure-devops-pipeline-mcp
v1.0.0
Published
Automated Azure DevOps pipeline generator using MCP
Downloads
18
Maintainers
Readme
Azure DevOps Pipeline MCP
Automatically generate Azure DevOps CI/CD pipelines for .NET projects using MCP (Model Context Protocol).
Installation
npm install wexinc-azure-devops-pipeline-mcpQuick Start
Option 1: Use the CLI directly
# In your .NET project directory
npx wexinc-azure-devops-pipeline-mcpOption 2: Add to your package.json
{
"scripts": {
"setup-pipelines": "npx wexinc-azure-devops-pipeline-mcp"
}
}Then run: npm run setup-pipelines
Option 3: Use the GitHub Action
Add this to your repository's .github/workflows/setup-pipelines.yml:
name: Setup Azure Pipelines
on: workflow_dispatch
jobs:
setup:
uses: wexinc/azure-devops-pipeline-mcp/.github/workflows/generate-pipelines.yml@main
with:
organization: "YourAzureOrg"
project: "YourProject"
secrets:
AZURE_DEVOPS_PAT: ${{ secrets.AZURE_DEVOPS_PAT }}What It Does
- Analyzes your .NET repository structure
- Detects application type (ASP.NET, Windows Service, etc.)
- Generates appropriate CI pipeline
- Generates CD pipeline with deployment stages
- Creates
.azuredevops/directory with pipeline files
Generated Files
.azuredevops/your-repo-ci.yml- CI pipeline.azuredevops/your-repo-cd.yml- CD pipeline
Supported Project Types
- ASP.NET Web Applications - Uses
aspnet-iis-ci-template.yml - Windows Services - Uses
dotnet-winsvc-sc-ci-template.yml - NuGet Packages - Uses
dotnet-nuget-ci-template.yml - Visual Studio Tools/Libraries - Uses
vs-tool-ci-template.yml
Requirements
- Python 3.11+
- Node.js 18+
- .NET project with
.csprojor.slnfiles
Command Line Options
# Generate in current directory
npx wexinc-azure-devops-pipeline-mcp
# Specify repository path
npx wexinc-azure-devops-pipeline-mcp --repo-path=/path/to/repoExample Output
After running the command, you'll see:
Starting Azure DevOps Pipeline Generator...
Working directory: /your/project/path
Repository path: /your/project/path
[ok] Written pipeline to: /your/project/.azuredevops/your-repo-ci.yml
[ok] Written pipeline to: /your/project/.azuredevops/your-repo-cd.yml
Generated 2 pipeline file(s):
your-repo-ci.yml
your-repo-cd.yml
Pipeline generation completed!License
MIT
