Skip to main content
Glama
register.py483 B
from typing import List from mcp.server.fastmcp import FastMCP from src.api.common import filter_mcp_concepts from .types import Prompt from .prompts import prompts as prompts_list def register_prompts(mcp: FastMCP) -> None: filtered_prompts: List[Prompt] = filter_mcp_concepts(prompts_list) for prompt in filtered_prompts: func = prompt.func mcp.prompt( name=func.__name__, description=func.__doc__ or "", title=prompt.title )(func)

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/singlestore-labs/mcp-server-singlestore'

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