
splunkbase-mcp

2025.03.27
0
PythonSplunkbase 访问应用程序管理搜索工具开发效率
splunkbase-mcp 是一个基于机器控制协议(MCP)的服务器,提供对 Splunkbase 功能的程序化访问。它允许用户通过标准化接口搜索、下载和管理 Splunkbase 应用程序。
View on GitHub
Overview
基本能力
产品定位
splunkbase-mcp 是一个用于 Splunkbase 的机器控制协议(MCP)服务器,旨在提供对 Splunkbase 功能的程序化访问。
核心功能
- 搜索功能:可以搜索 Splunkbase 中的应用程序。
- 版本管理:获取应用程序的最新兼容版本。
- 下载功能:下载特定版本的应用程序到指定目录。
适用场景
- 自动化搜索和下载 Splunkbase 应用程序。
- 管理 Splunkbase 应用程序的版本兼容性。
- 集成 Splunkbase 功能到其他自动化工作流中。
工具列表
- search(query: str):搜索 Splunkbase 中的应用程序,返回搜索结果列表。
- get_app_latest_version(app: str | int, splunk_version: str, is_cloud: bool = False):获取应用程序的最新兼容版本,返回版本信息字典。
- download_app(app: str | int, output_dir: str, version: Optional[str] = None):下载特定版本的应用程序到指定目录,返回下载详情。
常见问题解答
- 安装时会以明文存储密码,安全性较低,未来可能会改进。
使用教程
使用依赖
- aiosplunkbase >= 0.1.3
- mcp[cli]
- aiofiles
- Python >= 3.11
安装教程
uv run mcp install -v "SPLUNKBASE_USERNAME=my_username" -v "SPLUNKBASE_PASSWORD=my_password" splunkbase-mcp.py
调试方式
示例提示:
Please do the following.
1. Search the web to find what Splunk app is responsible for providing field extractions for the WinEventLog sourcetype
2. Find the app on Splunkbase and grab its numerical app ID
3. Use the download_app tool to grab the latest version of the app from Splunkbase and place it in /tmp/apps/
许可证
None