Skip to main content
Glama

Superglue MCP

Official
by superglue-ai
localKeyManager.ts805 B
import { ApiKeyManager } from "./apiKeyManager.js"; export class LocalKeyManager implements ApiKeyManager { private readonly authToken: string | undefined; private readonly defaultOrgId = ""; constructor() { this.authToken = process.env.AUTH_TOKEN; } public async getApiKeys(): Promise<{ orgId: string; key: string }[]> { if (!this.authToken) { return []; } return [{ orgId: this.defaultOrgId, key: this.authToken }]; } public async authenticate(apiKey: string): Promise<{ orgId: string; success: boolean }> { if (!this.authToken) { return { orgId: '', success: false }; } return { orgId: this.defaultOrgId, success: apiKey === this.authToken }; } public cleanup(): void { // No cleanup needed for local key manager } }

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/superglue-ai/superglue'

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