Skip to main content
Glama

mcp-confluent

Official
by confluentinc
middleware.ts•735 B
import { logger } from "@src/logger.js"; import { Middleware } from "openapi-fetch"; export interface ConfluentEndpoints { cloud?: string; tableflow?: string; flink?: string; schemaRegistry?: string; kafka?: string; } export interface ConfluentAuth { apiKey: string; apiSecret: string; } /** * Creates a middleware that adds Authorization header using the provided auth credentials */ export const createAuthMiddleware = (auth: ConfluentAuth): Middleware => ({ async onRequest({ request }) { logger.debug({ request }, "Processing request"); request.headers.set( "Authorization", `Basic ${Buffer.from(`${auth.apiKey}:${auth.apiSecret}`).toString("base64")}`, ); return request; }, });

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/confluentinc/mcp-confluent'

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