Skip to main content
Glama
verify.js710 B
import { spawn } from "child_process"; import path from "path"; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const serverPath = path.join(__dirname, "build", "index.js"); const serverProcess = spawn("node", [serverPath], { stdio: ["pipe", "pipe", "inherit"], }); const request = { jsonrpc: "2.0", id: 1, method: "tools/list", }; serverProcess.stdin.write(JSON.stringify(request) + "\n"); serverProcess.stdout.on("data", (data) => { console.log("Received:", data.toString()); serverProcess.kill(); }); serverProcess.on("error", (err) => { console.error("Failed to start server:", err); });

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

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