Skip to content

Commit 64ba6ae

Browse files
authored
Merge pull request #48 from datashaman/patch-1
Python weather server missing main function
2 parents dfc9247 + 3bc819f commit 64ba6ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

weather-server-python/weather.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ async def get_forecast(latitude: float, longitude: float) -> str:
8989

9090
return "\n---\n".join(forecasts)
9191

92-
if __name__ == "__main__":
92+
def main():
9393
# Initialize and run the server
94-
mcp.run(transport='stdio')
94+
mcp.run(transport='stdio')
95+
96+
if __name__ == "__main__":
97+
main()

0 commit comments

Comments
 (0)