mcp-use 1.2.2-canary.0 → 1.2.2
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/.tsbuildinfo +1 -1
- package/dist/{chunk-VPPILX7B.js → chunk-3RJENWH4.js} +15 -6
- package/dist/{chunk-UVUM35MV.js → chunk-7UX634PO.js} +307 -112
- package/dist/{chunk-CPV4QNHD.js → chunk-KLIBVJ3Z.js} +145 -79
- package/dist/{chunk-EYAIJPBH.js → chunk-MZLETWQQ.js} +55 -17
- package/dist/{chunk-C3SRZK7H.js → chunk-RSGKBEHH.js} +144 -72
- package/dist/index.cjs +719 -300
- package/dist/index.d.ts +24 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -28
- package/dist/{langfuse-MO3AMDBE.js → langfuse-LCJ6VJEP.js} +2 -2
- package/dist/src/adapters/base.d.ts +2 -2
- package/dist/src/adapters/base.d.ts.map +1 -1
- package/dist/src/adapters/index.d.ts +2 -2
- package/dist/src/adapters/index.d.ts.map +1 -1
- package/dist/src/adapters/langchain_adapter.d.ts +4 -4
- package/dist/src/adapters/langchain_adapter.d.ts.map +1 -1
- package/dist/src/agents/base.d.ts +1 -1
- package/dist/src/agents/base.d.ts.map +1 -1
- package/dist/src/agents/index.d.ts +3 -3
- package/dist/src/agents/index.d.ts.map +1 -1
- package/dist/src/agents/mcp_agent.d.ts +12 -12
- package/dist/src/agents/mcp_agent.d.ts.map +1 -1
- package/dist/src/agents/prompts/system_prompt_builder.d.ts +2 -2
- package/dist/src/agents/prompts/system_prompt_builder.d.ts.map +1 -1
- package/dist/src/agents/prompts/templates.d.ts.map +1 -1
- package/dist/src/agents/remote.d.ts +2 -2
- package/dist/src/agents/remote.d.ts.map +1 -1
- package/dist/src/agents/types.d.ts +1 -1
- package/dist/src/agents/types.d.ts.map +1 -1
- package/dist/src/agents/utils/ai_sdk.d.ts +1 -1
- package/dist/src/agents/utils/ai_sdk.d.ts.map +1 -1
- package/dist/src/agents/utils/index.d.ts +1 -1
- package/dist/src/agents/utils/index.d.ts.map +1 -1
- package/dist/src/auth/browser-provider.d.ts +2 -2
- package/dist/src/auth/browser-provider.d.ts.map +1 -1
- package/dist/src/auth/callback.d.ts.map +1 -1
- package/dist/src/auth/index.d.ts +3 -3
- package/dist/src/auth/index.d.ts.map +1 -1
- package/dist/src/auth/types.d.ts +1 -1
- package/dist/src/auth/types.d.ts.map +1 -1
- package/dist/src/browser.cjs +508 -201
- package/dist/src/browser.d.ts +17 -17
- package/dist/src/browser.d.ts.map +1 -1
- package/dist/src/browser.js +11 -5
- package/dist/src/client/base.d.ts +2 -2
- package/dist/src/client/base.d.ts.map +1 -1
- package/dist/src/client/browser.d.ts +2 -2
- package/dist/src/client/browser.d.ts.map +1 -1
- package/dist/src/client.d.ts +2 -2
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/config.d.ts +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/connectors/base.d.ts +5 -5
- package/dist/src/connectors/base.d.ts.map +1 -1
- package/dist/src/connectors/http.d.ts +3 -3
- package/dist/src/connectors/http.d.ts.map +1 -1
- package/dist/src/connectors/index.d.ts +4 -4
- package/dist/src/connectors/index.d.ts.map +1 -1
- package/dist/src/connectors/stdio.d.ts +3 -3
- package/dist/src/connectors/stdio.d.ts.map +1 -1
- package/dist/src/connectors/websocket.d.ts +3 -3
- package/dist/src/connectors/websocket.d.ts.map +1 -1
- package/dist/src/logging.d.ts +4 -4
- package/dist/src/logging.d.ts.map +1 -1
- package/dist/src/managers/index.d.ts +2 -2
- package/dist/src/managers/index.d.ts.map +1 -1
- package/dist/src/managers/server_manager.d.ts +4 -4
- package/dist/src/managers/server_manager.d.ts.map +1 -1
- package/dist/src/managers/tools/acquire_active_mcp_server.d.ts +3 -3
- package/dist/src/managers/tools/acquire_active_mcp_server.d.ts.map +1 -1
- package/dist/src/managers/tools/add_server_from_config.d.ts +3 -3
- package/dist/src/managers/tools/add_server_from_config.d.ts.map +1 -1
- package/dist/src/managers/tools/base.d.ts +6 -6
- package/dist/src/managers/tools/base.d.ts.map +1 -1
- package/dist/src/managers/tools/connect_mcp_server.d.ts +4 -4
- package/dist/src/managers/tools/connect_mcp_server.d.ts.map +1 -1
- package/dist/src/managers/tools/index.d.ts +5 -5
- package/dist/src/managers/tools/index.d.ts.map +1 -1
- package/dist/src/managers/tools/list_mcp_servers.d.ts +3 -3
- package/dist/src/managers/tools/list_mcp_servers.d.ts.map +1 -1
- package/dist/src/managers/tools/release_mcp_server_connection.d.ts +3 -3
- package/dist/src/managers/tools/release_mcp_server_connection.d.ts.map +1 -1
- package/dist/src/managers/types.d.ts +3 -3
- package/dist/src/managers/types.d.ts.map +1 -1
- package/dist/src/oauth-helper.d.ts.map +1 -1
- package/dist/src/observability/index.d.ts +3 -3
- package/dist/src/observability/index.d.ts.map +1 -1
- package/dist/src/observability/langfuse.d.ts +1 -1
- package/dist/src/observability/langfuse.d.ts.map +1 -1
- package/dist/src/observability/manager.d.ts +1 -1
- package/dist/src/observability/manager.d.ts.map +1 -1
- package/dist/src/observability/types.d.ts +1 -1
- package/dist/src/observability/types.d.ts.map +1 -1
- package/dist/src/react/index.cjs +295 -154
- package/dist/src/react/index.d.ts +6 -6
- package/dist/src/react/index.d.ts.map +1 -1
- package/dist/src/react/index.js +3 -3
- package/dist/src/react/types.d.ts +6 -6
- package/dist/src/react/types.d.ts.map +1 -1
- package/dist/src/react/useMcp.d.ts +1 -1
- package/dist/src/react/useMcp.d.ts.map +1 -1
- package/dist/src/react/useWidget.d.ts +5 -2
- package/dist/src/react/useWidget.d.ts.map +1 -1
- package/dist/src/react/widget-types.d.ts +3 -3
- package/dist/src/react/widget-types.d.ts.map +1 -1
- package/dist/src/server/adapters/mcp-ui-adapter.d.ts +3 -3
- package/dist/src/server/adapters/mcp-ui-adapter.d.ts.map +1 -1
- package/dist/src/server/index.cjs +170 -50
- package/dist/src/server/index.d.ts +4 -4
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/server/index.js +174 -51
- package/dist/src/server/logging.d.ts +1 -1
- package/dist/src/server/logging.d.ts.map +1 -1
- package/dist/src/server/mcp-server.d.ts +29 -29
- package/dist/src/server/mcp-server.d.ts.map +1 -1
- package/dist/src/server/types/common.d.ts +2 -2
- package/dist/src/server/types/common.d.ts.map +1 -1
- package/dist/src/server/types/index.d.ts +4 -4
- package/dist/src/server/types/index.d.ts.map +1 -1
- package/dist/src/server/types/prompt.d.ts +2 -2
- package/dist/src/server/types/prompt.d.ts.map +1 -1
- package/dist/src/server/types/resource.d.ts +24 -24
- package/dist/src/server/types/resource.d.ts.map +1 -1
- package/dist/src/server/types/tool.d.ts +3 -3
- package/dist/src/server/types/tool.d.ts.map +1 -1
- package/dist/src/server/types/widget.d.ts +1 -1
- package/dist/src/server/types.d.ts +1 -1
- package/dist/src/server/types.d.ts.map +1 -1
- package/dist/src/session.d.ts +1 -1
- package/dist/src/session.d.ts.map +1 -1
- package/dist/src/task_managers/base.d.ts.map +1 -1
- package/dist/src/task_managers/index.d.ts +5 -5
- package/dist/src/task_managers/index.d.ts.map +1 -1
- package/dist/src/task_managers/sse.d.ts +3 -3
- package/dist/src/task_managers/sse.d.ts.map +1 -1
- package/dist/src/task_managers/stdio.d.ts +4 -4
- package/dist/src/task_managers/stdio.d.ts.map +1 -1
- package/dist/src/task_managers/streamable_http.d.ts +3 -3
- package/dist/src/task_managers/streamable_http.d.ts.map +1 -1
- package/dist/src/task_managers/websocket.d.ts +2 -2
- package/dist/src/task_managers/websocket.d.ts.map +1 -1
- package/dist/src/telemetry/events.d.ts.map +1 -1
- package/dist/src/telemetry/index.d.ts +4 -4
- package/dist/src/telemetry/index.d.ts.map +1 -1
- package/dist/src/telemetry/telemetry.d.ts +1 -1
- package/dist/src/telemetry/telemetry.d.ts.map +1 -1
- package/dist/src/telemetry/utils.d.ts +1 -1
- package/dist/src/telemetry/utils.d.ts.map +1 -1
- package/dist/tsup.config.d.ts.map +1 -1
- package/dist/vitest.config.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/src/browser.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Browser entry point - exports OAuth utilities and MCP client/agent for browser-based MCP usage
|
|
3
3
|
*/
|
|
4
|
-
export { BrowserMCPClient as MCPClient } from
|
|
5
|
-
export { MCPAgent } from
|
|
6
|
-
export { RemoteAgent } from
|
|
7
|
-
export { BaseAdapter, LangChainAdapter } from
|
|
8
|
-
export { BaseConnector } from
|
|
9
|
-
export { HttpConnector } from
|
|
10
|
-
export { WebSocketConnector } from
|
|
11
|
-
export { MCPSession } from
|
|
12
|
-
export { BrowserOAuthClientProvider } from
|
|
13
|
-
export { onMcpAuthorization } from
|
|
14
|
-
export type { StoredState } from
|
|
15
|
-
export { Logger, logger } from
|
|
16
|
-
export { type ObservabilityConfig, ObservabilityManager } from
|
|
17
|
-
export * from
|
|
18
|
-
export { AIMessage, BaseMessage, HumanMessage, SystemMessage, ToolMessage } from
|
|
19
|
-
export type { StreamEvent } from
|
|
20
|
-
export type { OAuthClientInformation, OAuthMetadata, OAuthTokens } from
|
|
4
|
+
export { BrowserMCPClient as MCPClient } from "./client/browser.js";
|
|
5
|
+
export { MCPAgent } from "./agents/mcp_agent.js";
|
|
6
|
+
export { RemoteAgent } from "./agents/remote.js";
|
|
7
|
+
export { BaseAdapter, LangChainAdapter } from "./adapters/index.js";
|
|
8
|
+
export { BaseConnector } from "./connectors/base.js";
|
|
9
|
+
export { HttpConnector } from "./connectors/http.js";
|
|
10
|
+
export { WebSocketConnector } from "./connectors/websocket.js";
|
|
11
|
+
export { MCPSession } from "./session.js";
|
|
12
|
+
export { BrowserOAuthClientProvider } from "./auth/browser-provider.js";
|
|
13
|
+
export { onMcpAuthorization } from "./auth/callback.js";
|
|
14
|
+
export type { StoredState } from "./auth/types.js";
|
|
15
|
+
export { Logger, logger } from "./logging.js";
|
|
16
|
+
export { type ObservabilityConfig, ObservabilityManager, } from "./observability/index.js";
|
|
17
|
+
export * from "./agents/utils/index.js";
|
|
18
|
+
export { AIMessage, BaseMessage, HumanMessage, SystemMessage, ToolMessage, } from "@langchain/core/messages";
|
|
19
|
+
export type { StreamEvent } from "@langchain/core/tracers/log_stream";
|
|
20
|
+
export type { OAuthClientInformation, OAuthMetadata, OAuthTokens, } from "@modelcontextprotocol/sdk/shared/auth.js";
|
|
21
21
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EACL,KAAK,mBAAmB,EACxB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAGlC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAGlC,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAGtE,YAAY,EACV,sBAAsB,EACtB,aAAa,EACb,WAAW,GACZ,MAAM,0CAA0C,CAAC"}
|
package/dist/src/browser.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createReadableStreamFromGenerator,
|
|
8
8
|
streamEventsToAISDK,
|
|
9
9
|
streamEventsToAISDKWithTools
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-7UX634PO.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseConnector,
|
|
13
13
|
BrowserMCPClient,
|
|
@@ -16,16 +16,22 @@ import {
|
|
|
16
16
|
MCPSession,
|
|
17
17
|
WebSocketConnector,
|
|
18
18
|
onMcpAuthorization
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-RSGKBEHH.js";
|
|
20
|
+
import "../chunk-MZLETWQQ.js";
|
|
21
21
|
import {
|
|
22
22
|
Logger,
|
|
23
23
|
logger
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-3RJENWH4.js";
|
|
25
25
|
import "../chunk-SHUYVCID.js";
|
|
26
26
|
|
|
27
27
|
// src/browser.ts
|
|
28
|
-
import {
|
|
28
|
+
import {
|
|
29
|
+
AIMessage,
|
|
30
|
+
BaseMessage,
|
|
31
|
+
HumanMessage,
|
|
32
|
+
SystemMessage,
|
|
33
|
+
ToolMessage
|
|
34
|
+
} from "@langchain/core/messages";
|
|
29
35
|
export {
|
|
30
36
|
AIMessage,
|
|
31
37
|
BaseAdapter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseConnector } from
|
|
2
|
-
import { MCPSession } from
|
|
1
|
+
import type { BaseConnector } from "../connectors/base.js";
|
|
2
|
+
import { MCPSession } from "../session.js";
|
|
3
3
|
/**
|
|
4
4
|
* Base MCPClient class with shared functionality
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/client/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/client/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;GAKG;AACH,8BAAsB,aAAa;IACjC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAC3C,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAM;IAC7C,cAAc,EAAE,MAAM,EAAE,CAAM;gBAEzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAM1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,aAAa;IAKzD,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IAKhE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAOhC,cAAc,IAAI,MAAM,EAAE;IAI1B,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIlD,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIvC;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,yBAAyB,CAC1C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa;IAEH,aAAa,CACxB,UAAU,EAAE,MAAM,EAClB,cAAc,UAAO,GACpB,OAAO,CAAC,UAAU,CAAC;IAyBT,iBAAiB,CAC5B,cAAc,UAAO,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAc/B,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAQjD,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAM5C,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB/C,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAqB/C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseConnector } from
|
|
2
|
-
import { BaseMCPClient } from
|
|
1
|
+
import type { BaseConnector } from "../connectors/base.js";
|
|
2
|
+
import { BaseMCPClient } from "./base.js";
|
|
3
3
|
/**
|
|
4
4
|
* Browser-compatible MCPClient implementation
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/client/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/client/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;gBACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAI1B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,gBAAgB;IAIlE;;;OAGG;IACH,SAAS,CAAC,yBAAyB,CACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa;CAgCjB"}
|
package/dist/src/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseConnector } from
|
|
2
|
-
import { BaseMCPClient } from
|
|
1
|
+
import type { BaseConnector } from "./connectors/base.js";
|
|
2
|
+
import { BaseMCPClient } from "./client/base.js";
|
|
3
3
|
/**
|
|
4
4
|
* Node.js-specific MCPClient implementation
|
|
5
5
|
*
|
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,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD;;;;;;;GAOG;AACH,qBAAa,SAAU,SAAQ,aAAa;gBAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAYnC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;WAI7C,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAIrD;;OAEG;IACI,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAQzC;;;OAGG;IACH,SAAS,CAAC,yBAAyB,CACjC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa;CAGjB"}
|
package/dist/src/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseConnector } from
|
|
1
|
+
import type { BaseConnector } from "./connectors/base.js";
|
|
2
2
|
export declare function loadConfigFile(filepath: string): Record<string, any>;
|
|
3
3
|
export declare function createConnectorFromConfig(serverConfig: Record<string, any>): BaseConnector;
|
|
4
4
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/src/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAGpE;AAED,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAChC,aAAa,CA6Bf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Client, ClientOptions } from
|
|
2
|
-
import type { RequestOptions } from
|
|
3
|
-
import type { CallToolResult, Tool } from
|
|
4
|
-
import type { ConnectionManager } from
|
|
1
|
+
import type { Client, ClientOptions } from "@modelcontextprotocol/sdk/client/index.js";
|
|
2
|
+
import type { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
3
|
+
import type { CallToolResult, Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
4
|
+
import type { ConnectionManager } from "../task_managers/base.js";
|
|
5
5
|
export interface ConnectorInitOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Options forwarded to the underlying MCP `Client` instance.
|
|
@@ -43,7 +43,7 @@ export declare abstract class BaseConnector {
|
|
|
43
43
|
* protocol‑level `initialize` handshake, so we only need to cache the list of
|
|
44
44
|
* tools and expose some server info.
|
|
45
45
|
*/
|
|
46
|
-
initialize(defaultRequestOptions?: RequestOptions): Promise<ReturnType<Client[
|
|
46
|
+
initialize(defaultRequestOptions?: RequestOptions): Promise<ReturnType<Client["getServerCapabilities"]>>;
|
|
47
47
|
/** Lazily expose the cached tools list. */
|
|
48
48
|
get tools(): Tool[];
|
|
49
49
|
/** Call a tool on the server. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/connectors/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/connectors/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACd,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,cAAc,CAAC;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,8BAAsB,aAAa;IACjC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IACvC,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAClE,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,IAAI,CAAQ;IAC3C,SAAS,CAAC,iBAAiB,EAAE,GAAG,CAAQ;IACxC,SAAS,CAAC,SAAS,UAAS;IAC5B,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;gBAElC,IAAI,GAAE,oBAAyB;IAI3C,0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AAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAW,EACzC,OAAO,CAAC,EAAE,cAAc;IAc1B;;OAEG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAkClD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConnectorInitOptions } from
|
|
2
|
-
import { BaseConnector } from
|
|
1
|
+
import type { ConnectorInitOptions } from "./base.js";
|
|
2
|
+
import { BaseConnector } from "./base.js";
|
|
3
3
|
export interface HttpConnectorOptions extends ConnectorInitOptions {
|
|
4
4
|
authToken?: string;
|
|
5
5
|
headers?: Record<string, string>;
|
|
@@ -28,6 +28,6 @@ export declare class HttpConnector extends BaseConnector {
|
|
|
28
28
|
/**
|
|
29
29
|
* Get the transport type being used (streamable-http or sse)
|
|
30
30
|
*/
|
|
31
|
-
getTransportType():
|
|
31
|
+
getTransportType(): "streamable-http" | "sse" | null;
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/connectors/http.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/connectors/http.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,aAAc,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoC;IAC/D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAU;IACpC,OAAO,CAAC,aAAa,CAA0C;gBAEnD,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB;IAkB5D,mFAAmF;IAC7E,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;YA6GhB,yBAAyB;YAuDzB,cAAc;IA4B5B,IAAI,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM7C;IAED;;OAEG;IACH,gBAAgB,IAAI,iBAAiB,GAAG,KAAK,GAAG,IAAI;CAGrD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BaseConnector } from
|
|
2
|
-
export { HttpConnector } from
|
|
3
|
-
export { StdioConnector } from
|
|
4
|
-
export { WebSocketConnector } from
|
|
1
|
+
export { BaseConnector } from "./base.js";
|
|
2
|
+
export { HttpConnector } from "./http.js";
|
|
3
|
+
export { StdioConnector } from "./stdio.js";
|
|
4
|
+
export { WebSocketConnector } from "./websocket.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Writable } from
|
|
2
|
-
import type { ConnectorInitOptions } from
|
|
3
|
-
import { BaseConnector } from
|
|
1
|
+
import type { Writable } from "node:stream";
|
|
2
|
+
import type { ConnectorInitOptions } from "./base.js";
|
|
3
|
+
import { BaseConnector } from "./base.js";
|
|
4
4
|
export interface StdioConnectorOptions extends ConnectorInitOptions {
|
|
5
5
|
clientInfo?: {
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/connectors/stdio.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../../src/connectors/stdio.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAMtD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAChD;AAED,qBAAa,cAAe,SAAQ,aAAa;IAC/C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;IAChC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAyB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAW;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoC;gBAEnD,EACV,OAAe,EACf,IAAS,EACT,GAAG,EACH,MAAuB,EACvB,GAAG,IAAI,EACR,GAAE;QACD,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC;KACnB,GAAG,qBAA0B;IAa9B,sDAAsD;IAChD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAoD9B,IAAI,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAK7C;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CallToolResult, ReadResourceResult, Tool } from
|
|
2
|
-
import { WebSocketConnectionManager } from
|
|
3
|
-
import { BaseConnector } from
|
|
1
|
+
import type { CallToolResult, ReadResourceResult, Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import { WebSocketConnectionManager } from "../task_managers/websocket.js";
|
|
3
|
+
import { BaseConnector } from "./base.js";
|
|
4
4
|
export interface WebSocketConnectorOptions {
|
|
5
5
|
authToken?: string;
|
|
6
6
|
headers?: Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/connectors/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,IAAI,EACL,MAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/connectors/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,IAAI,EACL,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA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f,IAAI,KAAK,IAAI,IAAI,EAAE,CAGlB;cAEe,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAkBjD,IAAI,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAK7C;CACF"}
|
package/dist/src/logging.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Logger as WinstonLogger } from
|
|
2
|
-
export type LogLevel =
|
|
1
|
+
import type { Logger as WinstonLogger } from "winston";
|
|
2
|
+
export type LogLevel = "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
|
|
3
3
|
interface LoggerOptions {
|
|
4
4
|
level?: LogLevel;
|
|
5
5
|
console?: boolean;
|
|
6
6
|
file?: string;
|
|
7
|
-
format?:
|
|
7
|
+
format?: "minimal" | "detailed" | "emoji";
|
|
8
8
|
}
|
|
9
9
|
declare class SimpleConsoleLogger {
|
|
10
10
|
private _level;
|
|
@@ -30,7 +30,7 @@ export declare class Logger {
|
|
|
30
30
|
private static getFormatter;
|
|
31
31
|
static configure(options?: LoggerOptions): Promise<void>;
|
|
32
32
|
static setDebug(enabled: boolean | 0 | 1 | 2): void;
|
|
33
|
-
static setFormat(format:
|
|
33
|
+
static setFormat(format: "minimal" | "detailed" | "emoji"): void;
|
|
34
34
|
}
|
|
35
35
|
export declare const logger: SimpleConsoleLogger | WinstonLogger;
|
|
36
36
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAoBvD,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,MAAM,GACN,MAAM,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AAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI;WA2B5C,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,IAAI;CAIxE;AAUD,eAAO,MAAM,MAAM,qCAAe,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./server_manager.js";
|
|
2
|
+
export * from "./tools/index.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/managers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/managers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { StructuredToolInterface } from
|
|
2
|
-
import type { LangChainAdapter } from
|
|
3
|
-
import type { MCPClient } from
|
|
4
|
-
import type { IServerManager } from
|
|
1
|
+
import type { StructuredToolInterface } from "@langchain/core/tools";
|
|
2
|
+
import type { LangChainAdapter } from "../adapters/langchain_adapter.js";
|
|
3
|
+
import type { MCPClient } from "../client.js";
|
|
4
|
+
import type { IServerManager } from "./types.js";
|
|
5
5
|
export declare class ServerManager implements IServerManager {
|
|
6
6
|
readonly initializedServers: Record<string, boolean>;
|
|
7
7
|
readonly serverTools: Record<string, StructuredToolInterface[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server_manager.d.ts","sourceRoot":"","sources":["../../../src/managers/server_manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"server_manager.d.ts","sourceRoot":"","sources":["../../../src/managers/server_manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AASjD,qBAAa,aAAc,YAAW,cAAc;IAClD,SAAgB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IACjE,SAAgB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAM;IAE5E,SAAgB,MAAM,EAAE,SAAS,CAAC;IAClC,SAAgB,OAAO,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC1C,OAAO,CAAC,uBAAuB,CAAC,CAA4B;gBAG1D,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,gBAAgB,EACzB,eAAe,CAAC,EAAE,uBAAuB,EAAE;IAOtC,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,IAAI;IAO1D,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAqBtC,UAAU,IAAI,IAAI;IAOZ,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8D1C,IAAI,KAAK,IAAI,uBAAuB,EAAE,CAsBrC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IServerManager } from
|
|
2
|
-
import { z } from
|
|
3
|
-
import { MCPServerTool } from
|
|
1
|
+
import type { IServerManager } from "../types.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { MCPServerTool } from "./base.js";
|
|
4
4
|
declare const PresentActiveServerSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5
5
|
export declare class AcquireActiveMCPServerTool extends MCPServerTool<typeof PresentActiveServerSchema> {
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acquire_active_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/acquire_active_mcp_server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"acquire_active_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/acquire_active_mcp_server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,yBAAyB,gDAAe,CAAC;AAE/C,qBAAa,0BAA2B,SAAQ,aAAa,CAC3D,OAAO,yBAAyB,CACjC;IACU,IAAI,SAA2B;IAC/B,WAAW,SAC6C;IACxD,MAAM,iDAA6B;gBAEhC,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAO/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IServerManager } from
|
|
2
|
-
import { StructuredTool } from
|
|
3
|
-
import { z } from
|
|
1
|
+
import type { IServerManager } from "../types.js";
|
|
2
|
+
import { StructuredTool } from "@langchain/core/tools";
|
|
3
|
+
import { z } from "zod";
|
|
4
4
|
export declare class AddMCPServerFromConfigTool extends StructuredTool {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_server_from_config.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/add_server_from_config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"add_server_from_config.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/add_server_from_config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,IAAI,SAAgC;IACpC,WAAW,SACyG;IAEpH,MAAM;;;;;;;;;OAOH;IAEH,OAAO,CAAC,OAAO,CAAiB;gBAEpB,OAAO,EAAE,cAAc;cAKnB,KAAK,CAAC,EACpB,UAAU,EACV,YAAY,GACb,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CA4BjD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { CallbackManagerForToolRun } from
|
|
2
|
-
import type { ToolParams, ToolRunnableConfig, ToolSchemaBase } from
|
|
3
|
-
import type { JSONSchema } from
|
|
4
|
-
import type z from
|
|
5
|
-
import type { IServerManager } from
|
|
6
|
-
import { StructuredTool } from
|
|
1
|
+
import type { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
|
|
2
|
+
import type { ToolParams, ToolRunnableConfig, ToolSchemaBase } from "@langchain/core/tools";
|
|
3
|
+
import type { JSONSchema } from "@langchain/core/utils/json_schema";
|
|
4
|
+
import type z from "zod";
|
|
5
|
+
import type { IServerManager } from "../types.js";
|
|
6
|
+
import { StructuredTool } from "@langchain/core/tools";
|
|
7
7
|
export type ToolOutputT = any;
|
|
8
8
|
export type SchemaOutputT<T extends ToolSchemaBase> = T extends z.ZodSchema ? z.output<T> : T extends JSONSchema ? unknown : never;
|
|
9
9
|
export interface MCPServerToolOptions extends ToolParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,
|
|
1
|
+
{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OAAO,CAAC,WAAW,CAAC;IAIvB,IAAI,OAAO,IAAI,cAAc,CAE5B;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IServerManager } from
|
|
2
|
-
import type { SchemaOutputT } from
|
|
3
|
-
import { z } from
|
|
4
|
-
import { MCPServerTool } from
|
|
1
|
+
import type { IServerManager } from "../types.js";
|
|
2
|
+
import type { SchemaOutputT } from "./base.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { MCPServerTool } from "./base.js";
|
|
5
5
|
declare const ConnectMCPServerSchema: z.ZodObject<{
|
|
6
6
|
serverName: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/connect_mcp_server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"connect_mcp_server.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/connect_mcp_server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB;;;;;;EAE1B,CAAC;AAEH,qBAAa,oBAAqB,SAAQ,aAAa,CACrD,OAAO,sBAAsB,CAC9B;IACU,IAAI,SAA2B;IAC/B,WAAW,SAC6H;IACxI,MAAM;;;;;;OAA0B;gBAE7B,OAAO,EAAE,cAAc;IAI7B,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC;CAuCzE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./acquire_active_mcp_server.js";
|
|
2
|
+
export * from "./add_server_from_config.js";
|
|
3
|
+
export * from "./connect_mcp_server.js";
|
|
4
|
+
export * from "./list_mcp_servers.js";
|
|
5
|
+
export * from "./release_mcp_server_connection.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oCAAoC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IServerManager } from
|
|
2
|
-
import { z } from
|
|
3
|
-
import { MCPServerTool } from
|
|
1
|
+
import type { IServerManager } from "../types.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { MCPServerTool } from "./base.js";
|
|
4
4
|
declare const EnumerateServersSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5
5
|
export declare class ListMCPServersTool extends MCPServerTool<typeof EnumerateServersSchema> {
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_mcp_servers.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/list_mcp_servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"list_mcp_servers.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/list_mcp_servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,sBAAsB,gDAAe,CAAC;AAE5C,qBAAa,kBAAmB,SAAQ,aAAa,CACnD,OAAO,sBAAsB,CAC9B;IACU,IAAI,SAAsB;IAC1B,WAAW,SAAkN;IAC7N,MAAM,iDAA0B;gBAE7B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CA2B/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IServerManager } from
|
|
2
|
-
import { z } from
|
|
3
|
-
import { MCPServerTool } from
|
|
1
|
+
import type { IServerManager } from "../types.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { MCPServerTool } from "./base.js";
|
|
4
4
|
declare const ReleaseConnectionSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5
5
|
export declare class ReleaseMCPServerConnectionTool extends MCPServerTool<typeof ReleaseConnectionSchema> {
|
|
6
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release_mcp_server_connection.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/release_mcp_server_connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"release_mcp_server_connection.d.ts","sourceRoot":"","sources":["../../../../src/managers/tools/release_mcp_server_connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,QAAA,MAAM,uBAAuB,gDAAe,CAAC;AAE7C,qBAAa,8BAA+B,SAAQ,aAAa,CAC/D,OAAO,uBAAuB,CAC/B;IACU,IAAI,SAAgC;IACpC,WAAW,SACyD;IACpE,MAAM,iDAA2B;gBAE9B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAQ/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StructuredToolInterface } from
|
|
2
|
-
import type { LangChainAdapter } from
|
|
3
|
-
import type { MCPClient } from
|
|
1
|
+
import type { StructuredToolInterface } from "@langchain/core/tools";
|
|
2
|
+
import type { LangChainAdapter } from "../adapters/langchain_adapter.js";
|
|
3
|
+
import type { MCPClient } from "../client.js";
|
|
4
4
|
export interface IServerManager {
|
|
5
5
|
readonly initializedServers: Record<string, boolean>;
|
|
6
6
|
readonly serverTools: Record<string, StructuredToolInterface[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/managers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/managers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAC;IAChE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAC;IAC3D,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,KAAK,IAAI,uBAAuB,EAAE,CAAC;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-helper.d.ts","sourceRoot":"","sources":["../../src/oauth-helper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"oauth-helper.d.ts","sourceRoot":"","sources":["../../src/oauth-helper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,gCAAgC,EAAE,MAAM,EAAE,CAAC;IAC3C,qCAAqC,CAAC,EAAE,MAAM,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAA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MAAM,GACpB,OAAO,CAAC,WAAW,CAAC;IAwCvB;;OAEG;IACH,cAAc,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAkBxD;;OAEG;IACG,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA2CtD;;OAEG;IACG,iBAAiB,CACrB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,WAAW,CAAC;IAiCvB;;OAEG;IACH,SAAS,IAAI,IAAI;IAWjB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAIhB;;OAEG;IACH,OAAO,CAAC,aAAa;CAMtB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAQjC,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;;;;;;;;EAU1E"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module provides centralized observability management for LangChain agents,
|
|
5
5
|
* supporting multiple platforms like Langfuse and Laminar.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
8
|
-
export { langfuseClient, langfuseHandler, langfuseInitPromise, } from
|
|
9
|
-
export { createManager, getDefaultManager, type ObservabilityConfig, ObservabilityManager, } from
|
|
7
|
+
import "./langfuse.js";
|
|
8
|
+
export { langfuseClient, langfuseHandler, langfuseInitPromise, } from "./langfuse.js";
|
|
9
|
+
export { createManager, getDefaultManager, type ObservabilityConfig, ObservabilityManager, } from "./manager.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,eAAe,CAAC;AAGvB,OAAO,EACL,cAAc,EACd,eAAe,EACf,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,oBAAoB,GACrB,MAAM,cAAc,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module provides automatic instrumentation and callback handler
|
|
5
5
|
* for Langfuse observability platform.
|
|
6
6
|
*/
|
|
7
|
-
import type { BaseCallbackHandler } from
|
|
7
|
+
import type { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
|
8
8
|
declare function initializeLangfuse(agentId?: string, metadata?: Record<string, any>, metadataProvider?: () => Record<string, any>, tagsProvider?: () => string[]): Promise<void>;
|
|
9
9
|
export declare const langfuseHandler: () => BaseCallbackHandler | null;
|
|
10
10
|
export declare const langfuseClient: () => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"langfuse.d.ts","sourceRoot":"","sources":["../../../src/observability/langfuse.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"langfuse.d.ts","sourceRoot":"","sources":["../../../src/observability/langfuse.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAiB1E,iBAAe,kBAAkB,CAC/B,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5C,YAAY,CAAC,EAAE,MAAM,MAAM,EAAE,GAC5B,OAAO,CAAC,IAAI,CAAC,CAqRf;AAoBD,eAAO,MAAM,eAAe,kCAA8B,CAAC;AAC3D,eAAO,MAAM,cAAc,WAA6B,CAAC;AACzD,eAAO,MAAM,mBAAmB,4BAAkC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This module provides a centralized manager for handling observability callbacks
|
|
5
5
|
* from various platforms (Langfuse, Laminar, etc.) in a clean and extensible way.
|
|
6
6
|
*/
|
|
7
|
-
import type { BaseCallbackHandler } from
|
|
7
|
+
import type { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
|
8
8
|
export interface ObservabilityConfig {
|
|
9
9
|
/** Custom callbacks to use instead of defaults */
|
|
10
10
|
customCallbacks?: BaseCallbackHandler[];
|