Skip to main content
Glama

Notion MCP Server

Official
by makenotion
template.ts761 B
import Mustache from 'mustache' import { AuthTemplate, TemplateContext } from './types' export function renderAuthTemplate(template: AuthTemplate, context: TemplateContext): AuthTemplate { // Disable HTML escaping for URLs Mustache.escape = (text) => text // Render URL with template variables const renderedUrl = Mustache.render(template.url, context) // Create a new template object with rendered values const renderedTemplate: AuthTemplate = { ...template, url: renderedUrl, headers: { ...template.headers }, // Create a new headers object to avoid modifying the original } // Render body if it exists if (template.body) { renderedTemplate.body = Mustache.render(template.body, context) } return renderedTemplate }

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/makenotion/notion-mcp-server'

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