Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"lib/Resources/template/"
]
},
"autoload-dev": {
"psr-4": {
"OCA\\OpenRegister\\": "tests/Stubs/"
}
},
"require": {
"php": "^8.1"
},
Expand Down
11 changes: 11 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

use OCA\OpenBuilt\Listener\ApplicationVersionSnapshotListener;
use OCA\OpenBuilt\Listener\DeepLinkRegistrationListener;
use OCA\OpenBuilt\Mcp\OpenBuiltToolProvider;
use OCA\OpenRegister\Event\DeepLinkRegistrationEvent;
use OCA\OpenRegister\Event\ObjectTransitionedEvent;
use OCP\AppFramework\App;
Expand Down Expand Up @@ -77,6 +78,16 @@ public function register(IRegistrationContext $context): void
listener: ApplicationVersionSnapshotListener::class
);

// Register OpenBuiltToolProvider as the MCP tool provider for the AI Chat Companion.
// The alias key 'OCA\OpenRegister\Mcp\IMcpToolProvider::openbuilt' is the format
// that OR's McpToolsService enumerates to discover per-app providers (hydra ADR-035).
// The interface ships in openregister PR #1466 (ai-chat-companion-orchestrator);
// until then OpenBuilt implements the test stub at tests/Stubs/Mcp/IMcpToolProvider.php.
$context->registerServiceAlias(
'OCA\\OpenRegister\\Mcp\\IMcpToolProvider::openbuilt',
OpenBuiltToolProvider::class
);

// Repair steps (InitializeSettings + SeedHelloWorld) are declared in info.xml.
}//end register()

Expand Down
Loading
Loading