From 336dfb86be152dda98f452a31cf1c32b02f644bb Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 19 Sep 2025 12:53:11 +0100 Subject: [PATCH] Uses nowdoc for LLMs --- stubs/prompt.stub | 4 +++- stubs/resource.stub | 4 +++- stubs/server.stub | 4 +++- stubs/tool.stub | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/stubs/prompt.stub b/stubs/prompt.stub index cea563b..740c988 100644 --- a/stubs/prompt.stub +++ b/stubs/prompt.stub @@ -12,7 +12,9 @@ class {{ class }} extends Prompt /** * The prompt's description. */ - protected string $description = 'A description of what this prompt does.'; + protected string $description = <<<'MARKDOWN' + A description of what this prompt does. + MARKDOWN; /** * Handle the prompt request. diff --git a/stubs/resource.stub b/stubs/resource.stub index c936c3f..f0586e7 100644 --- a/stubs/resource.stub +++ b/stubs/resource.stub @@ -11,7 +11,9 @@ class {{ class }} extends Resource /** * The resource's description. */ - protected string $description = 'A description of what this resource contains.'; + protected string $description = <<<'MARKDOWN' + A description of what this resource contains. + MARKDOWN; /** * Handle the resource request. diff --git a/stubs/server.stub b/stubs/server.stub index 98d8f7f..38f74af 100644 --- a/stubs/server.stub +++ b/stubs/server.stub @@ -19,7 +19,9 @@ class {{ class }} extends Server /** * The MCP server's instructions for the LLM. */ - protected string $instructions = 'Instructions describing how to use the server and its features.'; + protected string $instructions = <<<'MARKDOWN' + Instructions describing how to use the server and its features. + MARKDOWN; /** * The tools registered with this MCP server. diff --git a/stubs/tool.stub b/stubs/tool.stub index 7dfe98b..8ae9c7d 100644 --- a/stubs/tool.stub +++ b/stubs/tool.stub @@ -12,7 +12,9 @@ class {{ class }} extends Tool /** * The tool's description. */ - protected string $description = 'A description of what this tool does.'; + protected string $description = <<<'MARKDOWN' + A description of what this tool does. + MARKDOWN; /** * Handle the tool request.