Skip to content

Conversation

@OskarStark
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues Fix #801
License MIT

Summary

  • Add support for configurable scan_dirs and exclude_dirs in tool discovery
  • Allows users to specify multiple directories to scan for MCP tools
  • Allows users to exclude specific directories from discovery

Configuration Example

# config/packages/mcp.yaml
mcp:
    discovery:
        scan_dirs: ['src', 'lib']
        exclude_dirs: ['src/DataFixtures']

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @OskarStark 🫶

@chr-hertel chr-hertel force-pushed the mcp-tool-discovery-options branch from da8fc02 to b1c6e93 Compare October 23, 2025 17:19
@chr-hertel
Copy link
Member

Thank you @OskarStark.

@chr-hertel chr-hertel merged commit 7a631c6 into symfony:main Oct 23, 2025
14 checks passed
@OskarStark OskarStark deleted the mcp-tool-discovery-options branch October 23, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature MCP Bundle Issues & PRs about the MCP SDK integration bundle Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MCP Bundle] Add options for tool discovery

3 participants