Skip to main content
Glama

AI Note MCP Server

by ainote-dev
oauth.js•452 B
export function authenticateWithOAuth(headers = {}) { const authHeader = headers['authorization'] || headers['Authorization']; if (!authHeader || !authHeader.startsWith('Bearer ')) { throw new Error('Missing or invalid Bearer token for OAuth authentication'); } const token = authHeader.substring('Bearer '.length).trim(); if (!token) { throw new Error('Bearer token is empty'); } return { type: 'oauth', token }; }

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