Skip to main content
Glama
unregister.js451 B
'use strict' const { register, unregister } = require('../..') const assert = require('assert') function setup () { const obj = { foo: 'bar' } register(obj, shutdown) setImmediate(function () { unregister(obj) unregister(obj) // twice, this should not throw }) } let shutdownCalled = false function shutdown (obj) { shutdownCalled = true } setup() process.on('exit', function () { assert.strictEqual(shutdownCalled, false) })

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