postJson('/mcp', [ 'jsonrpc' => '2.0', 'id' => 1, 'method' => 'tools/list', ])->assertUnauthorized(); }); it('registers every domain tool on the server', function () { $property = (new ReflectionClass(EinundzwanzigServer::class))->getProperty('tools'); $tools = $property->getDefaultValue(); expect($tools)->toHaveCount(30) ->and($tools)->toContain(CreateMeetupTool::class) ->and($tools)->toContain(UpdateCourseEventTool::class) ->and($tools)->toContain(SearchCitiesTool::class); });