mcp-use 1.1.8-canary.0 → 1.2.0-canary.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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/{chunk-4SWVHFJH.js → chunk-ZD4Q56ZQ.js} +250 -197
  4. package/dist/{chunk-2HFIPY7C.js → chunk-ZUEQQ6YK.js} +17 -2
  5. package/dist/index.cjs +281 -209
  6. package/dist/index.js +2 -2
  7. package/dist/{langfuse-YA2S23SM.js → langfuse-6AJGHMAV.js} +1 -1
  8. package/dist/src/agents/mcp_agent.d.ts +30 -6
  9. package/dist/src/agents/mcp_agent.d.ts.map +1 -1
  10. package/dist/src/agents/prompts/system_prompt_builder.d.ts +1 -1
  11. package/dist/src/agents/prompts/system_prompt_builder.d.ts.map +1 -1
  12. package/dist/src/browser.cjs +281 -209
  13. package/dist/src/browser.js +2 -2
  14. package/dist/src/managers/server_manager.d.ts +2 -1
  15. package/dist/src/managers/server_manager.d.ts.map +1 -1
  16. package/dist/src/managers/tools/acquire_active_mcp_server.d.ts +2 -2
  17. package/dist/src/managers/tools/acquire_active_mcp_server.d.ts.map +1 -1
  18. package/dist/src/managers/tools/add_server_from_config.d.ts +3 -3
  19. package/dist/src/managers/tools/add_server_from_config.d.ts.map +1 -1
  20. package/dist/src/managers/tools/base.d.ts +3 -3
  21. package/dist/src/managers/tools/base.d.ts.map +1 -1
  22. package/dist/src/managers/tools/connect_mcp_server.d.ts +2 -2
  23. package/dist/src/managers/tools/connect_mcp_server.d.ts.map +1 -1
  24. package/dist/src/managers/tools/list_mcp_servers.d.ts +2 -2
  25. package/dist/src/managers/tools/list_mcp_servers.d.ts.map +1 -1
  26. package/dist/src/managers/tools/release_mcp_server_connection.d.ts +2 -2
  27. package/dist/src/managers/tools/release_mcp_server_connection.d.ts.map +1 -1
  28. package/dist/src/managers/types.d.ts +14 -0
  29. package/dist/src/managers/types.d.ts.map +1 -0
  30. package/dist/src/observability/langfuse.d.ts.map +1 -1
  31. package/dist/src/observability/manager.d.ts +11 -0
  32. package/dist/src/observability/manager.d.ts.map +1 -1
  33. package/dist/src/server/index.cjs +49 -2
  34. package/dist/src/server/index.js +49 -2
  35. package/dist/src/server/mcp-server.d.ts.map +1 -1
  36. package/dist/tsup.config.d.ts.map +1 -1
  37. package/package.json +33 -13
  38. package/dist/tests/ai_sdk_compatibility.test.d.ts +0 -13
  39. package/dist/tests/ai_sdk_compatibility.test.d.ts.map +0 -1
  40. package/dist/tests/helpers/widget-generators.d.ts +0 -24
  41. package/dist/tests/helpers/widget-generators.d.ts.map +0 -1
  42. package/dist/tests/mcp-ui-adapter.test.d.ts +0 -8
  43. package/dist/tests/mcp-ui-adapter.test.d.ts.map +0 -1
  44. package/dist/tests/stream_events.test.d.ts +0 -12
  45. package/dist/tests/stream_events.test.d.ts.map +0 -1
  46. package/dist/tests/stream_events_simple.test.d.ts +0 -7
  47. package/dist/tests/stream_events_simple.test.d.ts.map +0 -1
  48. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -12,7 +12,7 @@ import {
12
12
  createReadableStreamFromGenerator,
13
13
  streamEventsToAISDK,
14
14
  streamEventsToAISDKWithTools
15
- } from "../chunk-4SWVHFJH.js";
15
+ } from "../chunk-ZD4Q56ZQ.js";
16
16
  import {
17
17
  BrowserOAuthClientProvider,
18
18
  onMcpAuthorization
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  Logger,
22
22
  logger
23
- } from "../chunk-2HFIPY7C.js";
23
+ } from "../chunk-ZUEQQ6YK.js";
24
24
  import {
25
25
  __name
26
26
  } from "../chunk-SHUYVCID.js";
@@ -1,7 +1,8 @@
1
1
  import type { StructuredToolInterface } from '@langchain/core/tools';
2
2
  import type { LangChainAdapter } from '../adapters/langchain_adapter.js';
