diff --git a/src/Console/AddBoostTool.php b/src/Console/AddBoostTool.php deleted file mode 100644 index b6966d6..0000000 --- a/src/Console/AddBoostTool.php +++ /dev/null @@ -1,49 +0,0 @@ -argument('toolName'); - - if (! $toolName) { - $toolName = $this->ask('What is the name of the tool?', 'ClearViewCache'); - } - - $toolName = Str::studly($toolName); - $stubPath = realpath(__DIR__.'/../../stubs/tool.stub.php'); - if (! $stubPath) { - $this->error('Stub file not found at '.$stubPath); - - return self::FAILURE; - } - - $stub = file_get_contents($stubPath); - if (! $stub) { - $this->error('Stub file unreadable at '.$stubPath); - - return self::FAILURE; - } - $stub = str_replace('{TOOL_CLASSNAME}', $toolName, $stub); - $stub = str_replace('{TOOL_DESCRIPTION}', $toolName.' tool description must be clear and descriptive to be used by the client', $stub); - - $toolPath = realpath(__DIR__.'/../Mcp/Tools/').$toolName.'.php'; - file_put_contents($toolPath, $stub); - - $this->info('Tool added successfully: '.$toolPath); - - return self::SUCCESS; - } - // from the stub in ../stubs/tool.stub.php - // If toolName isn't passed in, ask for it - // If toolname -} diff --git a/stubs/tool.stub.php b/stubs/tool.stub.php deleted file mode 100644 index edc8fa9..0000000 --- a/stubs/tool.stub.php +++ /dev/null @@ -1,38 +0,0 @@ -string('database_name') - ->description('The name of the database to read the schema from') - ->required(); - $schema->integer('database_port'); - $schema->boolean('database_ssl'); - - return $schema; - } - - public function handle(array $arguments): ToolResult - { - return ToolResult::text('result: ' . $arguments['database_name']); - } -}