Skip to main content
Glama

MCP Specification Server

by MCPJam
23
6
  • Apple
cleanup.js•428 B
import {addAbortListener} from 'node:events'; import {onExit} from 'signal-exit'; // If the `cleanup` option is used, call `subprocess.kill()` when the parent process exits export const cleanupOnExit = (subprocess, {cleanup, detached}, {signal}) => { if (!cleanup || detached) { return; } const removeExitHandler = onExit(() => { subprocess.kill(); }); addAbortListener(signal, () => { removeExitHandler(); }); };

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/MCPJam/mcp-spec'

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