| @@ -81,9 +81,9 @@ | ||
| 81 | 81 | |
| 82 | 82 | $canAutoInstall = $this->canAutoInstallFluentKit(); |
| 83 | 83 | if (!$canAutoInstall) { |
| 84 | 84 | return $this->sendError([ |
| 85 | - 'message' => __('Please install FluentKit from GitHub, then reload this page to connect Fluent Boards with AI agents.', 'fluent-boards'), | |
| 85 | + 'message' => __('Please install FluentHub from GitHub, then reload this page to connect Fluent Boards with AI agents.', 'fluent-boards'), | |
| 86 | 86 | 'toolkit_download_url' => 'https://github.com/WPManageNinja/fluent-toolkit', |
| 87 | 87 | ]); |
| 88 | 88 | } |
| 89 | 89 | |
| @@ -102,15 +102,15 @@ | ||
| 102 | 102 | $isInstalled = $this->isAdapterPresent() || $toolkitInstalled; |
| 103 | 103 | $isActive = (is_plugin_active(self::ADAPTER_PLUGIN_FILE) && $adapterRuntimeAvailable) || $toolkitAdapterAvailable; |
| 104 | 104 | |
| 105 | 105 | if ($isInstalled && $isActive) { |
| 106 | - $message = __('FluentKit installed and activated. Reload the page to register Fluent Boards MCP tools.', 'fluent-boards'); | |
| 106 | + $message = __('FluentHub installed and activated. Reload the page to register Fluent Boards MCP tools.', 'fluent-boards'); | |
| 107 | 107 | } elseif ($toolkitInstalled && $toolkitActive) { |
| 108 | - $message = __('FluentKit is installed and active, but this version does not include the bundled MCP adapter yet. Please update FluentKit when the MCP-ready build is available, then reload this page.', 'fluent-boards'); | |
| 108 | + $message = __('FluentHub is installed and active, but this version does not include the bundled MCP adapter yet. Please update FluentHub when the MCP-ready build is available, then reload this page.', 'fluent-boards'); | |
| 109 | 109 | } elseif ($toolkitInstalled) { |
| 110 | - $message = __('FluentKit is installed but could not be activated automatically. Please activate FluentKit from the Plugins page, then reload this page.', 'fluent-boards'); | |
| 110 | + $message = __('FluentHub is installed but could not be activated automatically. Please activate FluentHub from the Plugins page, then reload this page.', 'fluent-boards'); | |
| 111 | 111 | } else { |
| 112 | - $message = __('Could not install FluentKit automatically. Please install FluentKit manually, then reload this page.', 'fluent-boards'); | |
| 112 | + $message = __('Could not install FluentHub automatically. Please install FluentHub manually, then reload this page.', 'fluent-boards'); | |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | return $this->sendSuccess([ |
| 116 | 116 | 'is_installed' => $isInstalled, |
| @@ -173,17 +173,15 @@ | ||
| 173 | 173 | break; |
| 174 | 174 | |
| 175 | 175 | case 'claude-desktop': |
| 176 | 176 | $env = [ |
| 177 | - 'WP_API_URL' => $endpoint, | |
| 178 | - 'WP_API_USERNAME' => $usernamePlaceholder, | |
| 179 | - 'WP_API_PASSWORD' => $passwordPlaceholder, | |
| 177 | + 'WP_API_URL' => $endpoint, | |
| 178 | + 'WP_API_USERNAME' => $usernamePlaceholder, | |
| 179 | + 'WP_API_PASSWORD' => $passwordPlaceholder, | |
| 180 | + 'OAUTH_ENABLED' => 'false', | |
| 181 | + 'NODE_TLS_REJECT_UNAUTHORIZED' => '0', | |
| 180 | 182 | ]; |
| 181 | 183 | |
| 182 | - if ($isLocalDev) { | |
| 183 | - $env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0'; | |
| 184 | - } | |
| 185 | - | |
| 186 | 184 | $snippet = wp_json_encode([ |
| 187 | 185 | 'mcpServers' => [ |
| 188 | 186 | 'fluent-boards' => [ |
| 189 | 187 | 'command' => 'npx', |
| @@ -193,11 +191,8 @@ | ||
| 193 | 191 | ], |
| 194 | 192 | ], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
| 195 | 193 | |
| 196 | 194 | $instructions = __('Paste into the Claude Desktop config file, then restart Claude Desktop.', 'fluent-boards'); |
| 197 | - if ($isLocalDev) { | |
| 198 | - $instructions .= ' ' . __('Local dev mode is on, so NODE_TLS_REJECT_UNAUTHORIZED is included for self-signed SSL.', 'fluent-boards'); | |
| 199 | - } | |
| 200 | 195 | break; |
| 201 | 196 | |
| 202 | 197 | case 'claude-code': |
| 203 | 198 | default: |