21817543ad
Adds a native Nextcloud app "Astroglobe" that provides: - Personal settings: OAuth authorization for background MCP access - Admin settings: Server status and vector sync monitoring - API endpoints for MCP server communication The app uses PKCE OAuth flow to obtain tokens for the MCP server, enabling features like background vector sync per ADR-018. Includes: - PHP app structure (controllers, services, settings) - Vue.js frontend components - Docker compose mount configuration - Installation hook for development testing - ADR-018 documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
472 B
PHP
20 lines
472 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Controller;
|
|
|
|
use OCA\Astroglobe\AppInfo\Application;
|
|
use OCA\Astroglobe\Controller\ApiController;
|
|
use OCP\IRequest;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class ApiTest extends TestCase {
|
|
public function testIndex(): void {
|
|
$request = $this->createMock(IRequest::class);
|
|
$controller = new ApiController(Application::APP_ID, $request);
|
|
|
|
$this->assertEquals($controller->index()->getData()['message'], 'Hello world!');
|
|
}
|
|
}
|