File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1717
1818At first, you need to decide whether your application should act as a MCP server or client. Both can be configured in
1919the ``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'
You can’t perform that action at this time.
0 commit comments