Add more inspector tests for functionality tests of STDIO examples (#115)

This commit is contained in:
Christopher Hertel 2025-10-27 01:09:25 +01:00 • committed by GitHub
commit 7190bee153
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 286 additions and 15 deletions

View file

@ -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;
/**

View file

@ -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;

View file

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Mcp\Example\DependenciesStdioExample\Service;
namespace Mcp\Example\StdioCustomDependencies\Service;
interface StatsServiceInterface
{

View file

@ -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
{

View file

@ -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}

View file

@ -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;