Skip to main content
Glama
conninfo.mjs444 B
// src/conninfo.ts var getConnInfo = (c) => { const bindings = c.env.server ? c.env.server : c.env; const address = bindings.incoming.socket.remoteAddress; const port = bindings.incoming.socket.remotePort; const family = bindings.incoming.socket.remoteFamily; return { remote: { address, port, addressType: family === "IPv4" ? "IPv4" : family === "IPv6" ? "IPv6" : void 0 } }; }; export { getConnInfo };

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/Valerio357/bet-mcp'

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