Skip to main content
Glama
deployment.py442 B
# import FastMCP from the mcp.server.fastmcp module from mcp.server.fastmcp import FastMCP # Create an instance of FastMCP mcp = FastMCP("mcp-sum-example") # A tool that sums a list of integers @mcp.tool(name="sum_numbers") def sum_numbers(numbers: list[int]) -> int: """ Returns the sum of a list of integers provided as input. Args: numbers (list[int]): A list of integers to be summed. """ return sum(numbers)

Implementation Reference

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/Mandapati-SuryanarayanaRaju/mcp-deployment'

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