FatBobGo/mcp-python-host_info
3.1
If you are the rightful owner of mcp-python-host_info and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Host Info Server is a Model Context Protocol server designed to provide comprehensive information about the host machine.
MCP Host Info Server
A Model Context Protocol (MCP) server that provides detailed host machine information.
Project Structure
mcp-python-host_info/
├── src/
│ ├── host_info/ # Main package
│ │ ├── __init__.py # Package exports
│ │ ├── main.py # MCP server setup
│ │ └── tools.py # Host info implementation
│ └── main.py # Entry point
├── tests/
│ ├── host_info/ # Test package
│ │ ├── test_main.py # MCP server tests
│ │ └── test_tools.py # Host info tests
│ └── conftest.py # Test configuration
└── pyproject.toml # Project configuration
Installation
Use uv to manage the dependencies:
git clone ...
cd mcp-python-host_info
uv sync
For development, install test dependencies:
uv pip install -e ".[dev]"
# install the pacakge in development mode
uv pip install -e .
Running Tests
Run the test suite with coverage report:
pytest
This will:
- Run all tests in the
tests/directory - Generate a coverage report for the
host_infopackage - Show missing lines in the coverage report
Test files are organized to mirror the package structure:
test_tools.py: Tests for host information gathering functionalitytest_main.py: Tests for MCP server setup and configuration
Debug/Development
Run the MCP server:
uv run python src/main.py
Debug the MCP server:
uv add "mcp[cli]"
uv run mcp dev src/main.py
Project Features
get_host_info: Returns detailed system information in JSON format including:- Platform details
- CPU information
- Memory size
- Python environment
- System-specific details (e.g., macOS system profiler)