We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daccdb4 commit 46c7e62Copy full SHA for 46c7e62
packages/mcp-client/test/McpClient.spec.ts
@@ -0,0 +1,18 @@
1
+import { describe, expect, it } from "vitest";
2
+import { McpClient } from "../src";
3
+
4
+if (!process.env.HF_TOKEN) {
5
+ console.warn("Set HF_TOKEN in the env to run the tests for better rate limits");
6
+}
7
8
+describe("McpClient", () => {
9
+ it("You can create a mcp client", async () => {
10
+ const client = new McpClient({
11
+ provider: "together",
12
+ model: "Qwen/Qwen2.5-72B-Instruct",
13
+ apiKey: process.env.HF_TOKEN ?? "",
14
+ });
15
+ expect(client).toBeDefined();
16
+ expect(client.availableTools.length).toBe(0);
17
18
+});
0 commit comments