Skip to main content
Glama
clean-cache.test.js721 B
'use strict' const { test } = require('node:test') const build = require('..') test('Should clean the cache', (t) => { t.plan(1) const schema = { $id: 'test', type: 'string' } t.assert.doesNotThrow(() => { build(schema) build(schema) }) }) test('Should clean the cache with external schemas', (t) => { t.plan(1) const schema = { $id: 'test', definitions: { def: { type: 'object', properties: { str: { type: 'string' } } } }, type: 'object', properties: { obj: { $ref: '#/definitions/def' } } } t.assert.doesNotThrow(() => { build(schema) build(schema) }) })

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/krtw00/search-mcp'

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