Skip to main content
Glama
by Ritesh-sudo
FeedHandler.spec.ts1 kB
import fs from "node:fs/promises"; import { describe, it, expect } from "vitest"; import { parseFeed } from "./index.js"; const documents = new URL("__fixtures__/Documents/", import.meta.url); describe("parseFeed", () => { it("(rssFeed)", async () => expect( parseFeed( await fs.readFile( new URL("RSS_Example.xml", documents), "utf8", ), ), ).toMatchSnapshot()); it("(atomFeed)", async () => expect( parseFeed( await fs.readFile( new URL("Atom_Example.xml", documents), "utf8", ), ), ).toMatchSnapshot()); it("(rdfFeed)", async () => expect( parseFeed( await fs.readFile( new URL("RDF_Example.xml", documents), "utf8", ), ), ).toMatchSnapshot()); });

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/Ritesh-sudo/MCPJobSearch'

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