3
3
  import type { MCPClient } from '../client.js';
4
- export declare class ServerManager {
4
+ import type { IServerManager } from './types.js';
5
+ export declare class ServerManager implements IServerManager {
5
6
  readonly initializedServers: Record<string, boolean>;
6
7
  readonly serverTools: Record<string, StructuredToolInterface[]>;
7
8
  readonly client: MCPClient;
@@ -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,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAW7C,qBAAa,aAAa;IACxB,SAAgB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAK;IAChE,SAAgB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAK;IAE3E,SAAgB,MAAM,EAAE,SAAS,CAAA;IACjC,SAAgB,OAAO,EAAE,gBAAgB,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IACzC,OAAO,CAAC,uBAAuB,CAAC,CAA2B;gBAGzD,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;IAoD1C,IAAI,KAAK,IAAI,uBAAuB,EAAE,CAsBrC;CACF"}
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,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAG7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAShD,qBAAa,aAAc,YAAW,cAAc;IAClD,SAAgB,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAK;IAChE,SAAgB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAK;IAE3E,SAAgB,MAAM,EAAE,SAAS,CAAA;IACjC,SAAgB,OAAO,EAAE,gBAAgB,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IACzC,OAAO,CAAC,uBAAuB,CAAC,CAA2B;gBAGzD,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;IAoD1C,IAAI,KAAK,IAAI,uBAAuB,EAAE,CAsBrC;CACF"}
@@ -1,4 +1,4 @@
1
- import type { ServerManager } from '../server_manager.js';
1
+ import type { IServerManager } from '../types.js';
2
2
  import { z } from 'zod';
3
3
  import { MCPServerTool } from './base.js';
4
4
  declare const PresentActiveServerSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -6,7 +6,7 @@ export declare class AcquireActiveMCPServerTool extends MCPServerTool<typeof Pre
6
6
  name: string;
7
7
  description: string;
8
8
  schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
9
- constructor(manager: ServerManager);
9
+ constructor(manager: IServerManager);
10
10
  _call(): Promise<string>;
11
11
  }
12
12
  export {};
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,yBAAyB,gDAAe,CAAA;AAE9C,qBAAa,0BAA2B,SAAQ,aAAa,CAAC,OAAO,yBAAyB,CAAC;IACpF,IAAI,SAA0B;IAC9B,WAAW,SAAiE;IAC5E,MAAM,iDAA4B;gBAE/B,OAAO,EAAE,aAAa;IAI5B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAO/B"}
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,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,yBAAyB,gDAAe,CAAA;AAE9C,qBAAa,0BAA2B,SAAQ,aAAa,CAAC,OAAO,yBAAyB,CAAC;IACpF,IAAI,SAA0B;IAC9B,WAAW,SAAiE;IAC5E,MAAM,iDAA4B;gBAE/B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAO/B"}
@@ -1,5 +1,5 @@
1
- import type { ServerManager } from '../server_manager.js';
2
- import { StructuredTool } from 'langchain/tools';
1
+ import type { IServerManager } from '../types.js';
2
+ import { StructuredTool } from '@langchain/core/tools';
3
3
  import { z } from 'zod';
4
4
  export declare class AddMCPServerFromConfigTool extends StructuredTool {
5
5
  name: string;
@@ -15,7 +15,7 @@ export declare class AddMCPServerFromConfigTool extends StructuredTool {
15
15
  serverConfig?: any;
16
16
  }>;
17
17
  private manager;
18
- constructor(manager: ServerManager);
18
+ constructor(manager: IServerManager);
19
19
  protected _call({ serverName, serverConfig, }: z.infer<typeof this.schema>): Promise<string>;
20
20
  }
21
21
  //# sourceMappingURL=add_server_from_config.d.ts.map
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,IAAI,SAA+B;IACnC,WAAW,SAC0G;IAErH,MAAM;;;;;;;;;OAOJ;IAEF,OAAO,CAAC,OAAO,CAAe;gBAElB,OAAO,EAAE,aAAa;cAKlB,KAAK,CAAC,EACpB,UAAU,EACV,YAAY,GACb,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CA6BjD"}
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,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,IAAI,SAA+B;IACnC,WAAW,SAC0G;IAErH,MAAM;;;;;;;;;OAOJ;IAEF,OAAO,CAAC,OAAO,CAAgB;gBAEnB,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;CA6BjD"}
@@ -2,7 +2,7 @@ import type { CallbackManagerForToolRun } from '@langchain/core/callbacks/manage
2
2
  import type { ToolParams, ToolRunnableConfig, ToolSchemaBase } from '@langchain/core/tools';
3
3
  import type { JSONSchema } from '@langchain/core/utils/json_schema';
4
4
  import type z from 'zod';
5
- import type { ServerManager } from '../server_manager.js';
5
+ import type { IServerManager } from '../types.js';
6
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;
@@ -17,8 +17,8 @@ export declare class MCPServerTool<SchemaT extends ToolSchemaBase> extends Struc
17
17
  description: string;
18
18
  schema: SchemaT;
19
19
  private readonly _manager;
20
- constructor(manager: ServerManager);
20
+ constructor(manager: IServerManager);
21
21
  protected _call(_arg: SchemaOutputT<SchemaT>, _runManager?: CallbackManagerForToolRun, _parentConfig?: ToolRunnableConfig): Promise<ToolOutputT>;
22
- get manager(): ServerManager;
22
+ get manager(): IServerManager;
23
23
  }
