Skip to content

Commit 7b6f309

Browse files
committed
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 ------- e68bb8c [MCP Bundle][Docs] add missing required route configuration for the bundle to work
2 parents d0999b9 + e68bb8c commit 7b6f309

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)