Skip to main content
Glama

octomind-mcp

Official
by OctoMind-dev
sessionToApiKeyResolver.spec.ts660 B
import { getApiKey } from "@/sessionToApiKeyResolver"; import { theStdioSessionId } from "@/tools"; import { getSession, Session } from "@/session"; jest.mock("@/session"); const mockedStioSession: Session = { apiKey: "test-key", sessionId: theStdioSessionId, testReportIds: [], testCaseIds: [], tracesForTestReport: {}, }; describe("getApiKey", () => { it("uses the stdio sessionId if no sessionId given", async () => { jest.mocked(getSession).mockResolvedValue(mockedStioSession); const apiKey = await getApiKey(undefined); expect(getSession).toHaveBeenCalledWith(theStdioSessionId); expect(apiKey).toBe("test-key"); }); });

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/OctoMind-dev/octomind-mcp'

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