forked from modelcontextprotocol/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpCombinedRegistrationTest.php
More file actions
50 lines (46 loc) · 1.51 KB
/
HttpCombinedRegistrationTest.php
File metadata and controls
50 lines (46 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?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';
}
}