We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/parameshwaran1/mcpserverexample'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
server_1.py•360 B
from mcp.server.fastmcp import FastMCP
mcp = FastMCP(name="Deployable MCP Server")
@mcp.tool()
def add(i:int , j:int) -> int:
"""
Adds two integers and returns the result.
Args:
i (int): The first integer to add.
j (int): The second integer to add.
Returns:
int: The sum of i and j.
"""
return i+ j