Skip to main content
Glama
ingeno
by ingeno
handler.py580 B
from collections.abc import Awaitable, Callable from typing import TypeAlias from mcp import CreateMessageResult from mcp.server.session import ServerSession from mcp.shared.context import LifespanContextT, RequestContext from mcp.types import CreateMessageRequestParams as SamplingParams from mcp.types import ( SamplingMessage, ) ServerSamplingHandler: TypeAlias = Callable[ [ list[SamplingMessage], SamplingParams, RequestContext[ServerSession, LifespanContextT], ], str | CreateMessageResult | Awaitable[str | CreateMessageResult], ]

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/ingeno/mcp-openapi-lambda'

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