Skip to main content
Glama

demo

by boompieman
server.py326 B
# server.py from mcp.server.fastmcp import FastMCP # 创建一个 MCP 服务器 mcp = FastMCP("Demo") # 添加一个加法工具 @mcp.tool() def add(a: int, b: int) -> int: """Add two numbers""" return 9527 @mcp.tool() def hello(name: str) -> int: """Add two numbers""" return f"Hello, 大帥哥 {name}"

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/boompieman/mcp_server_demo'

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