get-license-info
Retrieve detailed license information for repositories or projects integrated with GitHub Enterprise, enabling users to manage compliance and licensing requirements directly through the MCP server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server/index.js:366-390 (handler)MCP tool handler and registration for 'get-license-info'. Registers the tool with empty schema and implements the handler that calls AdminAPI.getLicenseInfo(), formats the response as text content, and handles errors.server.tool("get-license-info", {}, async () => { try { const licenseInfo = await context.admin.getLicenseInfo(); return { content: [ { type: "text", text: `GitHub Enterprise 라이센스 정보:\n\n${JSON.stringify(licenseInfo, null, 2)}` } ] }; } catch (error) { console.error('라이센스 정보 조회 오류:', error); return { content: [ { type: "text", text: `라이센스 정보 조회 중 오류가 발생했습니다: ${error.message}` } ], isError: true }; } });
- api/admin/admin.js:14-16 (helper)Helper method in AdminAPI class that fetches GitHub Enterprise license information via the client's GET request to the 'enterprise/settings/license' endpoint.async getLicenseInfo() { return this.client.get('enterprise/settings/license'); }