VersionOne MCP Server

VersionOne MCP Server

Enables AI assistants to query VersionOne for stories, features (epics), and their details with structured output.

Category
访问服务器

README

VersionOne MCP Server

A simplified Model Context Protocol (MCP) server using FastMCP for VersionOne API integration. This server enables AI assistants to query VersionOne for stories, features (epics), and their details with structured output.

Features

The server provides four main tools with structured Pydantic models:

  1. get_stories - Get a list of stories from VersionOne
  2. get_story_details - Get detailed information about a specific story by ID
  3. get_features - Get a list of features (Epics) from VersionOne
  4. get_feature_details - Get detailed information about a specific feature by ID

Prerequisites

  • Python 3.10 or higher
  • uv package manager
  • VersionOne access token
  • Your VersionOne instance URL

Installation

  1. Install uv (if not already installed):
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone or download this project:
cd versionone-mcp-server
  1. Install dependencies with uv:
uv sync
  1. Configure your VersionOne credentials:
cp env-template.txt .env
  1. Edit .env with your actual VersionOne details:
# Your VersionOne base URL (e.g., https://www7.v1host.com/V1Instance)
VERSIONONE_BASE_URL=https://your-v1-host.com/YourInstance

# Your VersionOne access token (recommended)
VERSIONONE_ACCESS_TOKEN=your-access-token-here

Getting Your VersionOne Access Token

  1. Log into your VersionOne instance
  2. Navigate to your profile settings
  3. Go to the Applications page
  4. Create a new access token
  5. Copy the token to your .env file

Configuration

Environment Variables

  • VERSIONONE_BASE_URL: Your VersionOne instance URL (e.g., https://www7.v1host.com/V1Instance)
  • VERSIONONE_ACCESS_TOKEN: Your VersionOne access token (recommended method)

MCP Configuration

Add this server to your MCP client configuration:

{
  "mcpServers": {
    "versionone": {
      "command": "uv",
      "args": ["run", "server", "stdio"],
      "cwd": "/path/to/versionone-mcp-server",
      "env": {
        "VERSIONONE_BASE_URL": "https://your-v1-host.com/YourInstance",
        "VERSIONONE_ACCESS_TOKEN": "your-access-token-here"
      }
    }
  }
}

Usage

Running the Server

uv run server stdio

Available Tools

1. get_stories

Get a list of stories from VersionOne with optional filtering.

Parameters:

  • filters (optional): Object containing query filters
    • where: Where clause for filtering (e.g., 'AssetState!="Dead"')
    • sel: Comma-separated list of attributes to select (e.g., 'Name,Number,Description')
    • sort: Sort order (e.g., 'Name')
  • page_size (optional): Number of items per page (default: 20)
  • page_start (optional): Starting page number (default: 0)

Example:

{
  "name": "get_stories",
  "arguments": {
    "filters": {
      "where": "AssetState!=\"Dead\"",
      "sel": "Name,Number,Description,Status"
    },
    "page_size": 10
  }
}

2. get_story_details

Get detailed information about a specific story by ID.

Parameters:

  • story_id (required): The ID of the story (e.g., "Story:1234")
  • attributes (optional): List of specific attributes to retrieve

Example:

{
  "name": "get_story_details",
  "arguments": {
    "story_id": "Story:1234",
    "attributes": ["Name", "Description", "Status", "Owner"]
  }
}

3. get_features

Get a list of features (Epics) from VersionOne with optional filtering.

Parameters:

  • filters (optional): Object containing query filters
    • where: Where clause for filtering
    • sel: Comma-separated list of attributes to select
    • sort: Sort order
  • page_size (optional): Number of items per page (default: 20)
  • page_start (optional): Starting page number (default: 0)

Example:

{
  "name": "get_features",
  "arguments": {
    "filters": {
      "where": "AssetState!=\"Dead\"",
      "sel": "Name,Number,Description,Status"
    }
  }
}

4. get_feature_details

Get detailed information about a specific feature by ID.

Parameters:

  • feature_id (required): The ID of the feature/epic (e.g., "Epic:1234")
  • attributes (optional): List of specific attributes to retrieve

Example:

{
  "name": "get_feature_details",
  "arguments": {
    "feature_id": "Epic:1234",
    "attributes": ["Name", "Description", "Status", "Owner"]
  }
}

VersionOne API Reference

This MCP server is built on top of the VersionOne REST API. For more detailed information about:

  • Asset types and their relationships
  • Available attributes for filtering and selection
  • Query syntax and filtering options
  • Authentication methods

Please refer to the official VersionOne API documentation at: https://versionone.github.io/api-docs/

Common Asset Types

  • Story: User stories and backlog items
  • Epic: Features and large work items
  • Defect: Bugs and issues
  • Task: Development tasks
  • Test: Test cases
  • Scope: Projects
  • Timebox: Sprints/Iterations

Common Attributes

  • Name: The title/name of the item
  • Number: The auto-generated number (e.g., S-1001)
  • Description: Detailed description
  • Status: Current status of the item
  • Owner: Assigned team member
  • AssetState: State of the asset (Active, Closed, etc.)
  • CreateDate: When the item was created
  • ChangeDate: When the item was last modified

Error Handling

The server includes comprehensive error handling for:

  • Network connectivity issues
  • Authentication failures
  • Invalid API requests
  • Missing or malformed parameters

Errors are logged and returned in a user-friendly format.

Development

Running in Development Mode

# Install development dependencies
uv sync --dev

# Run with debug logging
uv run server stdio

Testing

You can test the server using any MCP-compatible client or by running individual functions with the VersionOne API directly.

Security

  • Always use access tokens instead of username/password when possible
  • Keep your access tokens secure and rotate them regularly
  • Use environment variables for sensitive configuration
  • Never commit credentials to version control

Troubleshooting

Common Issues

  1. "VersionOne client not initialized"

    • Check that your environment variables are set correctly
    • Verify your VersionOne URL format
    • Ensure your access token is valid
  2. Authentication errors (401)

    • Verify your access token is correct and not expired
    • Check that your VersionOne URL is correct
    • Try creating a new access token
  3. Network timeouts

    • Check your internet connection
    • Verify the VersionOne server is accessible
    • Try increasing the timeout in the code if needed

Debugging

Enable debug logging by setting the log level in the server code:

logging.basicConfig(level=logging.DEBUG)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

This project is provided as-is for educational and development purposes.

Support

For issues related to:

  • This MCP server: Create an issue in this repository
  • VersionOne API: Refer to VersionOne documentation or support
  • MCP protocol: Refer to the MCP specification documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选