fix(config) : disable uninstalled McpBundle to fix boot crash
McpBundle was registered but symfony/ai-mcp-bundle is not installed, causing a critical error on boot. Disabled all MCP references: - bundles.php: removed McpBundle - mcp.yaml: renamed to mcp.yaml.disabled - routes.yaml: removed mcp route - services.yaml: commented McpHeaderAuthenticator, excluded src/Mcp/ - security.yaml: commented mcp firewall and access control - phpunit.dist.xml: excluded tests/Mcp All marked with TODO for re-enabling when the package is installed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,11 +27,12 @@ security:
|
||||
pattern: ^/api/session/profiles?$
|
||||
security: false
|
||||
|
||||
mcp:
|
||||
pattern: ^/_mcp
|
||||
stateless: true
|
||||
custom_authenticators:
|
||||
- App\Mcp\Security\McpHeaderAuthenticator
|
||||
# TODO: re-enable when symfony/ai-mcp-bundle is installed
|
||||
# mcp:
|
||||
# pattern: ^/_mcp
|
||||
# stateless: true
|
||||
# custom_authenticators:
|
||||
# - App\Mcp\Security\McpHeaderAuthenticator
|
||||
|
||||
api:
|
||||
pattern: ^/api
|
||||
@@ -55,7 +56,7 @@ security:
|
||||
- { path: ^/api/admin, roles: ROLE_ADMIN }
|
||||
- { path: ^/api/docs, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/api/health$, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/_mcp, roles: ROLE_USER }
|
||||
# - { path: ^/_mcp, roles: ROLE_USER } # TODO: re-enable with MCP
|
||||
- { path: ^/docs, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/contexts, roles: PUBLIC_ACCESS }
|
||||
- { path: ^/\.well-known, roles: PUBLIC_ACCESS }
|
||||
|
||||
Reference in New Issue
Block a user