Skip to main content
Glama
list_llms_txt_sources.ts939 B
import { CallToolResult, TextContent, ServerRequest, ServerNotification, } from "@modelcontextprotocol/sdk/types.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; // --- List llms.txt Sources Tool --- export const list_llms_txt_sources = async ( extra: RequestHandlerExtra<ServerRequest, ServerNotification>, docSources: Record<string, string> ): Promise<CallToolResult> => { if (Object.keys(docSources).length === 0) { return { content: [{ type: "text", text: "No llms.txt sources configured." }], }; } let formatted_sources = "Available llms.txt sources:\n"; for (const name in docSources) { formatted_sources += `- ${name}: ${docSources[name]}\n`; } const content: TextContent[] = [ { type: "text", text: formatted_sources.trim() }, ]; return { content }; }; // Copyright (C) 2025 Christopher White // SPDX-License-Identifier: AGPL-3.0-or-later

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/maverickg59/sushimcp'

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