Created
April 14, 2025 15:47
-
-
Save Kludex/96f9902ead69fdfabdf1762550fb7847 to your computer and use it in GitHub Desktop.
MCP Server with Logfire
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mcp.server import FastMCP | |
import logfire | |
import uvicorn | |
logfire.configure() | |
server = FastMCP("Summarizer") | |
app = server.sse_app() | |
logfire.instrument_starlette(app) | |
@server.tool() | |
async def summarize(content: str) -> str: | |
"""Summarizer""" | |
return "Nothing important..." | |
if __name__ == "__main__": | |
uvicorn.run(app, host="0.0.0.0", port=8050) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment