模型上下文协议服务器

OpsHub集成的模型上下文协议服务器,提供项目交付物、卡片、假期分配和项目等API端点。

  • by AddisonRogers
  • 本地部署
  • 更新于
在 GitHub 查看 AddisonRogers/OpshubMCPServer

使用说明

OpsHub MCP Server

A Model Context Protocol server for OpsHub integration.

Installation

npm install
npm run dev

Usage

open http://localhost:3000

Authentication Setup

This application uses Microsoft Authentication Library (MSAL) with client credentials flow to authenticate API requests. To set up authentication:

  1. Register an application in Azure Active Directory
  2. Create a client secret for the application
  3. Set the following environment variables:
MSAL_CLIENT_ID=your-client-id
MSAL_TENANT_ID=your-tenant-id
MSAL_CLIENT_SECRET=your-client-secret
  1. Update the API_SCOPE in src/tools.ts to match your API's scope:
const API_SCOPE = ["api://your-api-id/.default"];

API Endpoints

The server provides the following tool endpoints:

  • get-deliverables: Get deliverables by project and/or deliverable name
  • get-kards: Get kards with various filtering options
  • get-leave-allocations: Get leave allocations by member, year, and/or leave type
  • get-projects: Get projects by code and/or client