Skip to main content
Glama
fastmcp_echo_server.py439 B
"""FastMCP echo server used for Phase 0 sanity checks.""" from fastmcp import Context, FastMCP mcp = FastMCP("Phase0 Echo Server") @mcp.tool() async def echo(message: str, ctx: Context | None = None) -> str: """Echo a message back to the caller.""" if ctx is not None: await ctx.info(f"Echoing message of length {len(message)}") return f"Echo: {message}" if __name__ == "__main__": mcp.run(transport="stdio")

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/draphonix/mcp-code-mode'

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