feat: register OAuth MCP server with direct tools
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -4,6 +4,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace LIT\MCP;
|
||||
|
||||
use LIT\MCP\Abilities\AbilityRegistrar;
|
||||
use LIT\MCP\Guides\InstructionsBuilder;
|
||||
use LIT\MCP\Integrations\Core\CoreIntegration;
|
||||
use LIT\MCP\Integrations\IntegrationRegistry;
|
||||
use LIT\MCP\Server\ServerRegistrar;
|
||||
|
||||
/**
|
||||
* Wires WP-LIT-MCP into WordPress.
|
||||
*/
|
||||
@@ -22,6 +28,15 @@ final class Plugin
|
||||
}
|
||||
|
||||
(new Access())->register();
|
||||
|
||||
$registry = new IntegrationRegistry(
|
||||
new CoreIntegration(self::pluginDir() . '/docs/guides')
|
||||
);
|
||||
|
||||
(new AbilityRegistrar($registry))->register();
|
||||
(new ServerRegistrar($registry, new InstructionsBuilder($registry)))->register();
|
||||
|
||||
\WPMedia\MCP\OAuth\Bootstrap::instance();
|
||||
}
|
||||
|
||||
public static function pluginDir(): string
|
||||
|
||||
Reference in New Issue
Block a user