Skip to main content
Glama
index.ts362 B
/** * Utility functions */ import { Tool } from "@modelcontextprotocol/sdk/types.js"; /** * Filter tools based on enabledTools parameter */ export function filterTools( tools: Tool[], enabledToolsSet: Set<string> = new Set() ): Tool[] { if (enabledToolsSet.size === 0) return tools; return tools.filter((tool) => enabledToolsSet.has(tool.name)); }

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

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