A local Model Context Protocol (MCP) server that empowers AI coding agents to manage software on a computer in a safe, automated, and non-interactive way.
概览
A local Model Context Protocol (MCP) server that empowers AI coding agents to manage software on a computer in a safe, automated, and non-interactive way. This project focuses on system automation: it enables AI agents to execute common software management workflows through explicit MCP tools, from installing applications to checking updates and recommending software for specific tasks. Modern AI coding agents excel at understanding requirements and automating tasks, but they often lack standardized, non-interactive access to system software management workflows. This project bridges that gap by exposing software management capabilities as explicit MCP tools, allowing AI agents to manage system software safely and predictably without relying on terminal prompts or interactive installers.
README
以下为原文 README 节选,完整内容请查看原文。
MCP - Software Management 🚀
A local Model Context Protocol (MCP) server that empowers AI coding agents to manage software on a computer in a safe, automated, and non-interactive way.
This project focuses on system automation: it enables AI agents to execute common software management workflows through explicit MCP tools, from installing applications to checking updates and recommending software for specific tasks.
🌟 Overview
Modern AI coding agents excel at understanding requirements and automating tasks, but they often lack standardized, non-interactive access to system software management workflows.
This project bridges that gap by exposing software management capabilities as explicit MCP tools, allowing AI agents to manage system software safely and predictably without relying on terminal prompts or interactive installers.
🏗️ Architecture
The project follows a clean layered architecture inspired by best practices from modern MCP servers:
main.py (MCP Tool Endpoints)
↓ Async/Sync Bridge (asyncio.to_thread)
services/ (Business Logic)
↓
utils/ (Low-level Utilities)
↓
models/ (Data Validation)
Directory Structure
software/
├── main.py # MCP tool endpoints
├── settings.py # Configuration management
├── pyproject.toml # Project metadata
├── requirements.txt # Python dependencies
├── README.md # This file
├── models/ # Data validation & response models
│ ├── __init__.py
│ ├── result.py # ToolResult, ErrorInfo
│ ├── cmd_result.py # CmdResult (command execution)
│ └── software_models.py # Input validators (Pydantic)
├── services/ # Business logic layer
│ ├── __init__.py
│ └── software_service.py # SoftwareService class
├── utils/ # Utility functions
│ ├── __init__.py
│ ├── errors.py # Error code constants
│ ├── paths.py # Path utilities
│ └── validate.py # Input validation helpers
└── tests/ # Test suite (future)
Architecture Principles
- Separation of Concerns: Each layer has a single responsibility
- Error Handling: Structured error codes for programmatic handling
- Non-Interactive: All operations run asynchronously, suitable for AI agents
- Type Safety: Pydantic models for input/output validation
- Immutability: Frozen dataclasses for reliable state management
🛠️ Available Tools
install_software
Install a software application with automatic version management and tracking.
Parameters:
software_name(string, required): Name of the software to install
Returns:
ok(boolean): Success indicatordata(object): Contains software name, version, and status
Error Codes:
software_not_found: Software not in databasealready_installed: Software already installed
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"software-management": {
"command": "python",
"args": ["/absolute/path/to/software/main.py"]
}
}
}