Skip to main content
Glama

octomind-mcp

Official
by OctoMind-dev
sessionToApiKeyResolver.ts487 B
import { getSession } from "./session"; import { theStdioSessionId } from "./tools"; /** * for StdioServerTransport the sessionId undefined so we check if there is * only one session with StdioServerTransport and return it * @param sessionId * @returns */ export const getApiKey = async ( sessionId: string | undefined, ): Promise<string> => { if (!sessionId) { sessionId = theStdioSessionId; } const session = await getSession(sessionId); return session.apiKey; };

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/OctoMind-dev/octomind-mcp'

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