Skip to main content
Glama
ddukbg

GitHub Enterprise MCP Server

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }; } });
  • 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'); }

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