Skip to content

fix: load MCP and platform tools when agent tools is None#4678

Merged
greysonlalonde merged 3 commits into
mainfrom
gl/fix/mcp-tools-none-tools
Mar 3, 2026
Merged

fix: load MCP and platform tools when agent tools is None#4678
greysonlalonde merged 3 commits into
mainfrom
gl/fix/mcp-tools-none-tools

Conversation

@greysonlalonde

@greysonlalonde greysonlalonde commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • When an agent is created with mcps (or apps) but no explicit tools, the tools list defaults to None and MCP/platform tools were silently dropped due to the self.tools is not None guard
  • Initialize self.tools = [] when it's None before extending with MCP or platform tools

Closes #4568

@greysonlalonde greysonlalonde merged commit e7f17d2 into main Mar 3, 2026
47 of 49 checks passed
@greysonlalonde greysonlalonde deleted the gl/fix/mcp-tools-none-tools branch March 3, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]When I use mcps but tools is None, it will not load mcp tools

2 participants