Skip to main content
Glama
by microsoft
ini.test.ts688 B
import { describe, test } from "node:test" import assert from "node:assert/strict" import { INIParse, INIStringify } from "./ini" import { dedent } from "./indent" describe("ini", () => { test("rountrip", () => { const o = { a: "1", b: "foo" } const text = INIStringify(o) const r = INIParse(text) assert.equal(JSON.stringify(r), JSON.stringify(o)) }) test("fenced", () => { const o = { a: "1", b: "foo" } const text = dedent` \`\`\`ini ${INIStringify(o)} \`\`\` ` console.log(text) const r = INIParse(text) assert.equal(JSON.stringify(r), JSON.stringify(o)) }) })

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/microsoft/genaiscript'

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