Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GHCP Account & Usage DashboardNew to Visual Studio Code? Get it now.
GHCP Account & Usage Dashboard

GHCP Account & Usage Dashboard

Shubh J

|
4 installs
| (0) | Free
View GitHub Copilot accounts, MCP server connections, usage statistics, and switch between accounts — all inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GHCP Account & Usage Dashboard

Version: 1.0.0 | Author: Jadhav Shubhamm | License: MIT
VS Code Compatibility: ^1.95.0 | Publisher: shujadhav

A comprehensive Visual Studio Code extension that provides a unified dashboard for managing your GitHub Copilot accounts, monitoring real AI usage statistics, viewing MCP server connections, inspecting language models, and managing authentication — all from within VS Code. 100% offline — no internet or external API calls required.


Table of Contents

  • Features
  • Quick Start
  • Dashboard Tabs
  • Commands
  • Account Management
  • Data Sources
  • Privacy & Security
  • Troubleshooting
  • Documentation
  • Support

Features

📊 Account Overview

  • View all connected GitHub, Microsoft, and GitHub Enterprise accounts
  • See account connection status, session information, and OAuth scopes
  • Detect which account is actively used by Copilot (via state.vscdb analysis)
  • View trusted extensions per account with last-used timestamps

🤖 GitHub Copilot & Chat Integration

  • Monitor GitHub Copilot and Copilot Chat installation status and version
  • Identify the active Copilot account with detection strategy details
  • View real-time usage metrics: AI rate, accepted suggestions, chat edits
  • Interactive charts with period filters (Today / This Week / This Month / All)

📈 AI Stats — Real Usage Data

  • Read real AI usage statistics from VS Code's workspace state.vscdb files
  • Track: AI characters vs typed characters, acceptance rate, inline suggestions, chat edits
  • Multi-workspace support with workspace filter dropdown
  • Six interactive charts: AI Rate, AI vs Typed, Accepted Suggestions, Chat Edits, Sessions
  • Same data shown by VS Code's built-in editor.aiStats.enabled feature

🔌 MCP Server Monitoring

  • Auto-discover all Model Context Protocol (MCP) servers from:
    • Workspace .vscode/mcp.json
    • Workspace root mcp.json and vscode/mcp.json
    • User home ~/.vscode/mcp.json
    • VS Code settings (mcp.servers)
  • View server name, command, args, type, and config file location
  • See all MCP-provided tools with descriptions and tags
  • One-click open of any MCP config file from the dashboard

🧠 Language Models & Tools

  • List all available LLMs via vscode.lm.selectChatModels()
  • View model vendor, family, version, and max input/output token limits
  • Context window token analysis with real countTokens() measurements
  • List all registered LM tools (MCP tools + built-in extension tools)

🔧 Readiness Checks

  • Automatic validation: accounts, Copilot extensions, sessions, models, MCP
  • Clear status indicators: ✅ Ready / ⚠️ Warning / ❌ Error
  • Actionable issue descriptions to resolve problems

⚡ Sidebar View

  • Compact sidebar with weekly AI metrics (AI rate, sessions, suggestions, chat edits)
  • Copilot Chat status and last-used account
  • Models count and MCP servers list
  • Quick action buttons: Open Full Dashboard, Refresh

Quick Start

  1. Install the extension from a .vsix file or development mode (see INSTALLATION_GUIDE.md)
  2. Click the GitHub icon in the Activity Bar to open the sidebar
  3. Click "Open Full Dashboard" for the detailed view
  4. Sign in to GitHub if prompted — all tabs populate automatically

Dashboard Tabs

Tab What It Shows
Copilot & Chat Extension install status, version, active account, usage metrics charts
AI Stats Real AI data from state.vscdb — AI rate, typed vs AI chars, suggestions, chat edits, sessions
Accounts All GitHub / Microsoft / GHE accounts, session status, trusted extensions, Copilot policy
Models Available language models with vendor, family, version, token limits
MCP Servers All configured MCP servers, their tools, config file paths
Info Data sources explanation, impact of missing components, important notes

Commands

Access via Command Palette (Ctrl+Shift+P):

Command Description
GHCP: Open Account & Usage Dashboard Opens the full dashboard panel in the editor
GHCP: Refresh Account Data Refreshes all account data, stats, and MCP configs
GHCP: Switch GitHub Account Quick pick: sign in/out of GitHub, sign out of Microsoft, manage accounts

A status bar item ($(github) GHCP) is also available — click it to open the dashboard.


Account Management

Switching Accounts

  1. Run GHCP: Switch GitHub Account from the Command Palette
  2. Choose: Sign out of GitHub, Sign out of Microsoft, Sign in to GitHub, or Manage Accounts

Adding Accounts

  • Click "Sign in to GitHub" or "Sign in to Microsoft" from the sidebar or dashboard
  • Follow the browser authentication flow
  • Dashboard auto-refreshes when authentication sessions change

Active Copilot Detection

The extension uses a 3-strategy approach to detect your active Copilot account:

  1. State DB scan — reads github.copilot-github key from VS Code's state.vscdb
  2. Default session — queries vscode.authentication.getSession() (silent)
  3. Usage timestamp — finds the account with the most recent github.copilot-chat trusted extension entry

Data Sources

Data Source Notes
Accounts vscode.authentication API + state.vscdb Local VS Code auth providers
Copilot status vscode.extensions API Extension install/version/active state
AI Stats Workspace Storage state.vscdb files aiStats key — same as editor.aiStats.enabled
Models vscode.lm.selectChatModels() All registered language models
Tools vscode.lm.tools MCP + extension-provided tools
MCP Servers .vscode/mcp.json + settings.json File and settings-based configs
Active Account state.vscdb binary scan Reads Copilot policy + trusted extensions

All data is sourced locally from VS Code. No external API calls, no internet required.


Privacy & Security

  • 100% offline — no data is sent to any external server
  • Access tokens are partially masked (••••••XXXX) — never fully exposed
  • State database reads are read-only — the extension never writes to state.vscdb
  • MCP configurations are read directly from local files
  • All webview content uses Content Security Policy with nonces

Troubleshooting

Problem Solution
Dashboard not loading Run GHCP: Refresh Account Data or Developer: Reload Window
No accounts showing Sign in via sidebar buttons or VS Code Accounts (bottom-left)
AI Stats charts empty Enable editor.aiStats.enabled in VS Code settings; restart VS Code
MCP servers not appearing Check .vscode/mcp.json exists; refresh dashboard
Models tab empty Ensure Copilot is installed and you're signed in to GitHub
Data seems stale VS Code writes stats at session end — restart or switch workspaces to flush

Documentation

Document Description
INSTALLATION_GUIDE.md Step-by-step installation, uninstallation, and upgrade instructions
TECHNICAL_REFERENCE.md Detailed API reference for all classes, methods, and data structures
DEVELOPER_GUIDE.md Component architecture, build process, versioning, and contribution guide

Support

  • Author: Jadhav Shubhamm — AI Developer
  • Email: shujadhav@microsoft.com · sj.techconnect@gmail.com
  • Debug: Check VS Code Output panel → "GHCP Dashboard" or Developer Tools console

🦊 CodeFox — Driving AI-Powered Delivery Excellence
© 2026 All rights reserved. MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft