File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def _get_config_path() -> Path:
9292 return home_dir / "tool_config.json"
9393
9494
95- def load_tool_config (settings : " Settings | None" = None ) -> dict [str , Any ]:
95+ def load_tool_config (settings : Settings | None = None ) -> dict [str , Any ]:
9696 """Load persisted tool config, seeding from env vars if no file exists."""
9797 path = _get_config_path ()
9898 if path .exists ():
@@ -138,7 +138,7 @@ def save_tool_config(config: dict[str, Any]) -> None:
138138 logger .exception ("Failed to save tool config to %s" , path )
139139
140140
141- async def _get_tool_metadata (server : " HomeAssistantSmartMCPServer" ) -> list [dict [str , Any ]]:
141+ async def _get_tool_metadata (server : HomeAssistantSmartMCPServer ) -> list [dict [str , Any ]]:
142142 """Extract metadata for all registered tools from the server.
143143
144144 Uses FastMCP's internal ``local_provider._list_tools()`` because the
@@ -202,9 +202,9 @@ async def _get_tool_metadata(server: "HomeAssistantSmartMCPServer") -> list[dict
202202
203203
204204def apply_tool_visibility (
205- mcp : " FastMCP" ,
205+ mcp : FastMCP ,
206206 config : dict [str , Any ],
207- settings : " Settings" ,
207+ settings : Settings ,
208208) -> set [str ]:
209209 """Apply tool visibility from config, respecting safety toggles.
210210
You can’t perform that action at this time.
0 commit comments