You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README with prompts documentation and testing commands
- Added a section on creating and registering custom prompts.
- Documented `make:mcp-prompt` and `mcp:test-prompt` commands for generating and testing prompts.
- Updated prompt implementation status to compliant with MCP specification.
- Improved guidance on manual prompt registration and usage.
@@ -168,7 +170,59 @@ This helps you rapidly develop and debug tools by:
168
170
169
171
**For deep diving into tools creation please take a look at dedicated documentation [Here](https://github.com/klapaudius/symfony-mcp-server/blob/master/docs/building_tools.md)**
170
172
171
-
### Visualizing MCP Tools with Inspector
173
+
### Creating and Adding Custom Prompts
174
+
175
+
The package provides convenient commands to generate new prompts:
176
+
177
+
```bash
178
+
php bin/console make:mcp-prompt MyCustomPrompt
179
+
```
180
+
181
+
This command:
182
+
183
+
- Handles various input formats (spaces, hyphens, mixed case)
184
+
- Automatically converts the name to the proper kebab-case format
185
+
- Creates a properly structured prompt class in `src/MCP/Prompts`
186
+
- Offers to automatically register the prompt in your configuration
187
+
188
+
You can also manually create and register prompts in `config/packages/klp_mcp_server.yaml`:
189
+
190
+
```php
191
+
use KLP\KlpMcpServer\Services\PromptService\PromptInterface;
192
+
use KLP\KlpMcpServer\Services\PromptService\Message\TextPromptMessage;
193
+
194
+
class MyCustomPrompt implements PromptInterface
195
+
{
196
+
// Prompt implementation
197
+
}
198
+
```
199
+
200
+
### Testing MCP Prompts
201
+
202
+
The package includes a command for testing your MCP prompts without needing a real MCP client:
**For deep diving into prompts creation please take a look at dedicated documentation [Here](https://github.com/klapaudius/symfony-mcp-server/blob/master/docs/building_prompts.md)**
224
+
225
+
### Visualizing with Inspector
172
226
173
227
You can also use the Model Context Protocol Inspector to visualize and test your MCP tools:
174
228
@@ -193,7 +247,7 @@ This will typically open a web interface at `localhost:6274`. To test your MCP s
0 commit comments