integrate-sdk 0.8.62-dev.0 → 0.8.65-dev.0
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/adapters/auto-routes.js +32 -4
- package/dist/adapters/index.js +32 -4
- package/dist/adapters/nextjs.js +32 -4
- package/dist/adapters/node.js +32 -4
- package/dist/adapters/svelte-kit.js +32 -4
- package/dist/adapters/tanstack-start.js +32 -4
- package/dist/index.js +32 -4
- package/dist/oauth.js +32 -4
- package/dist/server.js +32 -4
- package/dist/src/client.d.ts +7 -0
- package/dist/src/client.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/adapters/index.js
CHANGED
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/adapters/nextjs.js
CHANGED
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/adapters/node.js
CHANGED
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/index.js
CHANGED
|
@@ -1731,6 +1731,7 @@ class MCPClientBase {
|
|
|
1731
1731
|
apiRouteBase;
|
|
1732
1732
|
apiBaseUrl;
|
|
1733
1733
|
databaseDetected = false;
|
|
1734
|
+
_connectingPromise = null;
|
|
1734
1735
|
__configuredIntegrations;
|
|
1735
1736
|
__useServerConfig;
|
|
1736
1737
|
oauthCallbackPromise;
|
|
@@ -1919,7 +1920,24 @@ class MCPClientBase {
|
|
|
1919
1920
|
}))
|
|
1920
1921
|
});
|
|
1921
1922
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1922
|
-
if (options?.includeToolMetadata) {
|
|
1923
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1924
|
+
await this.ensureConnected();
|
|
1925
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1926
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1927
|
+
return {
|
|
1928
|
+
id: integration.id,
|
|
1929
|
+
name: integration.name || integration.id,
|
|
1930
|
+
logoUrl: integration.logoUrl,
|
|
1931
|
+
tools: integration.tools,
|
|
1932
|
+
hasOAuth: !!integration.oauth,
|
|
1933
|
+
scopes: integration.oauth?.scopes,
|
|
1934
|
+
provider: integration.oauth?.provider,
|
|
1935
|
+
toolMetadata
|
|
1936
|
+
};
|
|
1937
|
+
});
|
|
1938
|
+
return { integrations: integrationsWithMetadata };
|
|
1939
|
+
}
|
|
1940
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1923
1941
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1924
1942
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1925
1943
|
try {
|
|
@@ -1965,9 +1983,7 @@ class MCPClientBase {
|
|
|
1965
1983
|
};
|
|
1966
1984
|
}
|
|
1967
1985
|
}, 3);
|
|
1968
|
-
return {
|
|
1969
|
-
integrations: integrationsWithMetadata
|
|
1970
|
-
};
|
|
1986
|
+
return { integrations: integrationsWithMetadata };
|
|
1971
1987
|
}
|
|
1972
1988
|
return formatLocalIntegrations(localIntegrations);
|
|
1973
1989
|
}
|
|
@@ -2044,6 +2060,17 @@ class MCPClientBase {
|
|
|
2044
2060
|
throw parsedError;
|
|
2045
2061
|
}
|
|
2046
2062
|
}
|
|
2063
|
+
async ensureConnected() {
|
|
2064
|
+
if (this.isConnected()) {
|
|
2065
|
+
return;
|
|
2066
|
+
}
|
|
2067
|
+
if (!this._connectingPromise) {
|
|
2068
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2069
|
+
this._connectingPromise = null;
|
|
2070
|
+
});
|
|
2071
|
+
}
|
|
2072
|
+
return this._connectingPromise;
|
|
2073
|
+
}
|
|
2047
2074
|
async initializeIntegrations() {
|
|
2048
2075
|
for (const integration of this.integrations) {
|
|
2049
2076
|
if (integration.onInit) {
|
|
@@ -2102,6 +2129,7 @@ class MCPClientBase {
|
|
|
2102
2129
|
const transportHeaders = this.transport.headers || {};
|
|
2103
2130
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2104
2131
|
if (hasApiKey) {
|
|
2132
|
+
await this.ensureConnected();
|
|
2105
2133
|
if (provider) {
|
|
2106
2134
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2107
2135
|
if (tokenData && this.transport.setHeader) {
|
package/dist/oauth.js
CHANGED
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/server.js
CHANGED
|
@@ -1703,6 +1703,7 @@ class MCPClientBase {
|
|
|
1703
1703
|
apiRouteBase;
|
|
1704
1704
|
apiBaseUrl;
|
|
1705
1705
|
databaseDetected = false;
|
|
1706
|
+
_connectingPromise = null;
|
|
1706
1707
|
__configuredIntegrations;
|
|
1707
1708
|
__useServerConfig;
|
|
1708
1709
|
oauthCallbackPromise;
|
|
@@ -1891,7 +1892,24 @@ class MCPClientBase {
|
|
|
1891
1892
|
}))
|
|
1892
1893
|
});
|
|
1893
1894
|
if (hasApiKey || !this.__useServerConfig) {
|
|
1894
|
-
if (options?.includeToolMetadata) {
|
|
1895
|
+
if (options?.includeToolMetadata && hasApiKey) {
|
|
1896
|
+
await this.ensureConnected();
|
|
1897
|
+
const integrationsWithMetadata = localIntegrations.map((integration) => {
|
|
1898
|
+
const toolMetadata = integration.tools.map((toolName) => this.availableTools.get(toolName)).filter((tool) => !!tool);
|
|
1899
|
+
return {
|
|
1900
|
+
id: integration.id,
|
|
1901
|
+
name: integration.name || integration.id,
|
|
1902
|
+
logoUrl: integration.logoUrl,
|
|
1903
|
+
tools: integration.tools,
|
|
1904
|
+
hasOAuth: !!integration.oauth,
|
|
1905
|
+
scopes: integration.oauth?.scopes,
|
|
1906
|
+
provider: integration.oauth?.provider,
|
|
1907
|
+
toolMetadata
|
|
1908
|
+
};
|
|
1909
|
+
});
|
|
1910
|
+
return { integrations: integrationsWithMetadata };
|
|
1911
|
+
}
|
|
1912
|
+
if (options?.includeToolMetadata && !hasApiKey) {
|
|
1895
1913
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
1896
1914
|
const integrationsWithMetadata = await parallelWithLimit2(localIntegrations, async (integration) => {
|
|
1897
1915
|
try {
|
|
@@ -1937,9 +1955,7 @@ class MCPClientBase {
|
|
|
1937
1955
|
};
|
|
1938
1956
|
}
|
|
1939
1957
|
}, 3);
|
|
1940
|
-
return {
|
|
1941
|
-
integrations: integrationsWithMetadata
|
|
1942
|
-
};
|
|
1958
|
+
return { integrations: integrationsWithMetadata };
|
|
1943
1959
|
}
|
|
1944
1960
|
return formatLocalIntegrations(localIntegrations);
|
|
1945
1961
|
}
|
|
@@ -2016,6 +2032,17 @@ class MCPClientBase {
|
|
|
2016
2032
|
throw parsedError;
|
|
2017
2033
|
}
|
|
2018
2034
|
}
|
|
2035
|
+
async ensureConnected() {
|
|
2036
|
+
if (this.isConnected()) {
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
if (!this._connectingPromise) {
|
|
2040
|
+
this._connectingPromise = this.connect().finally(() => {
|
|
2041
|
+
this._connectingPromise = null;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
return this._connectingPromise;
|
|
2045
|
+
}
|
|
2019
2046
|
async initializeIntegrations() {
|
|
2020
2047
|
for (const integration of this.integrations) {
|
|
2021
2048
|
if (integration.onInit) {
|
|
@@ -2074,6 +2101,7 @@ class MCPClientBase {
|
|
|
2074
2101
|
const transportHeaders = this.transport.headers || {};
|
|
2075
2102
|
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
2076
2103
|
if (hasApiKey) {
|
|
2104
|
+
await this.ensureConnected();
|
|
2077
2105
|
if (provider) {
|
|
2078
2106
|
const tokenData = await this.oauthManager.getProviderToken(provider, undefined, options?.context);
|
|
2079
2107
|
if (tokenData && this.transport.setHeader) {
|
package/dist/src/client.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export declare class MCPClientBase<TIntegrations extends readonly MCPIntegration
|
|
|
82
82
|
private apiRouteBase;
|
|
83
83
|
private apiBaseUrl?;
|
|
84
84
|
private databaseDetected;
|
|
85
|
+
private _connectingPromise;
|
|
85
86
|
/**
|
|
86
87
|
* Explicitly configured integrations passed to createMCPClient
|
|
87
88
|
* Used by listConfiguredIntegrations to return only configured integrations
|
|
@@ -132,6 +133,12 @@ export declare class MCPClientBase<TIntegrations extends readonly MCPIntegration
|
|
|
132
133
|
* Internal implementation for calling server tools
|
|
133
134
|
*/
|
|
134
135
|
private callServerToolInternal;
|
|
136
|
+
/**
|
|
137
|
+
* Ensure the client is connected before making transport requests.
|
|
138
|
+
* Safe to call concurrently — deduplicates in-flight connect() calls.
|
|
139
|
+
* Only needed for server-side clients that use transport.sendRequest() directly.
|
|
140
|
+
*/
|
|
141
|
+
private ensureConnected;
|
|
135
142
|
/**
|
|
136
143
|
* Initialize all integrations
|
|
137
144
|
*/
|
package/dist/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,OAAO,EAEP,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAiB,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACrG,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAQrB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,K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