Skip to content

Commit 1caea47

Browse files
authored
Uses nowdoc for LLMs (#56)
1 parent 8d73937 commit 1caea47

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

stubs/prompt.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ class {{ class }} extends Prompt
1212
/**
1313
* The prompt's description.
1414
*/
15-
protected string $description = 'A description of what this prompt does.';
15+
protected string $description = <<<'MARKDOWN'
16+
A description of what this prompt does.
17+
MARKDOWN;
1618

1719
/**
1820
* Handle the prompt request.

stubs/resource.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class {{ class }} extends Resource
1111
/**
1212
* The resource's description.
1313
*/
14-
protected string $description = 'A description of what this resource contains.';
14+
protected string $description = <<<'MARKDOWN'
15+
A description of what this resource contains.
16+
MARKDOWN;
1517

1618
/**
1719
* Handle the resource request.

stubs/server.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class {{ class }} extends Server
1919
/**
2020
* The MCP server's instructions for the LLM.
2121
*/
22-
protected string $instructions = 'Instructions describing how to use the server and its features.';
22+
protected string $instructions = <<<'MARKDOWN'
23+
Instructions describing how to use the server and its features.
24+
MARKDOWN;
2325

2426
/**
2527
* The tools registered with this MCP server.

stubs/tool.stub

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ class {{ class }} extends Tool
1212
/**
1313
* The tool's description.
1414
*/
15-
protected string $description = 'A description of what this tool does.';
15+
protected string $description = <<<'MARKDOWN'
16+
A description of what this tool does.
17+
MARKDOWN;
1618

1719
/**
1820
* Handle the tool request.

0 commit comments

Comments
 (0)