Skip to main content
Glama

GitHub Copilot Response Time Statistics MCP Server

by fishcoderman
server.py501 B
# server.py from fastmcp import FastMCP mcp = FastMCP(name="My First MCP Server") @mcp.tool() def add(a: int, b: int) -> int: """Adds two integers.""" return a + b @mcp.resource("resource://config") def config() -> dict: """返回配置数据字典。""" return {"version": "1.0", "author": "MyTeam"} @mcp.tool() def greet(name: str) -> str: """为指定名字生成问候语""" return f"Hello, {name}! Welcome to the MCP server." if __name__ == "__main__": mcp.run()

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/fishcoderman/MCP'

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