Skip to main content
Glama
app_config.py499 B
# app_config.py """ 配置模块,用于管理应用程序配置 """ import os import json from dotenv import load_dotenv # 加载环境变量 load_dotenv() class Config: """配置类,用于管理应用程序配置""" ## 默认stdio TYPE=os.getenv("TYPE","stdio") PORT = int(os.getenv("PORT", 9087)) CONTEXT_PATH = os.getenv("CONTEXT_PATH", "") # 服务器配置 SERVER_NAME = os.getenv("SERVER_NAME", "My-MCP-Server") # 创建默认配置实例 config = Config()

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/jeweis/mcp-server-template'

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