claude-pytorch-treehugger
MCP harness for PyTorch HUD API https://hud.pytorch.org/
Documentation
PyTorch HUD API with MCP Support
A Python library and MCP server for interacting with the PyTorch HUD API, providing access to CI/CD data, job logs, and analytics.
Overview
This project provides tools for PyTorch CI/CD analytics including:
- Data access for workflows, jobs, and test runs
- Efficient log analysis for large CI logs
- ClickHouse query integration for analytics
- Resource utilization metrics
Usage (for humans)
claude mcp add hud -- $(which uvx) --from "git+https://github.com/izaitsevfb/claude-pytorch-treehugger.git" pytorch-hudDevelopment
# Install dependencies (if not installing with pip)
pip install -r requirements.txt
# Start MCP server
python -m pytorch_hudKey Features
Data Access
- `get_commit_summary`: Basic commit info without jobs
- `get_job_summary`: Aggregated job status counts
- `get_filtered_jobs`: Jobs with filtering by status/workflow/name
- `get_failure_details`: Failed jobs with detailed failure info
- `get_recent_commit_status`: Status for recent commits with job statistics
Log Analysis
- `download_log_to_file`: Download logs to local storage
- `extract_log_patterns`: Find errors, warnings, etc.
- `extract_test_results`: Parse test execution results
- `filter_log_sections`: Extract specific log sections
- `search_logs`: Search across multiple logs
Development
# Run tests
python -m unittest discover test
# Type checking
mypy -p pytorch_hud -p test
# Linting
ruff check pytorch_hud/ test/Documentation
- CLAUDE.md: Detailed usage, code style, and implementation notes
- mcp-guide.md: General MCP protocol information
License
MIT
Frequently asked questions
What is claude-pytorch-treehugger?
claude-pytorch-treehugger is MCP harness for PyTorch HUD API https://hud.pytorch.org/
How do I install claude-pytorch-treehugger?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is claude-pytorch-treehugger open source?
Yes — it is hosted on GitHub at https://github.com/izaitsevfb/claude-pytorch-treehugger and has 3 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP