GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MukundaKatta/gemini-mantle-agent: Gemini agent on Mantle MCP. Walks chain queries to answer plain-English on-chain questions with verbatim block height + TVL + tx hashes. Submission for DoraHacks Mantle Turing Test 2026.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
app
app
 
 
scripts
scripts
 
 
src/gemini_mantle_agent
src/gemini_mantle_agent
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
HACKATHON.md
HACKATHON.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

gemini-mantle-agent

An on-chain analyst agent built on Google Cloud Agent Builder (ADK), Gemini 2.5, and a Mantle MCP server. Submission for the DoraHacks Mantle Turing Test 2026 (deadline 2026-06-15).

License: Apache 2.0 Author: Mukunda Katta, independent.

What it does

You ask a plain-English question about Mantle L2 chain state — "what's TVL on Agni Finance right now and the most recent deposit to the WMNT contract?" — and the agent walks a Mantle MCP server (stub by default, real Mantle RPC swap-in) to answer with a five-section labeled report:

ANSWER:      one or two sentences, every number/hash/address copied verbatim.
CHAIN STATE: block height + chain id at query time (verbatim).
EVIDENCE:    2-4 verbatim payload snippets, each tagged with the tool name.
CONFIDENCE:  high / medium / low, grounded in agreement across tools.
NEXT STEP:   one concrete follow-up the user could run.

Strict rule: every TVL number, contract address, hex result, and tx hash MUST be byte-for-byte from a tool call. The agent never paraphrases on-chain values. If two tools disagree on block_height, the answer is downgraded in CONFIDENCE.

Tool surface

The agent uses a Mantle MCP tool surface. A stub MCP server ships in the repo with a canned story chain (block_height = 90215643, WMNT canonical at 0x4200...0006, Agni Finance TVL = $12,847,193.42). The real-Mantle-MCP swap is one env-var change away.

  • get_block_height() — current Mantle tip (chain id + block + timestamp)
  • get_protocol_tvl(protocol) — DefiLlama-shape TVL for a Mantle protocol
  • query_contract(address, method) — read-only contract call (hex + decoded)
  • get_transaction(hash) — receipt-shape data (from / to / gas / status)
  • list_top_protocols(category, limit) — top N protocols by TVL on Mantle

Architecture

┌──────────────────────┐    ┌───────────────────────┐   ┌────────────────────────────┐
│ Streamlit dashboard  │──▶ │  ADK LlmAgent          │──▶│  Mantle MCP server          │
│ on Cloud Run         │    │  Gemini 2.5 on Vertex  │   │  (stub for demos,           │
│                      │    │  AI                    │   │   real Mantle RPC via       │
│ "What's TVL on ..."  │    │                        │   │   MANTLE_RPC_URL)           │
└──────────────────────┘    └───────────────────────┘   └────────────────────────────┘

Try it locally

git clone https://github.com/MukundaKatta/gemini-mantle-agent
cd gemini-mantle-agent
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

gcloud auth application-default login
export GOOGLE_CLOUD_PROJECT=your-project
export GOOGLE_GENAI_USE_VERTEXAI=true
export GOOGLE_CLOUD_LOCATION=us-central1

PYTHONPATH=src streamlit run app/dashboard.py

Try it against a real Mantle MCP

export MANTLE_RPC_URL="https://rpc.mantle.xyz"

Untick "Use stub Mantle MCP" in the sidebar. The agent then spawns the real @mantle/mcp server via npx. (When that npm package publishes — until then, the stub is the canonical demo path.)

Tests

PYTHONPATH=src pytest -q

The suite pins the story-chain contract: every tool that returns a block_height agrees on 90215643, Agni Finance shows up in both list_top_protocols and get_protocol_tvl, the WMNT address 0x4200000000000000000000000000000000000006 appears in both query_contract and get_transaction.to, and the deposit tx hash matches byte-for-byte.

License

Apache 2.0. Mukunda Katta, independent.

About

Gemini agent on Mantle MCP. Walks chain queries to answer plain-English on-chain questions with verbatim block height + TVL + tx hashes. Submission for DoraHacks Mantle Turing Test 2026.

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.