php-sdk/tests/Inspector/Http/HttpCombinedRegistrationTest.php
Tobias Nyholm 6dac6f3b4a
Move examples to server directory (#198)
* move examples to server directory

This will prepare for the client implementation in https://github.com/modelcontextprotocol/php-sdk/pull/192

* fix move bootstrap too
2025-12-27 15:39:05 +01:00

50 lines
1.5 KiB
PHP

<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mcp\Tests\Inspector\Http;
final class HttpCombinedRegistrationTest extends HttpInspectorSnapshotTestCase
{
public static function provideMethods(): array
{
return [
...parent::provideMethods(),
'Manual Greeter Tool' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'manualGreeter',
'toolArgs' => ['user' => 'HTTP Test User'],
],
'testName' => 'manual_greeter',
],
'Discovered Status Check Tool' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'discovered_status_check',
'toolArgs' => [],
],
'testName' => 'discovered_status_check',
],
'Read Priority Config (Manual Override)' => [
'method' => 'resources/read',
'options' => [
'uri' => 'config://priority',
],
'testName' => 'config_priority',
],
];
}
protected function getServerScript(): string
{
return \dirname(__DIR__, 3).'/examples/server/combined-registration/server.php';
}
}