Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
MCP App for navigating GitHub Copilot usage metrics with interactive dashboards
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Analyze & visualize data.
Three.js 3D visualization MCP App Server
Same catalog task: Analyze & visualize data.
Chinese psychological assessments with guided questions, scoring, PDF reports, and user profiles.
Same catalog task: Analyze & visualize data.
AccuRanker SEO rank tracking MCP server: add keywords, list keywords and ranks.
Fetched from the repository for this visit.
Navigate your GitHub Copilot adoption with actionable insights
An MCP App that delivers comprehensive GitHub Copilot usage analytics through an interactive React dashboard, powered by the MCP Apps SDK.
Features • Quick Start • Codespaces • Usage • Architecture • Troubleshooting
Copilot Compass is a Model Context Protocol (MCP) application that transforms raw GitHub Copilot metrics into actionable intelligence. Built with the MCP Apps SDK, it provides both AI-readable data and an interactive visual dashboard that renders directly in MCP-compatible hosts like VS Code and Claude Desktop.
Unlike traditional dashboards, Copilot Compass leverages the MCP Apps SDK pattern:
ontoolresultuseHostStyles![]() | ![]() |
![]() | ![]() |
![]() | |
| Metric | What It Measures | Why It Matters |
|---|---|---|
| Active Users | Unique users who received Copilot suggestions | Adoption breadth |
| Engaged Users | Users who accepted at least one suggestion | Active value extraction |
| Acceptance Rate | Accepted suggestions ÷ total suggestions | Quality of suggestions |
| Lines Accepted | Actual code lines integrated from Copilot | Productivity impact |
| Chat Sessions | Copilot Chat conversations initiated | AI pair programming usage |
| Code Insertions | Chat-generated code added to files | Conversational coding value |
| PR Summaries | Pull request descriptions auto-generated | Review process efficiency |
_meta.ui.resourceUri links tools to their visual representationvisibility: ["app"] for UI-initiated actions hidden from AIontoolresult, ontoolinput, onteardown callbacksmanage_billing:copilot — Access Copilot metricsread:enterprise — Enterprise-level accessread:org — Organization metrics# Clone the repository
git clone https://github.com/samueltauil/copilot-compass.git
cd copilot-compass
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env and add your GITHUB_TOKEN
# Build the React dashboard and TypeScript server
npm run build
# Start the MCP server
npm start
The server starts at http://localhost:3001 with:
http://localhost:3001/mcphttp://localhost:3001/healthAdd to your MCP client configuration (e.g., Claude Desktop, VS Code):
For remote HTTP connection:
{
"mcpServers": {
"copilot-compass": {
"type": "http",
"url": "http://localhost:3001/mcp"
}
}
}
For local stdio connection (alternative):
{
"mcpServers": {
"copilot-compass": {
"type": "stdio",
"command": "node",
"args": ["dist/server.js"],
"cwd": "/path/to/copilot-compass",
"env": {
"GITHUB_TOKEN": "your-github-token"
}
}
}
}
For VS Code users:
Copy the included example file to create your MCP config:
cp .vscode/mcp.json.example .vscode/mcp.json
The default uses localhost:3001. If using a tunnel (cloudflared, ngrok), edit .vscode/mcp.json to use your tunnel URL:
{
"servers": {
"copilot-compass": {
"type": "http",
"url": "https://your-tunnel-url.trycloudflare.com/mcp"
}
}
}
Note:
.vscode/mcp.jsonis gitignored so your local config won't be overwritten.
⚠️ Important: MCP Apps SDK (interactive dashboard UI) currently requires VS Code Insiders. The Codespaces web editor uses stable VS Code. To use the full dashboard UI, you must connect from VS Code Insiders on your local machine.
📌 Note: MCP Apps SDK support is expected to ship in VS Code Stable in a future release. See the official MCP Apps documentation and the MCP Apps SDK repository for the latest updates.
This gives you the complete MCP Apps experience with the interactive dashboard.
If you just need the MCP tools (not the visual dashboard), the web editor works fine:
Or manually:
When your Codespace starts:
/home/codespace/.vscode-remote/data/Machine/mcp.jsonchat.mcp.enabled, chat.mcp.discovery.enabled)The MCP server URL is: http://localhost:3001/mcp (via port forwarding)
For live Copilot metrics (instead of demo data), add your GitHub token as a Codespaces secret:
GITHUB_TOKENmanage_billing:copilot, read:enterprise, read:org scopes... menu on your Codespace → Stop, then Start againCtrl+Shift+P → "Codespaces: Stop Current Codespace", then reopenAlternatively, create a .env file in the Codespace terminal:
echo "GITHUB_TOKEN=your-token-here" > .env
npm start # Restart the server
The MCP server starts automatically in the background. Check the logs:
cat /tmp/mcp-server.log
You should see:
🧭 Copilot Compass - Codespaces Setup
✅ Codespaces detected: your-codespace-name
✅ MCP config written to: ~/.vscode-server/data/User/mcp.json
🚀 Starting MCP server...
✅ Port 3001 is now public
Open the Ports tab and verify port 3001 shows Public visibility
gh codespace ports visibility 3001:public -c $CODESPACE_NAMEThe MCP server is now ready! Use it from Copilot Chat — MCP discovery is enabled automatically.
If the server stops or you need to restart:
# Quick restart
npm start
# Full setup with config
nohup bash .devcontainer/setup.sh > /tmp/mcp-server.log 2>&1 &
Tip: The Codespaces URL persists as long as your Codespace is running. For long-term use, consider keeping the Codespace alive or using a dedicated VM.
To expose your local MCP server to the internet (useful for sharing, mobile access, or cloud-based MCP clients), you can use a tunneling service.
Cloudflared provides free, secure tunnels with automatic HTTPS.
# Install cloudflared (Windows)
winget install cloudflare.cloudflared
# Install cloudflared (macOS)
brew install cloudflared
# Install cloudflared (Linux)
curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o cloudflared
chmod +x cloudflared
Start the tunnel:
# In one terminal, start the MCP server
npm start
# In another terminal, create the tunnel
cloudflared tunnel --url http://localhost:3001
Cloudflared outputs a public URL like https://random-words.trycloudflare.com. Use this in your MCP client config:
{
"mcpServers": {
"copilot-compass": {
"type": "http",
"url": "https://random-words.trycloudflare.com/mcp"
}
}
}
Note: The free
trycloudflare.comURL changes each time you restart the tunnel. For a persistent URL, set up a named tunnel with your own domain.
ngrok is another popular tunneling option with a free tier.
# Install ngrok
npm install -g ngrok
# Or download from https://ngrok.com/download
Start the tunnel:
# Start the MCP server
npm start
# In another terminal
ngrok http 3001
ngrok provides a URL like https://abc123.ngrok.io. Update your MCP config accordingly.
If you use Tailscale, you can use Funnel to expose services.
tailscale funnel 3001
For production or persistent deployments:
Using PM2 (Node.js process manager):
# Install PM2
npm install -g pm2
# Start the server
pm2 start dist/server.js --name copilot-compass
# View logs
pm2 logs copilot-compass
# Stop the server
pm2 stop copilot-compass
# Auto-start on system boot
pm2 startup
pm2 save
Using systemd (Linux):
Create /etc/systemd/system/copilot-compass.service:
[Unit]
Description=Copilot Compass MCP Server
After=network.target
[Service]
Type=simple
User=your-user
WorkingDirectory=/path/to/copilot-compass
ExecStart=/usr/bin/node dist/server.js
Restart=on-failure
Environment=GITHUB_TOKEN=your-token
Environment=PORT=3001
[Install]
WantedBy=multi-user.target
Then:
sudo systemctl daemon-reload
sudo systemctl enable copilot-compass
sudo systemctl start copilot-compass
flowchart TB
subgraph Host["MCP Host (VS Code, Claude Desktop)"]
User([User]) --> Model[AI Model]
Model -->|Tool Call| Server
Server -->|JSON Report| Model
Model -->|Summary| Response([Response])
subgraph Dashboard["React Dashboard"]
useApp["useApp() hook"]
Charts["Chart.js Visualizations"]
end
end
subgraph Server["Copilot Compass Server"]
Tools["registerAppTool()
• generate_copilot_report
• refresh_report"]
Resources["registerAppResource()
• ui://copilot-metrics/mcp-app.html"]
Tools --> Resources
end
Resources -->|HTML Bundle| Dashboard
Server -->|ontoolresult| useApp
subgraph GitHub["GitHub API"]
API["/enterprises/{slug}/copilot/metrics"]
end
Server -->|Fetch| API
API -->|Metrics Data| Server
sequenceDiagram
participant User
participant Model as AI Model
participant Server as MCP Server
participant API as GitHub API
participant UI as React Dashboard
User->>Model: "Generate Copilot report for acme-corp"
Model->>Server: generate_copilot_report(enterpriseSlug, dateRange)
Server->>API: GET /enterprises/acme-corp/copilot/metrics
API-->>Server: CopilotUsageMetrics[]
Server->>Server: Transform to CopilotReport
Server-->>Model: JSON Report
Server-->>UI: ontoolresult(report)
UI->>UI: Render charts & tables
Model-->>User: Summary with insights
generate_copilot_reportGenerate a comprehensive Copilot usage report with interactive dashboard.
| Parameter | Type | Required | Description |
|---|---|---|---|
enterpriseSlug | string | Yes | Enterprise identifier |
orgName | string | No | Organization within enterprise |
dateRange.from | string | Yes | Start date (YYYY-MM-DD) |
dateRange.to | string | Yes | End date (YYYY-MM-DD) |
Example prompt:
Generate a Copilot report for enterprise "acme-corp" from 2024-01-01 to 2024-01-31
refresh_report (App-Only)Same parameters as above, but with visibility: ["app"] — hidden from AI, invocable only by the UI for refresh actions.
| URI | Description |
|---|---|
ui://copilot-metrics/mcp-app.html | Interactive React dashboard |
Here are some common prompts to get the most out of Copilot Compass:
Generate a Copilot report for enterprise "acme-corp" from 2024-01-01 to 2024-01-31
Show me Copilot usage for "my-enterprise" for the last 30 days and highlight adoption trends
Generate a Copilot report for organization "engineering-team" within enterprise "acme-corp" for Q4 2024
Generate Copilot reports for enterprise "acme-corp" for January and February 2024 and compare the adoption rates
Analyze the Copilot report for "acme-corp" and tell me:
1. Which languages have the highest acceptance rates?
2. What's the trend in daily active users?
3. Which editors are most popular?
4. How is Copilot Chat being used?
The AI model can analyze the report data and provide insights like:
copilot-compass/
├── server.ts # MCP server entry (tools + resources)
├── src/
│ ├── types.ts # TypeScript interfaces
│ ├── github-client.ts # GitHub API client with caching
│ ├── report-generator.ts # Report generation + mock data
│ ├── html-report-generator.ts # Standalone HTML export
│ ├── svg-charts.ts # Inline SVG for markdown
│ ├── visual-report-generator.ts # Markdown report with charts
│ ├── mcp-app.tsx # React dashboard entry
│ └── global.css # Dashboard styles
├── mcp-app.html # Vite entry point
├── assets/
│ └── icon.svg # Compass icon
├── dist/ # Build output
├── .env.example # Sample environment variables
├── vite.config.ts # Vite config (singlefile plugin)
├── tsconfig.json # TypeScript config (React)
└── tsconfig.server.json # TypeScript config (Node.js)
Copy the sample environment file and configure your settings:
cp .env.example .env
| Variable | Description | Default |
|---|---|---|
GITHUB_TOKEN | GitHub PAT with Copilot metrics access | — |
PORT | Server port | 3001 |
MCP_SERVER_PORT | Alternative port variable | 3001 |
CACHE_TTL_SECONDS | API response cache duration | 300 |
| Scope | Purpose |
|---|---|
manage_billing:copilot | Required for metrics access |
read:enterprise | Enterprise-level queries |
read:org | Organization-level queries |
# Watch mode for UI development
npm run dev
# Build for production
npm run build
# Run server (requires build first)
npm start
# Type checking
npx tsc --noEmit
The project includes a comprehensive test suite using Vitest.
# Run all tests
npm test
# Run tests in watch mode (re-runs on file changes)
npm run test:watch
# Run tests with coverage report
npm run test:coverage
| Module | Coverage | Description |
|---|---|---|
github-client.ts | 98% | API client, caching, error handling |
report-generator.ts | 98% | Report generation, mock data, aggregation |
svg-charts.ts | 100% | SVG chart generation functions |
schemas.ts | 100% | Zod schema validation |
tests/
├── setup.ts # Global test setup and mocks
├── github-client.test.ts # API client tests (15 tests)
├── report-generator.test.ts # Report generator tests (18 tests)
├── svg-charts.test.ts # Chart generation tests (40 tests)
├── integration.test.ts # End-to-end pipeline tests (37 tests)
└── fixtures/
└── api-responses.ts # Realistic GitHub API response fixtures
Total: 110 tests
The project uses Zod schemas to validate GitHub API responses at runtime, ensuring data integrity:
// Validation is automatic - errors are thrown if API response is malformed
const metrics = await client.getEnterpriseMetrics('my-enterprise', dateRange);
Validation can be disabled for performance (not recommended):
VALIDATE_API_RESPONSES=false npm start
Cause: Your GitHub token lacks the required scopes.
Solution: Create a new PAT with these scopes:
manage_billing:copilot (required)read:enterprise for enterprise metricsread:org for organization metricsCause: The enterprise slug or organization name doesn't exist, or you don't have access.
Solution:
Cause: The GitHub API call failed, so the app falls back to demo data.
Solution:
GITHUB_TOKEN environment variable is setSolution:
# Find and kill the process using port 3001
npx kill-port 3001
# Or use a different port
PORT=3002 npm start
Cause: The MCP client hasn't connected to the server or needs a refresh.
Solution:
Solution:
# Clean build artifacts and rebuild
rm -rf dist && npm run build
Enable verbose logging to diagnose issues:
DEBUG=* npm start
Copilot Compass works with:
Individual Copilot Pro subscriptions do not have access to the metrics API.
The GitHub API returns up to 28 days of data per request. For longer periods, the app automatically handles pagination. Historical data is available from when Copilot was enabled for your organization.
Yes, responses are cached for 5 minutes (configurable via CACHE_TTL_SECONDS). This reduces API calls during repeated queries or dashboard refreshes.
Yes, for demos. The app falls back to realistic mock data if no token is provided or the API fails. Look for dataSource: "mock" in the report.
The JSON report returned by the tool contains all metrics. The AI model can format this into Markdown, CSV, or other formats on request.
Currently, only GitHub Cloud (github.com) is supported. GHES support would require modifying the API base URL.
@modelcontextprotocol/ext-apps)git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT - Samuel Tauil
Built with the MCP Apps SDK
Loading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.