Skip to main content

Industrial-grade Agent Git Workflow Tools

Project description

Kyson MCP Agent Tools

PyPI License: MIT

Industrial-grade Git Workflow Agent Infrastructure based on the Model Context Protocol (MCP).


🚀 Overview

kyson-mcp-agent-tools is a high-reliability MCP server designed to empower AI agents with professional Git and GitHub management capabilities. Unlike simple command wrappers, this tool implements a strict L1-L2-L3 layered architecture to ensure all agentic actions are safe, validated, and compliant with project standards.

🏗 Architecture (L1-L2-L3 Model)

Based on the core principles defined in our ARCHITECTURE.md:

  1. L1 (Adapters): Atomic wrappers around Git and GitHub CLI. They handle the "dirty work" of command execution.
  2. L2 (Orchestrators): Stateful business logic (e.g., Commit Plans, Sync Guards). They ensure semantic correctness and provide safe transaction-like operations.
  3. L3 (Cognition): High-level Prompts and Flow definitions that align the AI's reasoning with the tool's capabilities.

📦 Quick Start

For AI Users (via uvx)

The fastest way to use this tool in your MCP-compatible client (like Cursor or Claude CLI):

{
  "mcpServers": {
    "agent-tools": {
      "command": "uvx",
      "args": ["kyson-mcp-agent-tools"]
    }
  }
}

For Developers

# Clone the repository
git clone https://github.com/kyson-dev/agent-tools.git

# Set up environment
cd agent-tools
python3 -m venv .venv
source .venv/bin/activate

# Install in editable mode
pip install -e .

🛡 Cascading Rules System

This tool features a unique 3-level configuration system that allows for granular control over agent behavior:

Priority Level Path Purpose
1 (Highest) Project <repo_root>/.agent/configs/rules.yaml Per-project constraints (e.g., Mandatory Scopes).
2 User ~/.agent/configs/rules.yaml User-wide global preferences.
3 (Lowest) Internal Inside package Default sane fallback rules.

Example Rule Table (rules.yaml)

git:
  commit:
    # Forces scope in commit message: feat(auth): add login
    message_regex: "^(feat|fix|docs|refactor)\\([a-z0-9._\\-]+\\): .{1,72}$"
    subject_max_length: 72

🤖 Available Workflows

1. Smart Commit Flow

  • Action: Automatically stages changes, analyzes diffs, and synthesizes a professional commit message.
  • Constraint: Validates against rules.yaml before every commit.

2. Guarded Sync Flow

  • Action: Safely pulls and pushes changes.
  • Safety: Automatically detects protected branches (e.g., main) and prevents direct commits/rebases unless permitted.

3. Automated PR Flow

  • Action: Senses differences between branches, generates PR descriptions, and executes creation.
  • Merge: Supports semantic squash-merging and branch cleanup.

🌐 CI/CD & Distribution

This project is built for automated distribution:

  • Build System: PEP 517 compliant via pyproject.toml.
  • Auto-Publish: Simply push a tag (e.g., v0.1.0) to GitHub to trigger the PyPI release workflow.

📄 License

MIT License. Created by Kyson.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kyson_mcp_agent_tools-0.1.14.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kyson_mcp_agent_tools-0.1.14-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file kyson_mcp_agent_tools-0.1.14.tar.gz.

File metadata

  • Download URL: kyson_mcp_agent_tools-0.1.14.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kyson_mcp_agent_tools-0.1.14.tar.gz
Algorithm Hash digest
SHA256 1c602e2983e26d5aac38f0ae6e0b0abae41d3c7477953f6b270cde3814fe08bb
MD5 d03a4f92e84e87bd671efaf5111f1d63
BLAKE2b-256 837d9e980e325a9ea32f6792f02e62c90f1f31dfdf0e523253a04d359f9a51a2

See more details on using hashes here.

File details

Details for the file kyson_mcp_agent_tools-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for kyson_mcp_agent_tools-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 600ae53de027370e9bff07dfdcb7dd52c4920e0697c57f26b3f5a4d1d8b31e1f
MD5 987ca9562155db9cd9532791cf3f8380
BLAKE2b-256 e9498299634cccae7222e80928c1db7632b3a1003c8d80d1d7c12ab2e9c86c59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page