Skip to main content
Glama
index.ts639 B
import { isServerRunning, stopServer } from "../server/server"; import { createSpinner } from "nanospinner"; export const stopHttpServer = async () => { const spinner = createSpinner("Stopping HTTP API server...").start(); try { const serverRunning = await isServerRunning(); if (!serverRunning) { spinner.warn({ text: "HTTP API server is not running" }); return; } await stopServer(); spinner.success({ text: "HTTP API server offline" }); } catch (error: any) { spinner.error({ text: `Failed to stop HTTP API server: ${ error.message || "Unknown error" }`, }); } };

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/ashwwwin/furi'

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