|
32 | 32 | @Mcp.Server |
33 | 33 | @Mcp.Path("/roots") |
34 | 34 | class McpRootsServer { |
35 | | - @Mcp.Tool("Sampling tool") |
36 | | - List<McpToolContent> tool(McpRoots sampling) { |
| 35 | + @Mcp.Tool("Roots tool") |
| 36 | + List<McpToolContent> tool(McpRoots roots) { |
37 | 37 | return List.of(McpToolContents.textContent("")); |
38 | 38 | } |
39 | 39 |
|
40 | | - @Mcp.Tool("Sampling tool") |
41 | | - List<McpToolContent> tool1(McpRoots sampling, String value) { |
| 40 | + @Mcp.Tool("Roots tool") |
| 41 | + List<McpToolContent> tool1(McpRoots roots, String value) { |
42 | 42 | return List.of(McpToolContents.textContent("")); |
43 | 43 | } |
44 | 44 |
|
45 | | - @Mcp.Tool("Sampling tool") |
46 | | - String tool2(McpRoots sampling) { |
| 45 | + @Mcp.Tool("Roots tool") |
| 46 | + String tool2(McpRoots roots) { |
47 | 47 | return ""; |
48 | 48 | } |
49 | 49 |
|
50 | | - @Mcp.Tool("Sampling tool") |
51 | | - String tool3(McpRoots sampling, String value) { |
| 50 | + @Mcp.Tool("Roots tool") |
| 51 | + String tool3(McpRoots roots, String value) { |
52 | 52 | return ""; |
53 | 53 | } |
54 | 54 |
|
55 | | - @Mcp.Prompt("Sampling prompt") |
56 | | - List<McpPromptContent> prompt(McpRoots sampling) { |
| 55 | + @Mcp.Prompt("Roots prompt") |
| 56 | + List<McpPromptContent> prompt(McpRoots roots) { |
57 | 57 | return List.of(McpPromptContents.textContent("", McpRole.USER)); |
58 | 58 | } |
59 | 59 |
|
60 | | - @Mcp.Prompt("Sampling prompt") |
61 | | - List<McpPromptContent> prompt1(McpRoots sampling, String value) { |
| 60 | + @Mcp.Prompt("Roots prompt") |
| 61 | + List<McpPromptContent> prompt1(McpRoots roots, String value) { |
62 | 62 | return List.of(McpPromptContents.textContent("", McpRole.USER)); |
63 | 63 | } |
64 | 64 |
|
65 | | - @Mcp.Prompt("Sampling prompt") |
66 | | - String prompt2(McpRoots sampling) { |
| 65 | + @Mcp.Prompt("Roots prompt") |
| 66 | + String prompt2(McpRoots roots) { |
67 | 67 | return ""; |
68 | 68 | } |
69 | 69 |
|
70 | | - @Mcp.Prompt("Sampling prompt") |
71 | | - String prompt3(McpRoots sampling, String value) { |
| 70 | + @Mcp.Prompt("Roots prompt") |
| 71 | + String prompt3(McpRoots roots, String value) { |
72 | 72 | return ""; |
73 | 73 | } |
74 | 74 |
|
75 | 75 | @Mcp.Resource(uri = "https://resource", |
76 | | - description = "Sampling resource", |
| 76 | + description = "Roots resource", |
77 | 77 | mediaType = MediaTypes.TEXT_PLAIN_VALUE) |
78 | | - List<McpResourceContent> resource(McpRoots sampling) { |
| 78 | + List<McpResourceContent> resource(McpRoots roots) { |
79 | 79 | return List.of(McpResourceContents.textContent("")); |
80 | 80 | } |
81 | 81 |
|
82 | 82 | @Mcp.Resource(uri = "https://resource1", |
83 | | - description = "Sampling resource", |
| 83 | + description = "Roots resource", |
84 | 84 | mediaType = MediaTypes.TEXT_PLAIN_VALUE) |
85 | | - List<McpResourceContent> resource1(McpRoots sampling, McpRequest request) { |
| 85 | + List<McpResourceContent> resource1(McpRoots roots, McpRequest request) { |
86 | 86 | return List.of(McpResourceContents.textContent("")); |
87 | 87 | } |
88 | 88 |
|
89 | 89 | @Mcp.Resource(uri = "https://resource2", |
90 | | - description = "Sampling resource", |
| 90 | + description = "Roots resource", |
91 | 91 | mediaType = MediaTypes.TEXT_PLAIN_VALUE) |
92 | | - String resource2(McpRoots sampling) { |
| 92 | + String resource2(McpRoots roots) { |
93 | 93 | return ""; |
94 | 94 | } |
95 | 95 |
|
96 | 96 | @Mcp.Resource(uri = "https://resource3", |
97 | | - description = "Sampling resource", |
| 97 | + description = "Roots resource", |
98 | 98 | mediaType = MediaTypes.TEXT_PLAIN_VALUE) |
99 | | - String resource3(McpRoots sampling, McpRequest request) { |
| 99 | + String resource3(McpRoots roots, McpRequest request) { |
100 | 100 | return ""; |
101 | 101 | } |
102 | 102 | } |
0 commit comments