Skip to main content
Glama

AI Note MCP Server

by ainote-dev
strategy-factory.js•552 B
import { authenticateWithMcpKey } from './mcp-key.js'; import { authenticateWithOAuth } from './oauth.js'; import { getFeatureFlags } from '../core/config.js'; export function resolveAuthContext(transportType, headers = {}) { if (transportType === 'stdio') { return authenticateWithMcpKey(); } const features = getFeatureFlags(); if (transportType === 'sse' && features.oauthAuth) { return authenticateWithOAuth(headers); } // Default fallback to MCP key to maintain backward compatibility. return authenticateWithMcpKey(); }

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

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