Skip to content

Commit 5bbcb13

Browse files
author
klapaudius
committed
#45 Update TestMcpPromptCommand to rename "arguments" to "inputs" for consistency
- Revised option names and descriptions from "arguments" to "inputs" for better terminology. - Updated related exception messages and output text for consistency.
1 parent ff8e1a0 commit 5bbcb13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Command/TestMcpPromptCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ protected function configure(): void
9797
{
9898
$this
9999
->addArgument('prompt', InputArgument::OPTIONAL, 'The name of the prompt to test')
100-
->addOption('arguments', '-a', InputOption::VALUE_OPTIONAL, 'JSON arguments for the prompt')
100+
->addOption('input', '-i', InputOption::VALUE_OPTIONAL, 'JSON input for the prompt')
101101
->addOption('list', '-l', InputOption::VALUE_NONE, 'List all available prompts')
102-
->setDescription('Test an MCP prompt with simulated arguments')
102+
->setDescription('Test an MCP prompt with simulated inputs')
103103
->setHelp(<<<'EOT'
104-
mcp:test-prompt {prompt? : The name of the prompt to test} {--arguments= : JSON arguments for the prompt} {--list : List all available prompts}
104+
mcp:test-prompt {prompt? : The name of the prompt to test} {--inputs= : JSON inputs for the prompt} {--list : List all available prompts}
105105
EOT
106106
);
107107
}
@@ -131,12 +131,12 @@ private function testPrompt(): int
131131
$arguments = $this->getArgumentsFromOption()
132132
?? $this->askForArguments($prompt->getArguments());
133133
if ($arguments === null) {
134-
throw new TestMcpPromptCommandException('Invalid arguments.');
134+
throw new TestMcpPromptCommandException('Invalid inputs.');
135135
}
136136

137137
// Execute the prompt
138138
$this->io->text([
139-
'Executing prompt with arguments:',
139+
'Executing prompt with inputs:',
140140
json_encode($arguments, JSON_PRETTY_PRINT),
141141
]);
142142

0 commit comments

Comments
 (0)