Skip to main content
Glama

tv-recommender-mcp-server

temp-config.test.ts670 B
import { getConfig, validateApiKey } from '../utils/config'; describe('Config Test', () => { // 保存原始环境变量 const originalEnv = process.env; beforeEach(() => { // 设置环境变量 process.env = { ...originalEnv }; process.env.TMDB_API_KEY = 'test-api-key'; }); afterEach(() => { // 恢复环境变量 process.env = originalEnv; }); it('getConfig应该正确返回配置', () => { const config = getConfig(); expect(config.tmdbApiKey).toBe('test-api-key'); }); it('validateApiKey应该正确验证API密钥', () => { const apiKey = validateApiKey(); expect(apiKey).toBe('test-api-key'); }); });

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/terryso/tv-recommender-mcp-server'

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