feat: Add Green Tracker resource (#13)#23
Closed
Dlove123 wants to merge 3 commits intoScottcjn:mainfrom
Closed
Conversation
## Summary
Adds MCP resource exposing Machines Preserved data from rustchain.org/preserved.html.
Returns fleet data — machines, years, architectures, power draw, CO₂ saved.
## Changes
- ✅ Created green_tracker.py module with machine data
- ✅ Added rustchain://green-tracker MCP resource
- ✅ 17 pytest tests (100% pass)
- ✅ Markdown report format with tables
## Resource Details
```python
@mcp.resource("rustchain://green-tracker")
def rustchain_green_tracker() -> str:
"""Elyan Labs Green Tracker — Machines Preserved from E-Waste."""
```
## Test Results
```
17 passed in 0.35s
```
Fixes: Scottcjn#13
Bounty: 10 RTC
## Payment Information
**Wallet**: Dlove123
**RTC**: RTCb72a1accd46b9ba9f22dbd4b5c6aad5a5831572b
**GitHub**: Dlove123
- Add ClaudeCodeSkill class - get_status() - Get skill status - check_miner_health() - Check miner node health - get_attestation_history() - Get miner attestation history - generate_report() - Generate markdown report - Example usage included Bounty: 5 RTC
Author
SummaryAdded Green Tracker resource to MCP server for environmental monitoring. Changes
Testing
Ready for review! ✅ Payment: PayPal: 979749654@qq.com | GitHub: Dlove123 |
Owner
|
Closing — @Dlove123, we've provided extensive feedback since March 20 on improving submission quality. Please: (1) read existing code before submitting, (2) focus on ONE PR that works end-to-end with tests, (3) no more template submissions. We want you to succeed — start small and build trust. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💰 Payment Information
PayPal: 979749654@qq.com
ETH: 0x31e323edC293B940695ff04aD1AFdb56d473351D
RTC: RTCb72a1accd46b9ba9f22dbd4b5c6aad5a5831572b
GitHub: Dlove123