Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Azure DevOps Work Items MCP Server

A Model Context Protocol (MCP) server that integrates with Azure DevOps. This tool enables AI assistants to interact with Azure DevOps work items and create pull requests, providing a bridge between your AI workflows and Azure DevOps project management.

Features

  • Work Item Retrieval: Fetch detailed information about Azure DevOps work items by ID
  • Work Item Processing: Convert work item descriptions into actionable tasks for AI assistants
  • Pull Request Creation: Create pull requests directly from the MCP server
  • Environment-Based Configuration: Easy setup using environment variables

Prerequisites

  • Node.js (v16 or later)
  • npm or yarn
  • Azure DevOps organization and project
  • Personal Access Token (PAT) with appropriate permissions

Setup

1. Clone the repository

git clone <repository-url>
cd mcp-server-ado

2. Install dependencies

npm install

3. Configure Environment Variables

Create a .env file in the root directory with the following variables:

AZURE_DEVOPS_ORG=your-organization
AZURE_DEVOPS_PAT=your-personal-access-token
AZURE_DEVOPS_PROJECT=your-project-name
AZURE_DEVOPS_REPO=your-repository-name
AZURE_DEVOPS_AREA_PATH=optional-area-path

4. Build the project

npm run build

5. Run the server

npm start

Development

Project Structure

  • src/index.ts: Main entry point and MCP server configuration
  • src/utils.ts: Utility functions for Azure DevOps integration
  • build/: Compiled JavaScript files
  • .env: Environment configuration (create this file yourself)

Available Scripts

  • npm run build: Compiles TypeScript files to JavaScript
  • npm start: Runs the compiled application
  • npm test: Runs tests (currently not implemented)

Adding New Tools

To add a new tool to the MCP server, follow this pattern in src/index.ts:

server.tool("tool-name", 
    "Tool description",
    {
        param1: z.string().describe("Parameter description"),
        // Add more parameters as needed
    },
    async (args, extra) => {
        // Implement tool functionality
        return {
            content: [
                {
                    type: "text",
                    text: "Response text",
                }
            ]
        };
    }
);

API Reference

code-work-item

Retrieves an Azure DevOps work item by ID and formats it for AI processing.

Parameters:

  • workItemId: The numeric ID of the work item to retrieve

create-pull-request

Creates a pull request in your Azure DevOps repository.

Parameters:

  • title: Title for the pull request
  • description (optional): Description for the pull request
  • sourceBranch: Source branch name
  • targetBranch (optional): Target branch name (defaults to "main")

Troubleshooting

  • Authentication Issues: Ensure your PAT has the correct permissions
  • Missing Environment Variables: Check that all required environment variables are set
  • API Errors: Review the console error output for specific API error messages

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

相关推荐

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • Byaidu
  • PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero

  • lasso-security
  • A plugin-based gateway that orchestrates other MCPs and allows developers to build upon it enterprise-grade agents.

  • hkr04
  • Lightweight C++ MCP (Model Context Protocol) SDK

  • sigoden
  • Easily create LLM tools and agents using plain Bash/JavaScript/Python functions.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信(企业微信、个人微信)/ 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 ChatGPT、DeepSeek、Dify、Claude、Gemini、xAI、PPIO、Ollama、LM Studio、阿里云百炼、火山方舟、SiliconFlow、Qwen、Moonshot、ChatGLM、SillyTraven、MCP 等 LLM 的机器人 / Agent | LLM-based instant messaging bots platform, supports Discord, Telegram, WeChat, Lark, DingTalk, QQ, Slack

    Reviews

    2.8 (5)
    Avatar
    user_JjWWZZMp
    2025-04-24

    As a dedicated user of mcp-server-ado, I can confidently say that this product by fatmali is a game-changer. It simplifies server management with its intuitive interface and robust functionality. The setup process is straightforward, and the performance has been consistently reliable. Whether you're a seasoned developer or new to server administration, mcp-server-ado is a must-have tool. Highly recommended!

    Avatar
    user_UpuNF7o8
    2025-04-24

    I've been using mcp-server-ado by fatmali and it has significantly simplified managing my servers. The seamless integration and user-friendly interface are top-notch. Highly recommend it!

    Avatar
    user_9OIgkFkI
    2025-04-24

    As a dedicated user of mcp-server-ado, I must say it has significantly improved my development workflow. The product, developed by fatmali, offers robust features and seamless integration that cater to all my server management needs. I highly recommend it to anyone looking for efficiency and reliability.

    Avatar
    user_1tgU9ycb
    2025-04-24

    I have been using the mcp-server-ado developed by fatmali and it's simply outstanding. The user-friendly interface makes it easy to manage and the performance is top-notch. Highly recommended for anyone in need of a reliable server solution.

    Avatar
    user_3pCbWfWK
    2025-04-24

    As a dedicated user of mcp-server-ado, I am thoroughly impressed by its performance and reliability. Fatmali has done an exceptional job in creating a robust server application that meets all my database needs. The user-friendly interface and excellent support make it a top choice for any developer. Highly recommended!