Casper Agentic Portfolio Copilot
AI-driven portfolio dashboard and MCP server for the Casper blockchain, enabling wallet monitoring, validator staking analysis, RWA compliance checks, and on-chain transaction generation.
README
Casper Agentic Portfolio Copilot (CAP Copilot)
CAP Copilot is a premium, AI-driven portfolio dashboard and Model Context Protocol (MCP) server designed for the Casper Agentic Buildathon 2026. It empowers users to interact with an intelligent agent to monitor wallets, analyze validator staking options, track real-world asset (RWA) compliance, and prepare on-chain transactions on the Casper Testnet.
Features
- Interactive AI Agent Studio: Conversational chat interface backed by a custom Casper Model Context Protocol (MCP) tool caller.
- Casper MCP Server: Custom Node.js/TypeScript server exposing Casper-specific blockchain query and transaction generation tools.
- Premium Web Dashboard: Immersive dark-mode glassmorphic user interface featuring responsive token allocation charts and live transaction logging.
- On-Chain Deploy Sandbox: Generates fully structured Casper transaction JSON deploys ready for signing and broadcasting.
- RWA Risk & Compliance Engine: Simulated loan-to-value (LTV) validator for collateralized physical assets.
Tech Stack
- Frontend: Vanilla HTML5, Vanilla CSS3 (Custom design system, glassmorphism, responsive grid), JavaScript (ES6+, Chart.js, RemixIcons).
- Backend/MCP Server: Node.js, Express, TypeScript,
@modelcontextprotocol/sdk,casper-js-sdk.
Installation & Setup
Prerequisites
- Node.js (v18.0.0 or higher recommended)
- npm (v9.0.0 or higher)
Setup Steps
-
Clone or navigate to the project directory:
cd C:\Users\Hipiclab03\.gemini\antigravity\scratch\casper-agentic-suite -
Install dependencies:
npm install -
Build the TypeScript files:
npm run build -
Start the server:
npm run start
The application will start, listening on port 3000. Open your browser and navigate to:
š http://localhost:3000
Model Context Protocol (MCP) Tools Exposed
get_account_balance: Retrieve the CSPR balance of a public key.get_staking_yields: Retrieve current staking options and validator APYs.prepare_transfer: Generate a transfer transaction JSON ready for signing.prepare_delegation: Generate a delegation staking transaction JSON.analyze_rwa_risk: Analyze loan-to-value status for collateralized real-world assets.
Project Structure
casper-agentic-suite/
āāā src/
ā āāā server.ts # Main Express API and MCP Server Tools definition
ā āāā agent.ts # Agent reasoning engine and tool orchestration
āāā public/
ā āāā index.html # Dashboard layout
ā āāā index.css # Premium styling (design tokens, glassmorphism)
ā āāā app.js # Frontend controller and client-side transaction simulator
āāā package.json # Dependencies and build scripts
āāā tsconfig.json # TypeScript compiler settings
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.