Skip to content

Commit 29d873b

Browse files
Addressed comments
1 parent d060447 commit 29d873b

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

demo/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,21 @@ docker compose exec app bin/console app:blog:query
9090
* The UI is coupled to a [Twig LiveComponent](https://symfony.com/bundles/ux-live-component/current/index.html), that integrates different `Chat` implementations on top of the user's session.
9191
* You can reset the chat context by hitting the `Reset` button in the top right corner.
9292
* You find three different usage scenarios in the upper navbar.
93+
94+
### MCP
95+
Demo MCP server added with a `current-time` tool to return the current time, with an optional format string.
96+
97+
To add the server, add the following to your `mcp.json` settings in your IDE:
98+
```json
99+
{
100+
"servers": {
101+
"symfony": {
102+
"command": "php",
103+
"args": [
104+
"/your/full/path/to/bin/console",
105+
"mcp:server"
106+
]
107+
}
108+
}
109+
}
110+
```

demo/config/bundles.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
514
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],

demo/src/MCP/Tools/CurrentTimeTool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function call(ToolCall $input): ToolCallResult
3131

3232
public function getName(): string
3333
{
34-
return 'now-time';
34+
return 'current-time';
3535
}
3636

3737
public function getDescription(): string

0 commit comments

Comments
 (0)