Skip to content

Commit f997d03

Browse files
Apply suggestion from @Copilot
Make sure agent network metadata is a dictionary instance. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dfb1213 commit f997d03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neuro_san/service/mcp/processors/mcp_tools_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ async def _get_tool_description(
234234
"inputSchema": self.tool_request_validator.get_request_schema()
235235
}
236236
# Include agent network metadata in MCP _meta field if available:
237-
network_metadata: Dict[str, Any] = agent_network.get_metadata()
238-
if network_metadata is not None:
237+
network_metadata: Any = agent_network.get_metadata()
238+
if isinstance(network_metadata, dict):
239239
tool_dict["_meta"] = network_metadata
240240
return tool_dict
241241

0 commit comments

Comments
 (0)