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
|Documentation |`docs://content/{documentId}`|Retrieve full document content by document ID (format: `source::path`)|
217
209
218
210
> [!WARNING]
219
-
> This tool executes arbitrary code in your application. Use responsibly and avoid modifying data without explicit approval.
220
-
221
-
### Database Tools
222
-
223
-
Inspect and query your database:
224
-
225
-
| Tool | Description |
226
-
|------|-------------|
227
-
|`database_connections`| List all configured database connections |
228
-
|`database_schema`| Get detailed schema information for tables (view all tables, inspect columns, constraints, indexes, understand foreign key relationships) |
211
+
> The `tinker` tool executes arbitrary code in your application. Use responsibly and avoid modifying data without explicit approval.
229
212
230
213
> [!TIP]
231
214
> The `tinker` tool can be used to query the database using CakePHP's ORM. The tinker context provides access to `$this->fetchTable()` for easy database operations.
232
215
233
-
### Route Tools
234
-
235
-
Inspect and analyze your application routes:
236
-
237
-
| Tool | Description |
238
-
|------|-------------|
239
-
|`list_routes`| List all routes with filtering and sorting |
240
-
|`get_route`| Get detailed information about a specific route |
241
-
|`match_url`| Find which route matches a given URL |
Search CakePHP documentation with full-text search powered by SQLite FTS5:
247
-
248
-
| Tool | Description |
249
-
|------|-------------|
250
-
|`search_docs`| Search documentation with relevance ranking, fuzzy matching, and filtering |
251
-
|`get_doc`| Retrieve full document content by document ID (format: `source::path`) |
252
-
|`docs_stats`| View index statistics and available sources |
253
-
254
216
> [!NOTE]
255
217
> Documentation is indexed from the official [CakePHP markdown documentation](https://github.com/cakephp/docs-md). The index is built locally using SQLite FTS5 for fast, dependency-free full-text search.
256
218
257
-
### Resources
258
-
259
-
Access documentation through resource templates:
260
-
261
-
| Resource | Description |
262
-
|----------|-------------|
263
-
|`docs://search/{query}`| Search CakePHP documentation and return formatted results |
264
-
|`docs://content/{documentId}`| Retrieve full document content by document ID (format: `source::path`) |
265
-
266
219
## Built-in Prompts
267
220
268
221
Synapse includes pre-defined prompt workflows that guide LLMs through common CakePHP development tasks. Prompts combine multiple tools (search docs, read documentation, tinker) into structured, best-practice workflows.
@@ -283,18 +236,6 @@ Synapse includes pre-defined prompt workflows that guide LLMs through common Cak
|`quality-assurance`| Coding guidelines and QA best practices for CakePHP |`context` (optional: guidelines/integration/troubleshooting/all), `tools` (optional: all or comma-separated list) |
285
238
286
-
### Using Prompts
287
-
288
-
Prompts are workflow templates that guide the LLM through multi-step processes. When using an MCP client like Claude:
289
-
290
-
```
291
-
"Use the documentation-expert prompt to learn about CakePHP Authentication"
292
-
293
-
"Use debug-helper with error='Call to undefined method' and context='controller'"
294
-
295
-
"Use feature-builder to implement a REST API endpoint"
296
-
```
297
-
298
239
**Prompts automatically:**
299
240
- Search relevant documentation
300
241
- Read detailed guides
@@ -307,53 +248,32 @@ Prompts are workflow templates that guide the LLM through multi-step processes.
307
248
-**Consistency** - Standardized approaches to common problems
308
249
-**Discovery** - See available workflows without remembering tool combinations
309
250
310
-
### Configuring CakePHP Version
251
+
### Configuring prompts
311
252
312
-
Prompts reference a specific CakePHP version in their guidance. Configure this in `config/synapse.php`:
253
+
Prompts can reference a specific CakePHP version and use various quality tools. Configure both in `config/synapse.php`:
313
254
314
-
```php
315
255
return [
316
256
'Synapse' => [
317
257
'prompts' => [
318
-
// Target CakePHP version for prompt responses
319
-
// Examples: '5.x', '5.2', '4.5', '4.x'
258
+
// Target CakePHP version for prompt responses (e.g. '5.x', '5.2', '4.5', '4.x')
This allows targeting specific version documentation and conventions when working with different CakePHP versions.
334
-
335
-
### Quality Assurance Prompt
336
-
337
-
The `quality-assurance` prompt provides comprehensive coding guidelines and QA best practices for CakePHP development. It supports multiple quality tools including PHPCS, PHPStan, PHPUnit, Rector, and Psalm.
338
-
339
-
Configure which tools are enabled and their settings in `config/synapse.php`:
0 commit comments