Skip to main content
Glama

MCP Server Fetch Python

by tatn
test_settings.py635 B
import os from mcp_server_fetch_python.settings import Settings def test_settings_default_values(): """デフォルト値のテスト""" settings = Settings() assert settings.OPENAI_API_KEY == "" assert settings.MODEL_NAME == "gpt-4o" def test_settings_from_env(): """環境変数からの設定値読み込みテスト""" test_api_key = "test-api-key" test_model = "gpt-3.5-turbo" os.environ["OPENAI_API_KEY"] = test_api_key os.environ["MODEL_NAME"] = test_model settings = Settings() assert settings.OPENAI_API_KEY == test_api_key assert settings.MODEL_NAME == test_model

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/tatn/mcp-server-fetch-python'

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