Skip to content

Commit 46c7e62

Browse files
committed
very basic test
1 parent daccdb4 commit 46c7e62

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)