|
9 | 9 | import com.github.thought2code.mcp.annotated.annotation.McpResourceCompletion; |
10 | 10 | import com.github.thought2code.mcp.annotated.annotation.McpTool; |
11 | 11 | import com.github.thought2code.mcp.annotated.annotation.McpToolParam; |
12 | | -import com.github.thought2code.mcp.annotated.component.completion.McpCompleteCompletion; |
| 12 | +import com.github.thought2code.mcp.annotated.server.component.completion.McpCompleteCompletion; |
13 | 13 | import com.github.thought2code.mcp.annotated.util.StringHelper; |
14 | 14 | import java.io.IOException; |
15 | 15 | import java.io.Writer; |
@@ -59,7 +59,7 @@ public final class McpToolModelProcessor extends AbstractProcessor { |
59 | 59 |
|
60 | 60 | private static final String GENERATED_PACKAGE = "com.github.thought2code.mcp.annotated.generated"; |
61 | 61 | private static final String PROVIDER_INTERFACE = |
62 | | - "com.github.thought2code.mcp.annotated.component.spi.ComponentModelProvider"; |
| 62 | + "com.github.thought2code.mcp.annotated.server.component.spi.ComponentModelProvider"; |
63 | 63 | private static final String PROVIDER_SERVICE_FILE = "META-INF/services/" + PROVIDER_INTERFACE; |
64 | 64 |
|
65 | 65 | private final List<ExecutableElement> tools = new ArrayList<>(); |
@@ -348,21 +348,23 @@ private void writeProvider() throws IOException { |
348 | 348 | writer.write("package " + GENERATED_PACKAGE + ";\n\n"); |
349 | 349 | writer.write("import com.github.thought2code.mcp.annotated.McpApplicationContext;\n"); |
350 | 350 | writer.write( |
351 | | - "import com.github.thought2code.mcp.annotated.component.completion.CompletionDefinition;\n"); |
| 351 | + "import com.github.thought2code.mcp.annotated.server.component.completion.CompletionDefinition;\n"); |
352 | 352 | writer.write( |
353 | | - "import com.github.thought2code.mcp.annotated.component.completion.CompletionInvoker;\n"); |
| 353 | + "import com.github.thought2code.mcp.annotated.server.component.completion.CompletionInvoker;\n"); |
354 | 354 | writer.write( |
355 | | - "import com.github.thought2code.mcp.annotated.component.prompt.PromptDefinition;\n"); |
| 355 | + "import com.github.thought2code.mcp.annotated.server.component.prompt.PromptDefinition;\n"); |
356 | 356 | writer.write( |
357 | | - "import com.github.thought2code.mcp.annotated.component.prompt.PromptInvoker;\n"); |
| 357 | + "import com.github.thought2code.mcp.annotated.server.component.prompt.PromptInvoker;\n"); |
358 | 358 | writer.write( |
359 | | - "import com.github.thought2code.mcp.annotated.component.resource.ResourceDefinition;\n"); |
| 359 | + "import com.github.thought2code.mcp.annotated.server.component.resource.ResourceDefinition;\n"); |
360 | 360 | writer.write( |
361 | | - "import com.github.thought2code.mcp.annotated.component.resource.ResourceInvoker;\n"); |
| 361 | + "import com.github.thought2code.mcp.annotated.server.component.resource.ResourceInvoker;\n"); |
362 | 362 | writer.write( |
363 | | - "import com.github.thought2code.mcp.annotated.component.spi.ComponentModelProvider;\n"); |
364 | | - writer.write("import com.github.thought2code.mcp.annotated.component.tool.ToolDefinition;\n"); |
365 | | - writer.write("import com.github.thought2code.mcp.annotated.component.tool.ToolInvoker;\n"); |
| 363 | + "import com.github.thought2code.mcp.annotated.server.component.spi.ComponentModelProvider;\n"); |
| 364 | + writer.write( |
| 365 | + "import com.github.thought2code.mcp.annotated.server.component.tool.ToolDefinition;\n"); |
| 366 | + writer.write( |
| 367 | + "import com.github.thought2code.mcp.annotated.server.component.tool.ToolInvoker;\n"); |
366 | 368 | writer.write("import com.github.thought2code.mcp.annotated.enums.McpServerError;\n"); |
367 | 369 | writer.write("import com.github.thought2code.mcp.annotated.reflect.Invocation;\n"); |
368 | 370 | writer.write("import com.github.thought2code.mcp.annotated.util.TypeConverter;\n"); |
|
0 commit comments