Skip to main content
Glama
tool-handlers.test.ts921 B
import { describe, it, expect, vi, beforeEach } from 'vitest'; import { createLiaraClient } from '../../api/client.js'; describe('MCP Tool Handlers Integration', () => { beforeEach(() => { process.env.LIARA_API_TOKEN = 'test-token'; }); describe('Tool Parameter Validation', () => { it('should validate required parameters are present', () => { // This would test that tools reject calls without required params expect(true).toBe(true); }); it('should handle optional pagination parameters', () => { // Verify pagination is optional in all list operations expect(true).toBe(true); }); }); describe('Error Propagation', () => { it('should format service errors for MCP responses', () => { // Verify errors are properly formatted expect(true).toBe(true); }); }); });

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/razavioo/liara-mcp'

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