mirror of
https://github.com/symfony/ai.git
synced 2026-03-23 23:42:18 +01:00
minor #888 [MCP Bundle][Docs] add required route configuration (axi)
This PR was merged into the main branch.
Discussion
----------
[MCP Bundle][Docs] add required route configuration
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Docs? | yes
| Issues |
| License | MIT
By simply installing the bundle, I couldn't use it as the route was not known.
I had to add the routing configuration for the route to appear.
I thought it would be clearer to add that in the doc.
Commits
-------
e68bb8c0 [MCP Bundle][Docs] add missing required route configuration for the bundle to work
This commit is contained in:
@@ -17,6 +17,15 @@ Usage
|
||||
|
||||
At first, you need to decide whether your application should act as a MCP server or client. Both can be configured in
|
||||
the ``mcp`` section of your ``config/packages/mcp.yaml`` file.
|
||||
You also need to add few lines in the routing configuration for this bundle:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# config/routes.yaml
|
||||
mcp:
|
||||
resource: .
|
||||
type: mcp
|
||||
|
||||
|
||||
Act as Server
|
||||
~~~~~~~~~~~~~
|
||||
@@ -199,6 +208,7 @@ Configuration
|
||||
directory: '%kernel.cache_dir%/mcp-sessions' # Directory for file store (default: cache_dir/mcp-sessions)
|
||||
ttl: 3600 # Session TTL in seconds (default: 3600)
|
||||
|
||||
# Not supported yet
|
||||
servers:
|
||||
name:
|
||||
transport: 'stdio' # Transport method to use, either 'stdio' or 'http'
|
||||
|
||||
Reference in New Issue
Block a user