24
24
  //# sourceMappingURL=base.d.ts.map
@@ -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,CAAA;AAClF,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,MAAM,WAAW,GAAG,GAAG,CAAA;AAC7B,MAAM,MAAM,aAAa,CAAC,CAAC,S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MAAM,MAAM,WAAW,GAAG,GAAG,CAAA;AAC7B,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,cAAc,IAAI,CAAC,SAAS,CAAC,CAAC,SAAS,GACvE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACX,CAAC,SAAS,UAAU,GAClB,OAAO,GACP,KAAK,CAAA;AAEX,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,qBAAa,aAAa,CAAC,OAAO,SAAS,cAAc,CAAE,SAAQ,cAAc,CAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACvG,IAAI,EAAE,MAAM,CAAoB;IAChC,WAAW,EAAE,MAAM,CAAyC;IAC5D,MAAM,EAAG,OAAO,CAAA;IAEzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;gBAE7B,OAAO,EAAE,cAAc;cAKnB,KAAK,CACnB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,WAAW,CAAC,EAAE,yBAAyB,EACvC,aAAa,CAAC,EAAE,kBAAkB,GACjC,OAAO,CAAC,WAAW,CAAC;IAIvB,IAAI,OAAO,IAAI,cAAc,CAE5B;CACF"}
@@ -1,4 +1,4 @@
1
- import type { ServerManager } from '../server_manager.js';
1
+ import type { IServerManager } from '../types.js';
2
2
  import type { SchemaOutputT } from './base.js';
3
3
  import { z } from 'zod';
4
4
  import { MCPServerTool } from './base.js';
@@ -19,7 +19,7 @@ export declare class ConnectMCPServerTool extends MCPServerTool<typeof ConnectMC
19
19
  }, {
20
20
  serverName: string;
21
21
  }>;
22
- constructor(manager: ServerManager);
22
+ constructor(manager: IServerManager);
23
23
  _call({ serverName }: SchemaOutputT<typeof ConnectMCPServerSchema>): Promise<string>;
24
24
  }
25
25
  export {};
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,sBAAsB;;;;;;EAE1B,CAAA;AAEF,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,OAAO,sBAAsB,CAAC;IAC3E,IAAI,SAA0B;IAC9B,WAAW,SAAiJ;IAC5J,MAAM;;;;;;OAAyB;gBAE5B,OAAO,EAAE,aAAa;IAI5B,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC;CAmCzE"}
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,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,sBAAsB;;;;;;EAE1B,CAAA;AAEF,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,OAAO,sBAAsB,CAAC;IAC3E,IAAI,SAA0B;IAC9B,WAAW,SAAiJ;IAC5J,MAAM;;;;;;OAAyB;gBAE5B,OAAO,EAAE,cAAc;IAI7B,KAAK,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC;CAmCzE"}
@@ -1,4 +1,4 @@
1
- import type { ServerManager } from '../server_manager.js';
1
+ import type { IServerManager } from '../types.js';
2
2
  import { z } from 'zod';
3
3
  import { MCPServerTool } from './base.js';
4
4
  declare const EnumerateServersSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -6,7 +6,7 @@ export declare class ListMCPServersTool extends MCPServerTool<typeof EnumerateSe
6
6
  name: string;
7
7
  description: string;
8
8
  schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
9
- constructor(manager: ServerManager);
9
+ constructor(manager: IServerManager);
10
10
  _call(): Promise<string>;
11
11
  }
