Skip to content

Commit e68bb8c

Browse files
committed
[MCP Bundle][Docs] add missing required route configuration for the bundle to work
1 parent a9b98a1 commit e68bb8c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/bundles/mcp-bundle.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ Usage
1717

1818
At first, you need to decide whether your application should act as a MCP server or client. Both can be configured in
1919
the ``mcp`` section of your ``config/packages/mcp.yaml`` file.
20+
You also need to add few lines in the routing configuration for this bundle:
21+
22+
.. code-block:: yaml
23+
24+
# config/routes.yaml
25+
mcp:
26+
resource: .
27+
type: mcp
28+
2029
2130
Act as Server
2231
~~~~~~~~~~~~~
@@ -199,6 +208,7 @@ Configuration
199208
directory: '%kernel.cache_dir%/mcp-sessions' # Directory for file store (default: cache_dir/mcp-sessions)
200209
ttl: 3600 # Session TTL in seconds (default: 3600)
201210
211+
# Not supported yet
202212
servers:
203213
name:
204214
transport: 'stdio' # Transport method to use, either 'stdio' or 'http'

0 commit comments

Comments
 (0)