Skip to main content
Glama

mcp-github-project-manager

GitHubConfig.ts1.4 kB
export class GitHubConfig { #owner: string; #repo: string; #token: string; #projectId?: string; constructor(owner: string, repo: string, token: string, projectId?: string) { if (!owner) throw new Error("Owner is required"); if (!repo) throw new Error("Repository is required"); if (!token) throw new Error("Token is required"); this.#owner = owner; this.#repo = repo; this.#token = token; this.#projectId = projectId; // Make properties read-only but accessible Object.defineProperties(this, { owner: { get: () => this.#owner, enumerable: true, configurable: false, }, repo: { get: () => this.#repo, enumerable: true, configurable: false, }, token: { get: () => this.#token, enumerable: true, configurable: false, }, projectId: { get: () => this.#projectId, enumerable: true, configurable: false, }, }); } static create(owner: string, repo: string, token: string, projectId?: string): GitHubConfig { return new GitHubConfig(owner, repo, token, projectId); } } // Add type declarations for the getters declare module "./GitHubConfig" { interface GitHubConfig { readonly owner: string; readonly repo: string; readonly token: string; readonly projectId?: string; } }

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/kunwarVivek/mcp-github-project-manager'

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