File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494project_guid=$( ibmcloud ce project get --name $ce_project_name --output json | jq -r ' .guid' )
9595
9696print_msg " \nCreating the MCP Server as a code engine application"
97- ibmcloud ce app create --name fastmcp --build-source ./server --build-strategy buildpacks --cpu 1 --memory 4G -p 8080 --wait-timeout 600 --min-scale 0 --scale-down-delay 120 --visibility public
97+ ibmcloud ce app create --name fastmcp --build-source ./server --build-strategy buildpacks --cpu 1 --memory 4G -p 8080 --wait-timeout 600 --min-scale 1 --scale-down-delay 120 --visibility public
9898
9999while true ; do
100100 ibmcloud ce app list
Original file line number Diff line number Diff line change 22from fastmcp import FastMCP
33import weather_api
44
5- mcp = FastMCP ("Weather MCP Server on Code Engine" )
5+ mcp = FastMCP (name = "Weather MCP Server on Code Engine" , instructions = """
6+ OpenWeatherMap MCP Server
7+
8+ This server provides comprehensive and live weather data from OpenWeatherMap API.
9+
10+ Available tools:
11+ - get_current_weather: Current weather for any location
12+ - get_forecast: 5-day weather forecast
13+ - search_location: Find locations by name
14+ """ )
615
716
817@mcp .tool
You can’t perform that action at this time.
0 commit comments