@automattic/mcp-wordpress-remote 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js +7 -1
- package/dist/proxy.js +7 -1
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ interface WordPressResponse {
|
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare const MCP_WORDPRESS_REMOTE_VERSION = "0.3.
|
|
18
|
+
declare const MCP_WORDPRESS_REMOTE_VERSION = "0.3.5";
|
|
19
19
|
/**
|
|
20
20
|
* Centralized configuration for MCP WordPress Remote
|
|
21
21
|
* All default values are defined here and can be overridden via environment variables
|
package/dist/lib.js
CHANGED
|
@@ -47325,7 +47325,7 @@ async function selectCallbackPort(serverUrl, specifiedPort, _unused) {
|
|
|
47325
47325
|
}
|
|
47326
47326
|
|
|
47327
47327
|
// src/lib/config.ts
|
|
47328
|
-
var MCP_WORDPRESS_REMOTE_VERSION = "0.3.
|
|
47328
|
+
var MCP_WORDPRESS_REMOTE_VERSION = "0.3.5";
|
|
47329
47329
|
function parsePositiveIntEnv(value, defaultValue) {
|
|
47330
47330
|
if (!value) {
|
|
47331
47331
|
return defaultValue;
|
|
@@ -49112,6 +49112,12 @@ var MCPOAuthProvider = class {
|
|
|
49112
49112
|
logger.oauth("Using provided client ID, skipping dynamic registration");
|
|
49113
49113
|
return;
|
|
49114
49114
|
}
|
|
49115
|
+
const storedClientInfo = await readClientInfo(this.serverUrlHash);
|
|
49116
|
+
if (typeof storedClientInfo?.client_id === "string" && storedClientInfo.client_id.length > 0) {
|
|
49117
|
+
this.config.clientId = storedClientInfo.client_id;
|
|
49118
|
+
logger.oauth("Reusing persisted client registration, skipping dynamic registration");
|
|
49119
|
+
return;
|
|
49120
|
+
}
|
|
49115
49121
|
if (!CONFIG.OAUTH_DYNAMIC_REGISTRATION) {
|
|
49116
49122
|
throw new OAuthError2(
|
|
49117
49123
|
"No client ID provided and dynamic registration is disabled",
|
package/dist/proxy.js
CHANGED
|
@@ -55942,7 +55942,7 @@ async function selectCallbackPort(serverUrl, specifiedPort, _unused) {
|
|
|
55942
55942
|
}
|
|
55943
55943
|
|
|
55944
55944
|
// src/lib/config.ts
|
|
55945
|
-
var MCP_WORDPRESS_REMOTE_VERSION = "0.3.
|
|
55945
|
+
var MCP_WORDPRESS_REMOTE_VERSION = "0.3.5";
|
|
55946
55946
|
function parsePositiveIntEnv(value, defaultValue) {
|
|
55947
55947
|
if (!value) {
|
|
55948
55948
|
return defaultValue;
|
|
@@ -57799,6 +57799,12 @@ var MCPOAuthProvider = class {
|
|
|
57799
57799
|
logger.oauth("Using provided client ID, skipping dynamic registration");
|
|
57800
57800
|
return;
|
|
57801
57801
|
}
|
|
57802
|
+
const storedClientInfo = await readClientInfo(this.serverUrlHash);
|
|
57803
|
+
if (typeof storedClientInfo?.client_id === "string" && storedClientInfo.client_id.length > 0) {
|
|
57804
|
+
this.config.clientId = storedClientInfo.client_id;
|
|
57805
|
+
logger.oauth("Reusing persisted client registration, skipping dynamic registration");
|
|
57806
|
+
return;
|
|
57807
|
+
}
|
|
57802
57808
|
if (!CONFIG.OAUTH_DYNAMIC_REGISTRATION) {
|
|
57803
57809
|
throw new OAuthError2(
|
|
57804
57810
|
"No client ID provided and dynamic registration is disabled",
|