get-enterprise-stats
Retrieve and analyze GitHub Enterprise repository data, issues, pull requests, and workflows to monitor and manage development activity efficiently using the MCP server integration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.js:392-416 (registration)Registration of the 'get-enterprise-stats' tool, including its inline handler that fetches and formats enterprise statistics using AdminAPI.getStats().server.tool("get-enterprise-stats", {}, async () => { try { const stats = await context.admin.getStats(); return { content: [ { type: "text", text: `GitHub Enterprise 통계 정보:\n\n${JSON.stringify(stats, null, 2)}` } ] }; } catch (error) { console.error('엔터프라이즈 통계 조회 오류:', error); return { content: [ { type: "text", text: `엔터프라이즈 통계 조회 중 오류가 발생했습니다: ${error.message}` } ], isError: true }; } });
- api/admin/admin.js:67-69 (handler)Core handler logic in AdminAPI.getStats() that makes the GitHub Enterprise API call to retrieve stats from the '/enterprise/stats/all' endpoint.async getStats() { return this.client.get('enterprise/stats/all'); }