mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-18 17:31:35 +00:00
Added dependencies and basic structures
This commit is contained in:
parent
cb669ad4ec
commit
d453c48c55
8 changed files with 2236 additions and 1546 deletions
|
|
@ -34,4 +34,5 @@ return [
|
|||
Jbtronics\TranslationEditorBundle\JbtronicsTranslationEditorBundle::class => ['dev' => true],
|
||||
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
|
||||
Symfony\AI\AiBundle\AiBundle::class => ['all' => true],
|
||||
Symfony\AI\McpBundle\McpBundle::class => ['all' => true],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -38,3 +38,7 @@ api_platform:
|
|||
serializer:
|
||||
# Change this to false later, to remove the hydra prefix on the API
|
||||
hydra_prefix: true
|
||||
|
||||
mcp:
|
||||
enabled: true # default: true
|
||||
format: jsonld # default: 'jsonld'
|
||||
|
|
|
|||
10
config/packages/mcp.yaml
Normal file
10
config/packages/mcp.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
mcp:
|
||||
client_transports:
|
||||
http: true
|
||||
stdio: false
|
||||
http:
|
||||
path: "/mcp"
|
||||
session:
|
||||
store: "file"
|
||||
directory: "%kernel.cache_dir%/mcp"
|
||||
ttl: 3600
|
||||
2918
config/reference.php
2918
config/reference.php
File diff suppressed because it is too large
Load diff
|
|
@ -18,6 +18,11 @@ csp_report:
|
|||
methods: [POST]
|
||||
defaults: { _controller: nelmio_security.csp_reporter_controller::indexAction }
|
||||
|
||||
mcp:
|
||||
resource: .
|
||||
type: mcp
|
||||
|
||||
|
||||
# Must be last as it matches everything
|
||||
redirector:
|
||||
path: /{url}
|
||||
|
|
@ -26,3 +31,4 @@ redirector:
|
|||
controller: App\Controller\RedirectController::addLocalePart
|
||||
# Dont match localized routes (no redirection loop, if no root with that name exists) or API prefixed routes
|
||||
condition: "not (request.getPathInfo() matches '/^\\\\/([a-z]{2}(_[A-Z]{2})?|api)\\\\//')"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue