forked from modelcontextprotocol/php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpComplexToolSchemaTest.php
More file actions
87 lines (83 loc) · 3.13 KB
/
HttpComplexToolSchemaTest.php
File metadata and controls
87 lines (83 loc) · 3.13 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?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 HttpComplexToolSchemaTest extends HttpInspectorSnapshotTestCase
{
public static function provideMethods(): array
{
return [
...parent::provideMethods(),
'Schedule Event (Meeting with Time)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'schedule_event',
'toolArgs' => [
'title' => 'Team Standup',
'date' => '2024-12-01',
'type' => 'meeting',
'time' => '09:00',
'priority' => 'normal',
'attendees' => ['alice@example.com', 'bob@example.com'],
'sendInvites' => true,
],
],
'testName' => 'schedule_event_meeting_with_time',
],
'Schedule Event (All Day Reminder)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'schedule_event',
'toolArgs' => [
'title' => 'Project Deadline',
'date' => '2024-12-15',
'type' => 'reminder',
'priority' => 'high',
],
],
'testName' => 'schedule_event_all_day_reminder',
],
'Schedule Event (Call with High Priority)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'schedule_event',
'toolArgs' => [
'title' => 'Client Call',
'date' => '2024-12-02',
'type' => 'call',
'time' => '14:30',
'priority' => 'high',
'attendees' => ['client@example.com'],
'sendInvites' => false,
],
],
'testName' => 'schedule_event_high_priority',
],
'Schedule Event (Other Event with Low Priority)' => [
'method' => 'tools/call',
'options' => [
'toolName' => 'schedule_event',
'toolArgs' => [
'title' => 'Office Party',
'date' => '2024-12-20',
'type' => 'other',
'time' => '18:00',
'priority' => 'low',
'attendees' => ['team@company.com'],
],
],
'testName' => 'schedule_event_low_priority',
],
];
}
protected function getServerScript(): string
{
return \dirname(__DIR__, 3).'/examples/server/complex-tool-schema/server.php';
}
}