loading…
Search for a command to run...
loading…
An MCP server that retrieves GitHub Copilot usage metrics and seat assignment data across Enterprise, Organization, and Team levels. It allows users to monitor
An MCP server that retrieves GitHub Copilot usage metrics and seat assignment data across Enterprise, Organization, and Team levels. It allows users to monitor code completions, chat activity, and active user counts through integrated tools.
GitHub Copilot の利用状況メトリクスを取得する MCP (Model Context Protocol) サーバーです。
Enterprise、Organization、Team レベルでの Copilot 使用状況データを MCP ツールとして提供します。
| ツール名 | 説明 |
|---|---|
get_copilot_metrics_for_enterprise |
Enterprise 全体の日次 Copilot 利用メトリクス |
get_copilot_metrics_for_org |
Organization の日次 Copilot 利用メトリクス |
get_copilot_metrics_for_team |
Team の日次 Copilot 利用メトリクス |
get_copilot_seat_assignments |
Organization の Copilot シート割り当て情報 |
get_copilot_usage_summary |
Enterprise / Org / Seats の統合サマリー |
各ツールは、コード補完数・Chat 利用状況・アクティブユーザー数・言語 / エディタ別の内訳などを取得できます。
npm install
npm run build
.env ファイルまたは環境変数で以下を設定してください。
| 変数名 | 必須 | 説明 |
|---|---|---|
GITHUB_TOKEN |
Yes | GitHub Personal Access Token |
GITHUB_ENTERPRISE |
No | Enterprise slug |
GITHUB_ORG |
No | Organization 名 |
CACHE_DIR |
No | キャッシュディレクトリ(デフォルト: ./cache) |
Claude Desktop の場合、claude_desktop_config.json に以下を追加します。
{
"mcpServers": {
"copilot-usage": {
"command": "node",
"args": ["path/to/copilot-usage-mcp/dist/index.js"],
"env": {
"GITHUB_TOKEN": "ghp_xxxxxxxxxxxx",
"GITHUB_ENTERPRISE": "your-enterprise",
"GITHUB_ORG": "your-org"
}
}
}
}
# TypeScript のウォッチモードで開発
npm run dev
# テスト実行
npm test
# テストのウォッチモード
npm run test:watch
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"copilot-usage-mcp": {
"command": "npx",
"args": []
}
}
}