Skip to main content
Glama

MCP Ollama Consult Server

by Atomic-Germ
invoke_timeout.test.ts536 B
import { describe, it, expect, vi } 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); }); });

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