Skip to main content
Glama

Deskaid

by ezyang
fastmcp.pyi1.03 kB
"""Type stubs for the mcp.server.fastmcp module. This module provides type definitions for the mcp.server.fastmcp module. """ from typing import ( Any, Callable, TypeVar, ) F = TypeVar("F", bound=Callable[..., Any]) class FastMCP: """MCP server implementation using FastAPI. This class provides a way to define and register tools for an MCP server. """ def __init__(self, name: str) -> None: """Initialize a new FastMCP server. Args: name: The name of the server """ ... def tool(self) -> Callable[[F], F]: """Decorator for registering a function as a tool. Returns: A decorator function that registers the decorated function as a tool """ ... def run(self) -> None: """Run the server.""" ... def sse_app(self) -> Any: """Return an ASGI application for the MCP server that can be used with SSE. Returns: An ASGI application """ ...

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/ezyang/codemcp'

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