@yeepay/awesome-components-mcp
Version:
MCP server providing access to awesome-components documentation and integration guides with dual-mode operation: direct fetch and GitLab MCP instruction generation
39 lines (38 loc) • 1.94 kB
JavaScript
;
/**
* Configuration for the Awesome Components MCP Server
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.config = exports.INTERNAL_GITLAB_HOST = exports.LLMS_TXT_FILE = exports.GITLAB_PROJECT_ID = exports.LLMS_TXT_URL = exports.PORT = exports.GITLAB_PERSONAL_ACCESS_TOKEN = exports.MAIN_LLMS_URL = exports.GITLAB_BASE_URL = void 0;
// Environment variable configurations with fallback defaults
exports.GITLAB_BASE_URL = process.env.GITLAB_BASE_URL || 'http://gitlab.yeepay.com/awesome/awesome-components/-/raw/main/';
exports.MAIN_LLMS_URL = process.env.MAIN_LLMS_URL || 'http://gitlab.yeepay.com/awesome/awesome-components/-/raw/main/llms.txt';
exports.GITLAB_PERSONAL_ACCESS_TOKEN = process.env.GITLAB_PERSONAL_ACCESS_TOKEN;
exports.PORT = process.env.PORT ? parseInt(process.env.PORT, 10) : 3000;
// New environment variables for gitlab-mcp integration
exports.LLMS_TXT_URL = process.env.LLMS_TXT_URL;
exports.GITLAB_PROJECT_ID = process.env.GITLAB_PROJECT_ID;
exports.LLMS_TXT_FILE = process.env.LLMS_TXT_FILE || 'llms.txt';
exports.INTERNAL_GITLAB_HOST = process.env.INTERNAL_GITLAB_HOST;
// Server configuration object
exports.config = {
port: exports.PORT,
name: "awesome-components-mcp",
version: "1.0.0",
description: "MCP server providing access to awesome-components documentation and integration guides",
// URL configurations (backward compatibility)
urls: {
gitlabBase: exports.GITLAB_BASE_URL,
mainLlms: exports.MAIN_LLMS_URL
},
// Authentication configurations
auth: {
gitlabToken: exports.GITLAB_PERSONAL_ACCESS_TOKEN
},
// New configuration for gitlab-mcp integration
llmsTxtUrl: exports.LLMS_TXT_URL,
llmsTxtProjectId: exports.GITLAB_PROJECT_ID,
llmsTxtFile: exports.LLMS_TXT_FILE,
internalGitlabHost: exports.INTERNAL_GITLAB_HOST,
internalGuidesProjectId: exports.GITLAB_PROJECT_ID
};