Skip to main content
Glama
Cognitive-Stack

Hermes Search MCP Server

example-tool.test.ts659 B
import exampleTool from "../example-tool"; jest.mock("../../config/env", () => ({ getConfig: jest.fn().mockReturnValue({ requiredVar: "test-value", }), })); describe("exampleTool", () => { beforeEach(() => { jest.clearAllMocks(); }); it("should handle successful operation", async () => { const result = await exampleTool("param1", "param2", { option1: "test" }); expect(result).toBe("Operation successful"); }); it("should throw error when required options are missing", async () => { await expect( exampleTool("param1", "param2", {}) ).rejects.toThrow("Either option1 or option2 must be provided"); }); });

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/Cognitive-Stack/hermes-search-mcp'

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