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
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • lasso-security
  • 基于插件的网关,可协调其他MCP,并允许开发人员在IT企业级代理上构建。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,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!