mcp-use 1.2.5-canary.5 → 1.2.5-canary.7
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/index.js
CHANGED
|
@@ -3,21 +3,6 @@ import {
|
|
|
3
3
|
streamEventsToAISDK,
|
|
4
4
|
streamEventsToAISDKWithTools
|
|
5
5
|
} from "./chunk-EW4MJSHA.js";
|
|
6
|
-
import {
|
|
7
|
-
AcquireActiveMCPServerTool,
|
|
8
|
-
AddMCPServerFromConfigTool,
|
|
9
|
-
BaseAdapter,
|
|
10
|
-
ConnectMCPServerTool,
|
|
11
|
-
LangChainAdapter,
|
|
12
|
-
ListMCPServersTool,
|
|
13
|
-
MCPAgent,
|
|
14
|
-
ObservabilityManager,
|
|
15
|
-
ReleaseMCPServerConnectionTool,
|
|
16
|
-
RemoteAgent,
|
|
17
|
-
ServerManager,
|
|
18
|
-
Telemetry,
|
|
19
|
-
setTelemetrySource
|
|
20
|
-
} from "./chunk-73SH52J2.js";
|
|
21
6
|
import {
|
|
22
7
|
useMcp,
|
|
23
8
|
useWidget,
|
|
@@ -35,6 +20,21 @@ import {
|
|
|
35
20
|
WebSocketConnector,
|
|
36
21
|
onMcpAuthorization
|
|
37
22
|
} from "./chunk-37MPZ3D6.js";
|
|
23
|
+
import {
|
|
24
|
+
AcquireActiveMCPServerTool,
|
|
25
|
+
AddMCPServerFromConfigTool,
|
|
26
|
+
BaseAdapter,
|
|
27
|
+
ConnectMCPServerTool,
|
|
28
|
+
LangChainAdapter,
|
|
29
|
+
ListMCPServersTool,
|
|
30
|
+
MCPAgent,
|
|
31
|
+
ObservabilityManager,
|
|
32
|
+
ReleaseMCPServerConnectionTool,
|
|
33
|
+
RemoteAgent,
|
|
34
|
+
ServerManager,
|
|
35
|
+
Telemetry,
|
|
36
|
+
setTelemetrySource
|
|
37
|
+
} from "./chunk-73SH52J2.js";
|
|
38
38
|
import "./chunk-YURRUCIM.js";
|
|
39
39
|
import {
|
|
40
40
|
Logger,
|
package/dist/src/browser.js
CHANGED
|
@@ -3,13 +3,6 @@ import {
|
|
|
3
3
|
streamEventsToAISDK,
|
|
4
4
|
streamEventsToAISDKWithTools
|
|
5
5
|
} from "../chunk-EW4MJSHA.js";
|
|
6
|
-
import {
|
|
7
|
-
BaseAdapter,
|
|
8
|
-
LangChainAdapter,
|
|
9
|
-
MCPAgent,
|
|
10
|
-
ObservabilityManager,
|
|
11
|
-
RemoteAgent
|
|
12
|
-
} from "../chunk-73SH52J2.js";
|
|
13
6
|
import {
|
|
14
7
|
BaseConnector,
|
|
15
8
|
BrowserMCPClient,
|
|
@@ -19,6 +12,13 @@ import {
|
|
|
19
12
|
WebSocketConnector,
|
|
20
13
|
onMcpAuthorization
|
|
21
14
|
} from "../chunk-37MPZ3D6.js";
|
|
15
|
+
import {
|
|
16
|
+
BaseAdapter,
|
|
17
|
+
LangChainAdapter,
|
|
18
|
+
MCPAgent,
|
|
19
|
+
ObservabilityManager,
|
|
20
|
+
RemoteAgent
|
|
21
|
+
} from "../chunk-73SH52J2.js";
|
|
22
22
|
import "../chunk-YURRUCIM.js";
|
|
23
23
|
import {
|
|
24
24
|
Logger,
|
|
@@ -1783,13 +1783,13 @@ if (container && Component) {
|
|
|
1783
1783
|
"Access-Control-Allow-Origin": "*",
|
|
1784
1784
|
"Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type"
|
|
1785
1785
|
};
|
|
1786
|
+
const handler = await this.getHandler({ provider: "supabase" });
|
|
1786
1787
|
globalThis.Deno.serve(
|
|
1787
|
-
{ port: this.serverPort, hostname: this.serverHost },
|
|
1788
1788
|
async (req) => {
|
|
1789
1789
|
if (req.method === "OPTIONS") {
|
|
1790
1790
|
return new Response("ok", { headers: corsHeaders });
|
|
1791
1791
|
}
|
|
1792
|
-
const response = await
|
|
1792
|
+
const response = await handler(req);
|
|
1793
1793
|
const newHeaders = new Headers(response.headers);
|
|
1794
1794
|
Object.entries(corsHeaders).forEach(([key, value]) => {
|
|
1795
1795
|
newHeaders.set(key, value);
|
|
@@ -1802,12 +1802,8 @@ if (container && Component) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
);
|
|
1804
1804
|
console.log(
|
|
1805
|
-
`[SERVER] Listening
|
|
1805
|
+
`[SERVER] Listening`
|
|
1806
1806
|
);
|
|
1807
|
-
console.log(
|
|
1808
|
-
`[MCP] Endpoints: http://${this.serverHost}:${this.serverPort}/mcp`
|
|
1809
|
-
);
|
|
1810
|
-
} else {
|
|
1811
1807
|
const { serve } = await import("@hono/node-server");
|
|
1812
1808
|
serve(
|
|
1813
1809
|
{
|
package/dist/src/server/index.js
CHANGED
|
@@ -1745,13 +1745,13 @@ if (container && Component) {
|
|
|
1745
1745
|
"Access-Control-Allow-Origin": "*",
|
|
1746
1746
|
"Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type"
|
|
1747
1747
|
};
|
|
1748
|
+
const handler = await this.getHandler({ provider: "supabase" });
|
|
1748
1749
|
globalThis.Deno.serve(
|
|
1749
|
-
{ port: this.serverPort, hostname: this.serverHost },
|
|
1750
1750
|
async (req) => {
|
|
1751
1751
|
if (req.method === "OPTIONS") {
|
|
1752
1752
|
return new Response("ok", { headers: corsHeaders });
|
|
1753
1753
|
}
|
|
1754
|
-
const response = await
|
|
1754
|
+
const response = await handler(req);
|
|
1755
1755
|
const newHeaders = new Headers(response.headers);
|
|
1756
1756
|
Object.entries(corsHeaders).forEach(([key, value]) => {
|
|
1757
1757
|
newHeaders.set(key, value);
|
|
@@ -1764,12 +1764,8 @@ if (container && Component) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
);
|
|
1766
1766
|
console.log(
|
|
1767
|
-
`[SERVER] Listening
|
|
1767
|
+
`[SERVER] Listening`
|
|
1768
1768
|
);
|
|
1769
|
-
console.log(
|
|
1770
|
-
`[MCP] Endpoints: http://${this.serverHost}:${this.serverPort}/mcp`
|
|
1771
|
-
);
|
|
1772
|
-
} else {
|
|
1773
1769
|
const { serve } = await import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+1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-use",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.5-canary.
|
|
4
|
+
"version": "1.2.5-canary.7",
|
|
5
5
|
"packageManager": "pnpm@10.6.1",
|
|
6
6
|
"description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
|
|
7
7
|
"author": "mcp-use, Inc.",
|