Skip to main content
Glama

Practices MCP Server

by agentience

MCP 服务器实践

提供强制执行开发实践的工具的模型上下文协议服务器。

概述

该 MCP 服务器提供了一些工具来帮助执行和自动化以下开发实践:

  • 分支名称验证
  • 版本管理
  • 公关准备
  • 许可证标头管理
  • 预提交钩子安装

安装

pip install mcp-server-practices

对于开发安装:

pip install -e .

使用 UV 工具

如果您想使用 UV 全局安装该包,请按照以下步骤操作以避免文件损坏:

选项 1:使用 install_full 脚本
# Clean, build, and install in one step ./install_full.sh

该脚本将:

  1. 清理之前的构建产物
  2. 构建包
  3. 使用 UV 工具安装最新的轮子
选项 2:手动流程
  1. 首先,构建包轮:
    python -m build
  2. 直接安装轮子(而不是源目录):
    uv tool install dist/mcp_server_practices-0.3.0-py3-none-any.whl

重要提示:请勿直接在源目录上使用uv tool install .因为这可能会导致文件损坏。请务必先构建一个轮子。

用法

作为 MCP 服务器

可以通过以下方法调用服务器:

# Run server using the --from parameter uvx --from mcp-server-practices practices [options] # Show version uvx --from mcp-server-practices practices --version

**注意:**计划在未来版本中支持通过uvx mcp-server-practices直接调用。

服务器选项
  • --log-level :设置日志级别(DEBUG、INFO、WARNING、ERROR、CRITICAL)
  • --project-root :指定项目根目录
  • --log-file :启用记录到文件(默认)
  • --no-log-file :禁用记录到文件
  • --log-file-path :指定自定义日志文件路径

作为 CLI 工具

# Access CLI functionality uvx --from mcp-server-practices practices cli [command] [options]

**注意:**计划在未来版本中支持通过uvx mcp-server-practices cli直接调用。

分支命令
# Validate a branch name uvx --from mcp-server-practices practices cli branch validate feature/ABC-123-description # Create a branch uvx --from mcp-server-practices practices cli branch create feature/ABC-123-description
Jira 命令
# Get issue details uvx --from mcp-server-practices practices cli jira issue ABC-123 # Update issue status uvx --from mcp-server-practices practices cli jira update ABC-123 "In Progress"

MCP 配置

"practices": { "command": "practices", "args": [ "--log-level", "ERROR" ], "disabled": false, "autoApprove": [ "validate_branch_name", "get_branch_info", "validate_version" ] }

发展

测试

python -m pytest

许可证标题

uvx --from mcp-server-practices practices cli headers add /path/to/your/source/directory

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 服务器提供标准化 Git 分支管理和 Jira 集成的工具,允许开发人员创建、按照约定验证分支并与 Jira 问题同步。

  1. 概述
    1. 安装
      1. 使用 UV 工具
    2. 用法
      1. 作为 MCP 服务器
      2. 作为 CLI 工具
    3. MCP 配置
      1. 发展
        1. 测试
        2. 许可证标题
      2. 执照

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
          Last updated -
          18
          4
          3
          TypeScript
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A specialized MCP server for in-depth analysis of git repositories, offering tools for branch overview, time period analysis, file changes, and merge recommendations.
          Last updated -
          4
          1
          JavaScript
          Apache 2.0
        • A
          security
          A
          license
          A
          quality
          MCP Tool Server for Gitee, supporting the management of repository files/branches, Issues, and Pull Requests.
          Last updated -
          20
          10
          4
          TypeScript
          MIT License
        • A
          security
          F
          license
          A
          quality
          MCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.
          Last updated -
          6
          Python

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentience/practices_mcp_server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server