Add more inspector tests for functionality tests of STDIO examples (#115)
This commit is contained in:
parent
48a19b93a7
commit
7190bee153
6 changed files with 286 additions and 15 deletions
|
|
@ -13,8 +13,8 @@ namespace Mcp\Example\StdioCustomDependencies;
|
|||
|
||||
use Mcp\Capability\Attribute\McpResource;
|
||||
use Mcp\Capability\Attribute\McpTool;
|
||||
use Mcp\Example\DependenciesStdioExample\Service\StatsServiceInterface;
|
||||
use Mcp\Example\DependenciesStdioExample\Service\TaskRepositoryInterface;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\StatsServiceInterface;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\TaskRepositoryInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Example\DependenciesStdioExample\Service;
|
||||
namespace Mcp\Example\StdioCustomDependencies\Service;
|
||||
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Example\DependenciesStdioExample\Service;
|
||||
namespace Mcp\Example\StdioCustomDependencies\Service;
|
||||
|
||||
interface StatsServiceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Example\DependenciesStdioExample\Service;
|
||||
namespace Mcp\Example\StdioCustomDependencies\Service;
|
||||
|
||||
final class SystemStatsService implements StatsServiceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Mcp\Example\DependenciesStdioExample\Service;
|
||||
namespace Mcp\Example\StdioCustomDependencies\Service;
|
||||
|
||||
/**
|
||||
* @phpstan-type Task array{id: int, userId: string, description: string, completed: bool, createdAt: string}
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@
|
|||
require_once dirname(__DIR__).'/bootstrap.php';
|
||||
chdir(__DIR__);
|
||||
|
||||
use Mcp\Example\DependenciesStdioExample\Service\InMemoryTaskRepository;
|
||||
use Mcp\Example\DependenciesStdioExample\Service\StatsServiceInterface;
|
||||
use Mcp\Example\DependenciesStdioExample\Service\SystemStatsService;
|
||||
use Mcp\Example\DependenciesStdioExample\Service\TaskRepositoryInterface;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\InMemoryTaskRepository;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\StatsServiceInterface;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\SystemStatsService;
|
||||
use Mcp\Example\StdioCustomDependencies\Service\TaskRepositoryInterface;
|
||||
use Mcp\Server;
|
||||
use Mcp\Server\Transport\StdioTransport;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue