Skip to main content
Glama

ContextEngine MCP Server

setup.test.ts•1.5 kB
import { describe, it, expect } from "vitest"; import { readFileSync } from "fs"; import { join } from "path"; // Load JSON fixtures const apiResponses = JSON.parse( readFileSync(join(__dirname, "../fixtures/api-responses.json"), "utf8") ); const mcpRequests = JSON.parse( readFileSync(join(__dirname, "../fixtures/mcp-requests.json"), "utf8") ); describe("Test Setup", () => { it("should have access to test fixtures", () => { expect(apiResponses).toBeDefined(); expect(apiResponses["start-context-engine"]).toBeDefined(); expect(mcpRequests).toBeDefined(); expect(mcpRequests.initialize).toBeDefined(); }); it("should have proper MCP request structure", () => { const initRequest = mcpRequests.initialize.request; expect(initRequest).toHaveProperty("jsonrpc"); expect(initRequest).toHaveProperty("id"); expect(initRequest).toHaveProperty("method"); expect(initRequest).toHaveProperty("params"); expect(initRequest.jsonrpc).toBe("2.0"); expect(initRequest.method).toBe("initialize"); }); it("should have proper MCP response structure", () => { const initResponse = mcpRequests.initialize.response; expect(initResponse).toHaveProperty("jsonrpc"); expect(initResponse).toHaveProperty("id"); expect(initResponse).toHaveProperty("result"); expect(initResponse.jsonrpc).toBe("2.0"); expect(initResponse.result).toHaveProperty("protocolVersion"); expect(initResponse.result).toHaveProperty("serverInfo"); }); });

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/livelifelively/context-engine-mcp'

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