fastmcp 1.6.1 → 1.7.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.
@@ -21,6 +21,32 @@ server.addTool({
21
21
  },
22
22
  });
23
23
 
24
+ server.addResource({
25
+ uri: "file:///logs/app.log",
26
+ name: "Application Logs",
27
+ mimeType: "text/plain",
28
+ async load() {
29
+ return {
30
+ text: "Example log content",
31
+ };
32
+ },
33
+ });
34
+
35
+ server.addPrompt({
36
+ name: "git-commit",
37
+ description: "Generate a Git commit message",
38
+ arguments: [
39
+ {
40
+ name: "changes",
41
+ description: "Git diff or description of changes",
42
+ required: true,
43
+ },
44
+ ],
45
+ load: async (args) => {
46
+ return `Generate a concise but descriptive commit message for these changes:\n\n${args.changes}`;
47
+ },
48
+ });
49
+
24
50
  server.start({
25
51
  transportType: "stdio",
26
52
  });
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ poolOptions: {
6
+ forks: { execArgv: ["--experimental-eventsource"] },
7
+ },
8
+ },
9
+ });