Hands-on: Claude Reads, Dispatches, and Attests
🤖 Module 7: AI Agents & MCP
Hands-on: Claude Reads, Dispatches, and Attests
Open Claude Desktop with the MCP server configured. You will perform a complete Briefing→Dispatch→Attest cycle.
Pre-flight
# Verify MCP server works standalone
ENERGYATIT_API_KEY=eat_test_YOUR_KEY npx @energyatit/mcp-server --testExercise 1: Brief — Read Grid State
Type in Claude Desktop:
"Give me a full briefing: list all sites, show battery SOC for each, and current grid prices for UAE."
Watch Claude chain multiple tool calls: list_sites → list_assets → get_meter_readings → get_grid_prices.
Exercise 2: Dispatch — Control a Battery
"The UAE price is high. Charge the battery at asset 1 at 50kW for 15 minutes."
Watch Claude call dispatch_command. Check the response for command ID and status.
Exercise 3: Attest — Create Carbon Record
"Now create a carbon attestation for meter meter-001 at facility 00000000-0000-0000-0000-000000000001 with 50 kWh."
Watch Claude call create_carbon_record.
Exercise 4: Verify — Check the Chain
"Verify the hash chain for meter meter-001."
Watch Claude call verify_carbon_chain and report the result.
Exercise 5: The Full Loop
"Read the battery, check prices, dispatch if the price is above $50/MWh, and attest the energy consumed."
This is the autonomous Briefing→Dispatch→Attest loop. Claude does it all in one conversation turn.
Verification
Lab complete if Claude: read grid state, dispatched a command, created a carbon record, and verified the hash chain.
Open Hands-on Lab
Complete the exercise in the Developer Hub.
Log in to track your progress and earn certifications.