Skip to content

Commit 1a83c14

Browse files
committed
Fix spaces in README.md
1 parent 9b0f904 commit 1a83c14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,15 @@ async def fetch_weather(city: str) -> str:
246246
response = await client.get(f"https://api.weather.com/{city}")
247247
return response.text
248248

249+
249250
# Get a reference to the tool
250251
tool = mcp._tool_manager.get_tool("fetch_weather")
251252

253+
252254
# Disable the tool temporarily
253255
await tool.disable(mcp.get_context())
254256

257+
255258
# Later, re-enable the tool
256259
await tool.enable(mcp.get_context())
257260
```

0 commit comments

Comments
 (0)