Skip to content

Commit a07bb8e

Browse files
authored
Merge pull request #73 from artyomboyko/patch-1
Update sdk.mdx
2 parents 0131b0f + ac43b98 commit a07bb8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

units/en/unit1/sdk.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ from mcp.server.fastmcp import FastMCP
2727
# Create an MCP server
2828
mcp = FastMCP("Weather Service")
2929

30-
30+
# Tool implementation
3131
@mcp.tool()
3232
def get_weather(location: str) -> str:
3333
"""Get the current weather for a specified location."""
3434
return f"Weather in {location}: Sunny, 72°F"
3535

36-
36+
# Resource implementation
3737
@mcp.resource("weather://{location}")
3838
def weather_resource(location: str) -> str:
3939
"""Provide weather data as a resource."""
4040
return f"Weather data for {location}: Sunny, 72°F"
4141

42-
42+
# Prompt implementation
4343
@mcp.prompt()
4444
def weather_report(location: str) -> str:
4545
"""Create a weather report prompt."""

0 commit comments

Comments
 (0)