Skip to main content
Glama
portel-dev

NCP - Natural Context Provider

by portel-dev
coverage-boost.test.ts1.06 kB
import { describe, it, expect } from "@jest/globals"; import { DiscoveryEngine } from "../src/discovery/engine.js"; describe("Coverage Boost Tests", () => { let engine: DiscoveryEngine; beforeEach(async () => { engine = new DiscoveryEngine(); await engine.initialize(); }); it("should exercise pattern extraction", async () => { await engine.indexTool({ name: "test:tool", description: "create files and edit multiple directories with various operations", mcpName: "test" }); const stats = engine.getStats(); expect(stats.totalTools).toBeGreaterThan(0); }); it("should exercise similarity matching", async () => { await engine.indexTool({ name: "similar:one", description: "database operations and queries", mcpName: "db" }); await engine.indexTool({ name: "similar:two", description: "file system operations", mcpName: "fs" }); const related = await engine.findRelatedTools("similar:one"); expect(Array.isArray(related)).toBe(true); }); });

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/portel-dev/ncp'

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