MCP 相扑逻辑
与 Sumo Logic 的 API 集成以执行日志搜索的模型上下文协议 (MCP) 服务器。
特征
使用自定义查询搜索 Sumo Logic 日志
可配置的搜索时间范围
错误处理和详细日志记录
Docker 支持,轻松部署
环境变量
设置
克隆存储库
安装依赖项:
npm install创建包含所需环境变量的
.env文件构建项目:
npm run build启动服务器:
npm start
Docker 设置
构建 Docker 镜像:
docker build -t mcp/sumologic .运行容器(选择一种方法):
a.直接使用环境变量:
docker run -e ENDPOINT=your_endpoint -e SUMO_API_ID=your_api_id -e SUMO_API_KEY=your_api_key mcp/sumologicb.使用 .env 文件:
docker run --env-file .env mcp/sumologic注意:确保您的 .env 文件包含所需的环境变量:
ENDPOINT=your_endpoint SUMO_API_ID=your_api_id SUMO_API_KEY=your_api_key
用法
服务器公开了一个search-sumologic工具,该工具接受以下参数:
query(必需):Sumo Logic 搜索查询from(可选):ISO 8601 格式的开始时间to(可选):ISO 8601 格式的结束时间
示例查询:
错误处理
该服务器包括全面的错误处理和日志记录:
捕获 API 错误并记录详细信息
监控并记录搜索作业状态
网络和身份验证问题得到妥善处理
发展
要在开发模式下运行:
用于测试:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
与 Sumo Logic 的 API 集成,以实现具有可配置查询和时间范围的日志搜索,支持错误处理和通过 Docker 轻松部署。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityInteracts with LogSeq via its API.Last updated -117
- -security-license-qualityEnables LLMs to perform semantic search and document management using ChromaDB, supporting natural language queries with intuitive similarity metrics for retrieval augmented generation applications.Last updated -
- -security-license-qualityEnables integration with DuckDuckGo search capabilities for LLMs, supporting comprehensive web search, regional filtering, result types, and safe browsing with caching and customizable search parameters.Last updated -303MIT License
- -security-license-qualityAllows developers and AI Agents to query Google Cloud Logging using natural language, translating queries into Google Cloud Logging Query Language (LQL) with Vertex AI Gemini 2.5.Last updated -1