上传备份

master
王兵 1 month ago
parent 8a12f5d934
commit 12fd2134f5

@ -7,10 +7,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* MCP * MCP
* *
* @author wangbing * @author wangbing
* @version 0.0.1
* @since 1.8
*/ */
@SpringBootApplication @SpringBootApplication
public class McpServerApplication { public class McpServerApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(McpServerApplication.class, args); SpringApplication.run(McpServerApplication.class, args);
} }

@ -9,6 +9,10 @@ import java.lang.annotation.Target;
* *
* <p>MCP * <p>MCP
* 便</p> * 便</p>
*
* @author
* @version 0.0.1
* @since 1.8
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER}) @Target({ElementType.PARAMETER})

@ -9,8 +9,9 @@ import java.lang.annotation.Target;
* Tool * Tool
* 使 * 使
* *
* @author wangbing * @author
* @since 1.0 * @version 0.0.1
* @since 1.8
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD}) @Target({ElementType.METHOD})

@ -9,8 +9,9 @@ import org.springframework.web.reactive.function.server.RouterFunction;
/** /**
* MCP * MCP
* *
* @author wangbing * @author
* @since 1.0 * @version 0.0.1
* @since 1.8
*/ */
@Configuration @Configuration
class McpServerConfig { class McpServerConfig {

@ -29,7 +29,9 @@ import java.util.Set;
/** /**
* MCP * MCP
* *
* @author wangbing * @author
* @version 0.0.1
* @since 1.8
*/ */
@Component @Component
public class McpServerRegistrar { public class McpServerRegistrar {

@ -8,6 +8,8 @@ import xyz.wbsite.mcp.server.annotation.Tool;
* *
* *
* @author wangbing * @author wangbing
* @version 0.0.1
* @since 1.8
*/ */
@Service @Service
public class WeatherService { public class WeatherService {

@ -1,3 +1 @@
server.port=8080 server.port=8080
# spring.jackson.serialization.fail-on-empty-beans=false

Loading…
Cancel
Save

Powered by TurnKey Linux.