12
12
  export {};
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,sBAAsB,gDAAe,CAAA;AAE3C,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,OAAO,sBAAsB,CAAC;IACzE,IAAI,SAAqB;IACzB,WAAW,SAAiN;IAC5N,MAAM,iDAAyB;gBAE5B,OAAO,EAAE,aAAa;IAI5B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAwB/B"}
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,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,sBAAsB,gDAAe,CAAA;AAE3C,qBAAa,kBAAmB,SAAQ,aAAa,CAAC,OAAO,sBAAsB,CAAC;IACzE,IAAI,SAAqB;IACzB,WAAW,SAAiN;IAC5N,MAAM,iDAAyB;gBAE5B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAwB/B"}
@@ -1,4 +1,4 @@
1
- import type { ServerManager } from '../server_manager.js';
1
+ import type { IServerManager } from '../types.js';
2
2
  import { z } from 'zod';
3
3
  import { MCPServerTool } from './base.js';
4
4
  declare const ReleaseConnectionSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -6,7 +6,7 @@ export declare class ReleaseMCPServerConnectionTool extends MCPServerTool<typeof
6
6
  name: string;
7
7
  description: string;
8
8
  schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
9
- constructor(manager: ServerManager);
9
+ constructor(manager: IServerManager);
10
10
  _call(): Promise<string>;
11
11
  }
