Skip to main content
Glama
ddukbg

GitHub Enterprise MCP Server

get-enterprise-stats

Retrieve statistics and analytics data from GitHub Enterprise to monitor organizational performance and track key metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler and registration for the 'get-enterprise-stats' MCP tool. Fetches enterprise stats via AdminAPI, returns formatted JSON text or error response.
    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 }; } });
  • The supporting getStats() method in AdminAPI class that makes the GitHub Enterprise Server API request to '/enterprise/stats/all'.
    async getStats() { return this.client.get('enterprise/stats/all'); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ddukbg/github-enterprise-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server