py-azure-devops-mcp

v0.1.1
py-azure-devops-mcp Checked 3 hours ago Published 1 month ago

MCP Server for Azure DevOps integration with AI agents

py-azure-devops-mcp MCP Server implementation for Azure DevOps, enabling AI agents to manage work items. Installation Configuration The server requires the following required environment variables: If your Azure DevOps organization has work item with custom fields, the following environment variable is also needed: Usage with AI Agents You can run the server using the python module: OpenCode Configuration (opencode.jsonc) Add this to your configuration: Claude Code Configuration Add this to your configuration: Architecture This server acts as a wrapper around py-azure-devops-sdk, exposing its…

Summary extracted from the README.

py-azure-devops-mcp

MCP Server implementation for Azure DevOps, enabling AI agents to manage work items.

Installation

pip install py-azure-devops-mcp

Configuration

The server requires the following required environment variables:

AZURE_DEVOPS_MCP_TENANT_ID="your-tenant-id"
AZURE_DEVOPS_MCP_PROJECT_NAME="your-project-name"
AZURE_DEVOPS_MCP_PAT="your-pat"

If your Azure DevOps organization has work item with custom fields, the following environment variable is also needed:

AZURE_DEVOPS_MCP_CUSTOM_PROPS="{'custom_field_one': 'Custom.AliasFieldOne'}"

Usage with AI Agents

You can run the server using the python module:

python -m py_azure_devops_mcp.server

OpenCode Configuration (opencode.jsonc)

Add this to your configuration:

{
  "mcp": {
    "py-azure-devops-mcp": {
      "type": "local",
      "command": [
        "python",
        "-m",
        "py_azure_devops_mcp.server"
      ], 
      "environment": {
        "AZURE_DEVOPS_MCP_TENANT_ID": "your-tenant-id",
        "AZURE_DEVOPS_MCP_PROJECT_NAME": "your-project-name",
        "AZURE_DEVOPS_MCP_PAT": "your-personal-access-token",
        "AZURE_DEVOPS_MCP_CUSTOM_PROPS": "{'custom_field_one': 'Custom.AliasFieldOne'}"
      }
    }
  }
}

Claude Code Configuration

Add this to your configuration:

{
  "mcpServers": {
    "py-azure-devops-mcp": {
      "command": "python",
      "args": ["-m", "py_azure_devops_mcp.server"],
      "env": {
        "AZURE_DEVOPS_MCP_TENANT_ID": "your-tenant-id",
        "AZURE_DEVOPS_MCP_PROJECT_NAME": "your-project-name",
        "AZURE_DEVOPS_MCP_PAT": "your-personal-access-token",
        "AZURE_DEVOPS_MCP_CUSTOM_PROPS": "{'custom_field_one': 'Custom.AliasFieldOne'}"
      }
    }
  }
}

Architecture

This server acts as a wrapper around py-azure-devops-sdk, exposing its functionality as MCP tools.