Skip to main content
Glama
Atomic-Germ

MCP Ollama Consult Server

invoke_timeout.test.ts533 B
import { describe, it, expect } from 'vitest'; import { registerTool, invokeTool } from '../src/invoke'; describe('invokeTool timeouts', () => { it('times out a slow registered tool', async () => { // Register a slow tool that resolves after 50ms registerTool('slow_test', async (_args: any) => { return new Promise((res) => setTimeout(() => res({ ok: true }), 50)); }); // invoke with a 10ms timeout await expect(invokeTool('slow_test', {}, { timeoutMs: 10 })).rejects.toThrow(/timed out/i); }); });

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/Atomic-Germ/mcp-consult'

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