Skip to main content
Glama

MCP Weather Server

main.test.ts658 B
import * as mainModule from '../../src/main.js'; describe('main.ts', () => { it('should export expected properties/functions', () => { // Check for known exports (adjust as needed) expect(mainModule).toBeDefined(); // Example: if main exports a function called main if (typeof mainModule.main === 'function') { expect(typeof mainModule.main).toBe('function'); } }); it('should not throw when importing', () => { expect(() => require('../../src/main.js')).not.toThrow(); }); // Removed tests for non-existent exports handleToolRequest and init // Add more tests here as main.ts exports more testable functions });

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/ParthibanRajasekaran/mcp-weather'

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