Skip to main content
Glama

CopilotMCP

hello.py561 B
from fastmcp import FastMCP from starlette.applications import Starlette from starlette.routing import Mount mcp = FastMCP(name="MyServer") @mcp.tool() def hello(name: str) -> str: return f"Hello, {name}!" mcp_app = mcp.streamable_http_app(path="/hello") app = Starlette( routes=[ Mount("/hello-server", app=mcp_app) ], lifespan=mcp_app.router.lifespan_context, debug=True, ) if __name__ == "__main__": mcp.run(transport="streamable-http",host="127.0.0.1", port=4200, path="/mcp", log_level="debug")

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/mehrshadshams/CopilotMCP'

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