Arms Log MCP—— AI 分析异常日志,把 bug 解决效率直接拉满
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"solon-ai-mcp-sls": {
"url": "http://localhost:9080/mcp/sse/slslog",
"description": "阿里云SLS日志查询服务"
},
"solon-ai-mcp-tools": {
"url": "http://localhost:9080/mcp/sse/tool",
"description": "通用工具函数"
},
"solon-ai-mcp-weather": {
"url": "http://localhost:9080/mcp/sse/weather",
"description": "天气查询服务"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
本教程将详细介绍如何搭建基于 solon-ai-mcp 的 MCP(Model Context Protocol)服务器,并配置 Cursor 进行对接。以本项目为实际案例,提供完整的实现步骤。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP server for ZenML - browse stacks, pipelines, runs, artifacts & trigger pipeline runs via API
TypeScript MCP server for AI-powered containerization workflows with Docker and Kubernetes support
MCP Security Weekly
Get CVE alerts and security updates for SolonMcpSlsLogServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
本教程将详细介绍如何搭建基于 solon-ai-mcp 的 MCP(Model Context Protocol)服务器,并配置 Cursor 进行对接。以本项目为实际案例,提供完整的实现步骤。
本项目是一个基于 Spring Boot + Solon AI MCP 框架的 MCP 服务器,主要提供:
在 pom.xml 中添加关键依赖:
<properties>
<solon.version>3.4.0</solon.version>
<aliyun-sls-sdk.version>1.4.0</aliyun-sls-sdk.version>
</properties>
<dependencies>
<!-- Spring Boot Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.7.18</version>
</dependency>
<!-- Spring AOP -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>2.7.18</version>
</dependency>
<!-- Solon AI MCP (核心依赖) -->
<dependency>
<groupId>org.noear</groupId>
<artifactId>solon-ai-mcp</artifactId>
<version>${solon.version}</version>
</dependency>
<!-- 工具库 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.16</version>
</dependency>
<!-- 阿里云SLS SDK(可选,用于日志查询) -->
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>sls20201230</artifactId>
<version>${aliyun-sls-sdk.version}</version>
</dependency>
</dependencies>
src/main/resources/application.yml:
server:
port: 9080
spring:
application:
name: sls-mcp-server
# 阿里云SLS配置(可选)
aliyun:
sls:
access-key-id: YOUR_ACCESS_KEY_ID
access-key-secret: YOUR_ACCESS_KEY_SECRET
sls-prompts:
- keyword: 广告
endpoint: cn-beijing.log.aliyuncs.com
project: ads-sls
logstore: ads-center,ads-api,ads-intelligent
# 日志配置
logging:
level:
root: INFO
com.anker.sls: DEBUG
src/main/resources/mcpserver.yml:
server:
port: 9080
# MCP服务配置(可选配置项)
#mcp:
# server:
# enabled: true
# timeout: 30000
# max-connections: 100
package com.anker.sls;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SolonAIMcpSlsServer {
public static void main(String[] args) {
SpringApplication.run(SolonAIMcpSlsServer.class, args);
}
}
McpServerConfig.java:
@Slf4j
@Configuration
public class McpServerConfig {
@Value("${server.servlet.context-path:}")
private String contextPath;
@PostConstruct
public void start() {
log.info("启动 Solon MCP 服务");
System.setProperty("server.contextPath", contextPath);
Solon.start(McpServerConfig.class, new String[]{"--cfg=mcpserver.yml"});
}
@Bean
public FilterRegistrationBean mcpServerFilter() {
FilterRegistrationBean<SolonServletFilter> filter = new FilterRegistrationBean<>();
filter.setName("SolonFilter");
filter.addUrlPatterns("/mcp/*");
filter.setFilter(new SolonServletFilter());
return filter;
}
}
@Controller
@McpServerEndpoint(version = "1.0", sseEndpoint = "/mcp/sse/tool")
public class ToolController {
@ToolMapping(description = "加法计算器,返回两个数字的和")
public int add(@Param(description = "第一个数字") int a,
@Param(description = "第二个数字") int b) {
return a + b;
}
@ToolMapping(description = "字符串反转,返回反转后的字符串")
public String reverseString(@Param(description = "要反转的字符串") String input) {
return new StringBuilder(input).reverse().toString();
}
@ToolMapping(description = "获取当前时间,返回时间字符串")
public String getCurrentTime() {
return java.time.LocalDateTime.now().toString();
}
}
@Controll
... [View full README on GitHub](https://github.com/helloxmz-collab/SolonMcpSlsLogServer#readme)