Skip to main content
Glama
response.ts271 B
import type {CallToolResult} from '@modelcontextprotocol/sdk/types.js'; export function jsonResult<T extends Record<string, unknown>>(data: T): CallToolResult { return { content: [{type: 'text', text: JSON.stringify(data, null, 2)}], structuredContent: data, }; }

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/domdomegg/gmail-mcp'

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