12
12
  export {};
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,uBAAuB,gDAAe,CAAA;AAE5C,qBAAa,8BAA+B,SAAQ,aAAa,CAAC,OAAO,uBAAuB,CAAC;IACtF,IAAI,SAA+B;IACnC,WAAW,SAA6E;IACxF,MAAM,iDAA0B;gBAE7B,OAAO,EAAE,aAAa;IAI5B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAQ/B"}
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,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,QAAA,MAAM,uBAAuB,gDAAe,CAAA;AAE5C,qBAAa,8BAA+B,SAAQ,aAAa,CAAC,OAAO,uBAAuB,CAAC;IACtF,IAAI,SAA+B;IACnC,WAAW,SAA6E;IACxF,MAAM,iDAA0B;gBAE7B,OAAO,EAAE,cAAc;IAI7B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAQ/B"}
@@ -0,0 +1,14 @@
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
+ export interface IServerManager {
5
+ readonly initializedServers: Record<string, boolean>;
6
+ readonly serverTools: Record<string, StructuredToolInterface[]>;
7
+ readonly client: MCPClient;
8
+ readonly adapter: LangChainAdapter;
9
+ activeServer: string | null;
10
+ setManagementTools(tools: StructuredToolInterface[]): void;
11
+ prefetchServerTools(): Promise<void>;
12
+ get tools(): StructuredToolInterface[];
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/managers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAA;IAC/D,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;IAClC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAAA;IAC1D,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,IAAI,KAAK,IAAI,uBAAuB,EAAE,CAAA;CACvC"}
@@ -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,CAAA;AAgBzE,iBAAe,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8M9K;AAiBD,eAAO,MAAM,eAAe,kCAA8B,CAAA;AAC1D,eAAO,MAAM,cAAc,WAA6B,CAAA;AACxD,eAAO,MAAM,mBAAmB,4BAAkC,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
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,CAAA;AAgBzE,iBAAe,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAgO9K;AAiBD,eAAO,MAAM,eAAe,kCAA8B,CAAA;AAC1D,eAAO,MAAM,cAAc,WAA6B,CAAA;AACxD,eAAO,MAAM,mBAAmB,4BAAkC,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -52,6 +52,17 @@ export declare class ObservabilityManager {
52
52
  * @returns True if callbacks are available, False otherwise.
53
53
  */
54
54
  hasCallbacks(): Promise<boolean>;
55
+ /**
56
+ * Get the current observability status including metadata and tags.
57
+ * @returns Object containing enabled status, callback count, handler names, metadata, and tags.
58
+ */
59
+ getStatus(): Promise<{
60
+ enabled: boolean;
61
+ callbackCount: number;
62
+ handlerNames: string[];
63
+ metadata: Record<string, any>;
64
+ tags: string[];
65
+ }>;
55
66
  /**
56
67
  * Add a callback to the custom callbacks list.
57
68
  * @param callback The callback to add.
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../src/observability/manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAGzE,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,eAAe,CAAC,EAAE,mBAAmB,EAAE,CAAA;IACvC,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC9B,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5C,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,MAAM,EAAE,CAAA;CAC9B;AAED,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,eAAe,CAAC,CAAuB;IAC/C,OAAO,CAAC,iBAAiB,CAA4B;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mBAAmB,GAAG,IAAI;IAQhD;;OAEG;IACH,cAAc,IAAI,IAAI;IAKtB;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAW5B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAkB/B;;OAEG;IACH,QAAQ,IAAI,MAAM;CAOnB;AAKD;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,oBAAoB,CAKxD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,mBAAwB,GAAG,oBAAoB,CAEpF"}
@@ -939,7 +939,28 @@ if (container && Component) {
939
939
  }
940
940
  let html = "";
941
941
  try {
942
- html = await (0, import_node_fs2.readFileSync)((0, import_node_path.join)(tempDir, widget.name, "index.html"), "utf8");
942
+ html = (0, import_node_fs2.readFileSync)((0, import_node_path.join)(tempDir, widget.name, "index.html"), "utf8");
943
+ const mcpUrl = process.env.MCP_URL || "/";
944
+ if (mcpUrl && html) {
945
+ const htmlWithoutComments = html.replace(/<!--[\s\S]*?-->/g, "");
946
+ const baseTagRegex = /<base\s+[^>]*\/?>/i;
947
+ if (baseTagRegex.test(htmlWithoutComments)) {
948
+ const actualBaseTagMatch = html.match(/<base\s+[^>]*\/?>/i);
949
+ if (actualBaseTagMatch) {
950
+ html = html.replace(actualBaseTagMatch[0], `<base href="${mcpUrl}" />`);
951
+ }
952
+ } else {
953
+ const headTagRegex = /<head[^>]*>/i;
954
+ if (headTagRegex.test(html)) {
955
+ html = html.replace(headTagRegex, (match) => `${match}
956
+ <base href="${mcpUrl}" />`);
957
+ }
958
+ }
959
+ }
960
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
961
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
962
+ html = html.replace(/<head[^>]*>/i, `<head>
963
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${widget.name}/"+filename }</script>`);
943
964
  } catch (error) {
944
965
  console.error(`Failed to read html template for widget ${widget.name}`, error);
945
966
  }
@@ -1021,6 +1042,27 @@ if (container && Component) {
1021
1042
  let html = "";
1022
1043
  try {
1023
1044
  html = (0, import_node_fs2.readFileSync)(indexPath, "utf8");
1045
+ const mcpUrl = process.env.MCP_URL || "/";
1046
+ if (mcpUrl && html) {
1047
+ const htmlWithoutComments = html.replace(/<!--[\s\S]*?-->/g, "");
1048
+ const baseTagRegex = /<base\s+[^>]*\/?>/i;
1049
+ if (baseTagRegex.test(htmlWithoutComments)) {
1050
+ const actualBaseTagMatch = html.match(/<base\s+[^>]*\/?>/i);
1051
+ if (actualBaseTagMatch) {
1052
+ html = html.replace(actualBaseTagMatch[0], `<base href="${mcpUrl}" />`);
1053
+ }
1054
+ } else {
1055
+ const headTagRegex = /<head[^>]*>/i;
1056
+ if (headTagRegex.test(html)) {
1057
+ html = html.replace(headTagRegex, (match) => `${match}
1058
+ <base href="${mcpUrl}" />`);
1059
+ }
1060
+ }
1061
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1062
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1063
+ html = html.replace(/<head[^>]*>/i, `<head>
1064
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${widgetName}/"+filename }</script>`);
1065
+ }
1024
1066
  } catch (error) {
1025
1067
  console.error(`[WIDGET] Failed to read ${widgetName}/index.html:`, error);
1026
1068
  continue;
@@ -1263,7 +1305,12 @@ if (container && Component) {
1263
1305
  });
1264
1306
  this.app.get("/mcp-use/widgets/:widget", (req, res, next) => {
1265
1307
  const filePath = (0, import_node_path.join)(process.cwd(), "dist", "resources", "widgets", req.params.widget, "index.html");
1266
- res.sendFile(filePath, (err) => err ? next() : void 0);
1308
+ let html = (0, import_node_fs2.readFileSync)(filePath, "utf8");
1309
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1310
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1311
+ html = html.replace(/<head[^>]*>/i, `<head>
1312
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${req.params.widget}/"+filename }</script>`);
1313
+ res.send(html);
1267
1314
  });
1268
1315
  }
1269
1316
  /**
@@ -901,7 +901,28 @@ if (container && Component) {
901
901
  }
902
902
  let html = "";
903
903
  try {
904
- html = await readFileSync(join(tempDir, widget.name, "index.html"), "utf8");
904
+ html = readFileSync(join(tempDir, widget.name, "index.html"), "utf8");
905
+ const mcpUrl = process.env.MCP_URL || "/";
906
+ if (mcpUrl && html) {
907
+ const htmlWithoutComments = html.replace(/<!--[\s\S]*?-->/g, "");
908
+ const baseTagRegex = /<base\s+[^>]*\/?>/i;
909
+ if (baseTagRegex.test(htmlWithoutComments)) {
910
+ const actualBaseTagMatch = html.match(/<base\s+[^>]*\/?>/i);
911
+ if (actualBaseTagMatch) {
912
+ html = html.replace(actualBaseTagMatch[0], `<base href="${mcpUrl}" />`);
913
+ }
914
+ } else {
915
+ const headTagRegex = /<head[^>]*>/i;
916
+ if (headTagRegex.test(html)) {
917
+ html = html.replace(headTagRegex, (match) => `${match}
918
+ <base href="${mcpUrl}" />`);
919
+ }
920
+ }
921
+ }
922
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
923
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
924
+ html = html.replace(/<head[^>]*>/i, `<head>
925
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${widget.name}/"+filename }</script>`);
905
926
  } catch (error) {
906
927
  console.error(`Failed to read html template for widget ${widget.name}`, error);
907
928
  }
@@ -983,6 +1004,27 @@ if (container && Component) {
983
1004
  let html = "";
984
1005
  try {
985
1006
  html = readFileSync(indexPath, "utf8");
1007
+ const mcpUrl = process.env.MCP_URL || "/";
1008
+ if (mcpUrl && html) {
1009
+ const htmlWithoutComments = html.replace(/<!--[\s\S]*?-->/g, "");
1010
+ const baseTagRegex = /<base\s+[^>]*\/?>/i;
1011
+ if (baseTagRegex.test(htmlWithoutComments)) {
1012
+ const actualBaseTagMatch = html.match(/<base\s+[^>]*\/?>/i);
1013
+ if (actualBaseTagMatch) {
1014
+ html = html.replace(actualBaseTagMatch[0], `<base href="${mcpUrl}" />`);
1015
+ }
1016
+ } else {
1017
+ const headTagRegex = /<head[^>]*>/i;
1018
+ if (headTagRegex.test(html)) {
1019
+ html = html.replace(headTagRegex, (match) => `${match}
1020
+ <base href="${mcpUrl}" />`);
1021
+ }
1022
+ }
1023
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1024
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1025
+ html = html.replace(/<head[^>]*>/i, `<head>
1026
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${widgetName}/"+filename }</script>`);
1027
+ }
986
1028
  } catch (error) {
987
1029
  console.error(`[WIDGET] Failed to read ${widgetName}/index.html:`, error);
988
1030
  continue;
@@ -1225,7 +1267,12 @@ if (container && Component) {
1225
1267
  });
1226
1268
  this.app.get("/mcp-use/widgets/:widget", (req, res, next) => {
1227
1269
  const filePath = join(process.cwd(), "dist", "resources", "widgets", req.params.widget, "index.html");
1228
- res.sendFile(filePath, (err) => err ? next() : void 0);
1270
+ let html = readFileSync(filePath, "utf8");
1271
+ html = html.replace(/src="\/mcp-use\/widgets\/([^"]+)"/g, `src="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1272
+ html = html.replace(/href="\/mcp-use\/widgets\/([^"]+)"/g, `href="${this.serverBaseUrl}/mcp-use/widgets/$1"`);
1273
+ html = html.replace(/<head[^>]*>/i, `<head>
1274
+ <script>window.__getFile = (filename) => { return "${this.serverBaseUrl}/mcp-use/widgets/${req.params.widget}/"+filename }</script>`);
1275
+ res.send(html);
1229
1276
  });
1230
1277
  }
1231
1278
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACd,oBAAoB,EAIrB,MAAM,kBAAkB,CAAA;AAGzB,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAA;AAc/C,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,aAAa,CAAC,CAAQ;IAE9B;;;;;;;;;OASG;gBACS,MAAM,EAAE,YAAY;IAmChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,IAAI;IAmBtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,gBAAgB,CAAC,0BAA0B,EAAE,0BAA0B,GAAG,IAAI;IA4C9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,IAAI,CAAC,cAAc,EAAE,cAAc,G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,OAAO,CAAC,kBAAkB;IAwC1B;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,sBAAsB;IAmC9B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,gBAAgB;CAyBzB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,OAAO,CAAC,GAAG,OAAO,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GAAG,iBAAiB,CASnG"}
@@ -1 +1 @@
1
- {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":";AAEA,wBAcE"}
1
+ {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":";AAEA,wBAoBE"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-use",
3
3
  "type": "module",
4
- "version": "1.1.8-canary.0",
4
+ "version": "1.2.0-canary.0",
5
5
  "description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
6
6
  "author": "mcp-use, Inc.",
7
7
  "license": "MIT",
@@ -59,14 +59,29 @@
59
59
  "access": "public"
60
60
  },
61
61
  "peerDependencies": {
62
- "@mcp-use/inspector": "^0.4.8-canary.0",
62
+ "@langchain/anthropic": "^1.0.0",
63
+ "@langchain/openai": "^1.0.0",
64
+ "@mcp-use/cli": "^2.1.21-canary.0",
65
+ "@mcp-use/inspector": "^0.4.9-canary.0",
63
66
  "cors": "^2.8.5",
64
67
  "express": "^4.18.2",
65
- "langfuse": "^3.32.0",
66
- "langfuse-langchain": "^3.38.4",
68
+ "langfuse": "^3.38.6",
69
+ "langfuse-langchain": "^3.38.6",
67
70
  "react": "^18.0.0 || ^19.0.0"
68
71
  },
69
72
  "peerDependenciesMeta": {
73
+ "@langchain/anthropic": {
74
+ "optional": true
75
+ },
76
+ "@langchain/openai": {
77
+ "optional": true
78
+ },
79
+ "@mcp-use/cli": {
80
+ "optional": true
81
+ },
82
+ "@mcp-use/inspector": {
83
+ "optional": true
84
+ },
70
85
  "cors": {
71
86
  "optional": true
72
87
  },
@@ -82,9 +97,7 @@
82
97
  },
83
98
  "dependencies": {
84
99
  "@dmitryrechkin/json-schema-to-zod": "^1.0.1",
85
- "@langchain/anthropic": "^0.3.26",
86
- "@langchain/core": "^0.3.72",
87
- "@langchain/openai": "^0.6.9",
100
+ "@langchain/core": "^1.0.1",
88
101
  "@mcp-ui/server": "^5.12.0",
89
102
  "@modelcontextprotocol/sdk": "1.20.0",
90
103
  "@scarf/scarf": "^1.4.0",
@@ -94,7 +107,7 @@
94
107
  "commander": "^14.0.1",
95
108
  "dotenv": "^16.5.0",
96
109
  "esbuild": ">=0.25.0",
97
- "langchain": "^0.3.27",
110
+ "langchain": "^1.0.1",
98
111
  "lodash-es": "^4.17.21",
99
112
  "posthog-node": "^5.1.1",
100
113
  "strict-url-sanitise": "^0.0.1",
@@ -106,12 +119,12 @@
106
119
  "winston-transport-browserconsole": "^1.0.5",
107
120
  "ws": "^8.18.2",
108
121
  "zod": "^3.25.48",
109
- "zod-to-json-schema": "^3.24.6",
110
- "@mcp-use/cli": "2.1.20-canary.0",
111
- "@mcp-use/inspector": "0.4.8-canary.0"
122
+ "zod-to-json-schema": "^3.24.6"
112
123
  },
113
124
  "devDependencies": {
114
125
  "@antfu/eslint-config": "^4.13.2",
126
+ "@langchain/anthropic": "^1.0.0",
127
+ "@langchain/openai": "^1.0.0",
115
128
  "@types/cors": "^2.8.17",
116
129
  "@types/express": "^4.17.21",
117
130
  "@types/lodash-es": "^4.17.12",
@@ -126,7 +139,7 @@
126
139
  "lint-staged": "^15.2.11",
127
140
  "react": "^19.2.0",
128
141
  "typescript": "^5.8.3",
129
- "vitest": "^2.1.9"
142
+ "vitest": "^3.2.4"
130
143
  },
131
144
  "lint-staged": {
132
145
  "*.{js,ts}": [
@@ -142,8 +155,15 @@
142
155
  "build": "rm -rf dist && tsup && tsc --emitDeclarationOnly --declaration",
143
156
  "test": "vitest",
144
157
  "test:run": "vitest run",
158
+ "test:unit": "vitest run --exclude tests/integration/**",
145
159
  "test:simple": "vitest run tests/stream_events_simple.test.ts",
146
- "test:integration": "vitest run tests/stream_events.test.ts",
160
+ "test:integration": "vitest run tests/integration",
161
+ "test:integration:agent": "vitest run tests/integration/agent",
162
+ "test:integration:run": "vitest run tests/integration/agent/test_agent_run.test.ts",
163
+ "test:integration:stream": "vitest run tests/integration/agent/test_agent_stream.test.ts",
164
+ "test:integration:structured": "vitest run tests/integration/agent/test_agent_structured_output.test.ts",
165
+ "test:integration:manager": "vitest run tests/integration/agent/test_server_manager.test.ts",
166
+ "test:integration:observability": "vitest run tests/integration/agent/test_agent_observability.test.ts",
147
167
  "watch": "tsc --watch",
148
168
  "start": "node dist/index.js",
149
169
  "fmt": "eslint --fix",
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for AI SDK compatibility with MCPAgent streamEvents()
3
- *
4
- * These tests verify that streamEvents() can be used with the AI SDK's
5
- * LangChainAdapter for creating data stream responses compatible with
6
- * Vercel AI SDK hooks like useCompletion and useChat.
7
- */
8
- import type { StreamEvent } from '../index.js';
9
- declare function streamEventsToAISDK(streamEvents: AsyncGenerator<StreamEvent, void, void>): AsyncGenerator<string, void, void>;
10
- declare function streamEventsToCompleteContent(streamEvents: AsyncGenerator<StreamEvent, void, void>): AsyncGenerator<string, void, void>;
11
- declare function createReadableStreamFromGenerator(generator: AsyncGenerator<string, void, void>): ReadableStream<string>;
12
- export { createReadableStreamFromGenerator, streamEventsToAISDK, streamEventsToCompleteContent };
13
- //# sourceMappingURL=ai_sdk_compatibility.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai_sdk_compatibility.test.d.ts","sourceRoot":"","sources":["../../tests/ai_sdk_compatibility.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAmD9C,iBAAgB,mBAAmB,CACjC,YAAY,EAAE,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,GACpD,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAOpC;AAGD,iBAAgB,6BAA6B,CAC3C,YAAY,EAAE,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,GACpD,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAoBpC;AAuJD,iBAAS,iCAAiC,CACxC,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,GAC5C,cAAc,CAAC,MAAM,CAAC,CAcxB;AAGD,OAAO,EAAE,iCAAiC,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CAAA"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Test Helper Utilities for Widget Generation
3
- *
4
- * These functions generate HTML and JavaScript content for testing purposes.
5
- * They are not part of the core UIResource creation flow.
6
- */
7
- import type { UIResourceDefinition } from 'mcp-use/server';
8
- /**
9
- * Generate HTML content for a widget (utility function for tests)
10
- *
11
- * @param definition - Base UI resource definition
12
- * @param props - Widget properties to inject
13
- * @returns Generated HTML string
14
- */
15
- export declare function generateWidgetHtml(definition: Pick<UIResourceDefinition, 'name' | 'title' | 'description' | 'size'>, props?: Record<string, any>): string;
16
- /**
17
- * Generate a Remote DOM script for a widget (utility function for tests)
18
- *
19
- * @param definition - Base UI resource definition
20
- * @param props - Widget properties to inject
21
- * @returns Generated JavaScript string
22
- */
23
- export declare function generateRemoteDomScript(definition: Pick<UIResourceDefinition, 'name' | 'title' | 'description'>, props?: Record<string, any>): string;
24
- //# sourceMappingURL=widget-generators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widget-generators.d.ts","sourceRoot":"","sources":["../../../tests/helpers/widget-generators.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE1D;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,CAAC,EACjF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,MAAM,CAqCR;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,CAAC,EACxE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,MAAM,CAyCR"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Tests for MCP-UI Adapter
3
- *
4
- * These tests verify that the adapter pure functions correctly generate UIResource objects
5
- * matching the @mcp-ui/server format for all content types.
6
- */
7
- export {};
8
- //# sourceMappingURL=mcp-ui-adapter.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp-ui-adapter.test.d.ts","sourceRoot":"","sources":["../../tests/mcp-ui-adapter.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Tests for MCPAgent streamEvents() method
3
- *
4
- * These tests verify that the streamEvents() method:
5
- * - Yields proper StreamEvent objects
6
- * - Handles different event types correctly
7
- * - Provides token-level streaming
8
- * - Manages conversation history properly
9
- * - Tracks telemetry correctly
10
- */
11
- export {};
12
- //# sourceMappingURL=stream_events.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream_events.test.d.ts","sourceRoot":"","sources":["../../tests/stream_events.test.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Simple tests for MCPAgent streamEvents() method
3
- *
4
- * These tests verify the basic functionality of streamEvents() using minimal mocking
5
- */
6
- export {};
7
- //# sourceMappingURL=stream_events_simple.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream_events_simple.test.d.ts","sourceRoot":"","sources":["../../tests/stream_events_simple.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}