Skip to content

Commit 98fefa5

Browse files
committed
tool: tinker: try to nudge away from creating test users ahead of time for a future test
1 parent 44f6eff commit 98fefa5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Mcp/Tools/Tinker.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
class Tinker extends Tool
1515
{
16-
public function shouldRegister(): bool
17-
{
18-
return app()->environment() === 'local';
19-
}
20-
2116
public function description(): string
2217
{
23-
return 'Execute PHP code in the Laravel application context, similar to artisan tinker. Most useful for debugging issues, checking if functions exists, and testing code snippets. Returns the output of the code, as well as whatever is "returned" using "return".';
18+
return <<<'DESCRIPTION'
19+
Execute PHP code in the Laravel application context, like artisan tinker.
20+
Use this for debugging issues, checking if functions exist, and testing code snippets.
21+
You should not create models directly without explicit user approval. Prefer Unit/Feature tests using factories for functionality testing.
22+
Returns the output of the code, as well as whatever is "returned" using "return".
23+
DESCRIPTION;
2424
}
2525

2626
public function schema(ToolInputSchema $schema): ToolInputSchema

0 commit comments

Comments
 (0)