| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Very interesting. Thank you for the contribution @noear ! |
Sorry, something went wrong.
|
Hope to support java8! solon supports java8 through java24! vert.x also supports java8+ |
Sorry, something went wrong.
|
This is what solon (Solon-AI) looks like with mcp integrated: for Server (Support for multiple endpoints)@McpServerEndpoint(sseEndpoint = "/mcp/sse")
public class McpServerTool {
@ToolMapping(description = "查询天气预报")
public String getWeather(@Param(description = "城市位置") String location) {
return "晴,14度";
}
@ResourceMapping(uri = "config://app-version", description = "获取应用版本号")
public String getAppVersion() {
return "v3.2.0";
}
@ResourceMapping(uri = "db://users/{user_id}/email", description = "根据用户ID查询邮箱")
public String getEmail(@Param(description = "用户Id") String user_id) {
return user_id + "@example.com";
}
@PromptMapping(description = "生成关于某个主题的提问")
public Collection<ChatMessage> askQuestion(@Param(description = "主题") String topic) {
return Arrays.asList(
ChatMessage.ofUser("请解释一下'" + topic + "'的概念?")
);
}
}
public class McpServerApp {
public static void main(String[] args) {
Solon.start(McpServerApp.class, args);
}
}for Clientpublic class McpClientApp {
public static void main(String[] args) throws Exception {
McpClientProvider clientToolProvider = McpClientProvider.builder()
.apiUrl("http://localhost:8080/mcp/sse")
.build();
ChatModel chatModel = ChatModel.of("http://127.0.0.1:11434/api/chat")
.provider("ollama")
.model("qwen2.5:1.5b")
.defaultToolsAdd(clientToolProvider)
.build();
ChatResponse resp = chatModel.prompt("杭州今天的天气怎么样?")
.call();
}
} |
Sorry, something went wrong.
|
What else is wrong with this pr? |
Sorry, something went wrong.
Hey, @noear 👋 I don't think there is anything wrong. I think the hesitation is more caused by the discussions around what should be actually included in the repository. #127 is where we are at. I am sure @tzolov will have more specific feedback in the coming weeks. |
Sorry, something went wrong.
|
The change of v0.10.0 WebFluxSseServerTransportProvider is synchronized to the WebRxSseServerTransportProvider |
Sorry, something went wrong.
|
Excuse me, how long does it take to check generally? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation and Context
Add solon-webrx adaptive。
Solon is a java enterprise application development framework similar to spring. There is no java-ee. support for java8 ~ java24, and native runtime.
How Has This Been Tested?
junit run mcp-solon/mcp-solon-webrx/src/test/java
Breaking Changes
add module: mcp-solon/mcp-solon-webrx
Types of changes
Checklist
Additional context
mcp-solon-webrx references the code and unit tests of mcp-spring-webmvc and mcp-spring-webflux