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 3159389 commit 4393ab7Copy full SHA for 4393ab7
README.md
@@ -57,6 +57,20 @@ public class MyMcpResources {
57
}
58
```
59
60
+```java
61
+@McpPrompts
62
+public class MyMcpPrompts {
63
+
64
+ @McpPrompt(description = "A simple prompt to read a file")
65
+ public String readFile(
66
+ @McpPromptParam(name = "path", description = "filepath", required = true) String path) {
67
+ // Just put your logic code here, forget about the MCP SDK details.
68
+ return String.format("What is the complete contents of the file: %s", path);
69
+ }
70
71
+}
72
+```
73
74
```java
75
@McpTools
76
public class MyMcpTools {
0 commit comments