Skip to main content
Glama
mcpFactory.ts366 B
import type { ToolDefinition, ResourceDefinition } from '../../src/types/mcp.js' export function makeTools(...names: string[]): ToolDefinition[] { return names.map((n) => ({ name: n, description: `${n} tool` })) } export function makeResources(...uris: string[]): ResourceDefinition[] { return uris.map((u) => ({ uri: u, name: u, mimeType: 'text/plain' })) }

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/Jakedismo/master-mcp-server'

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