Kibana - MCP 服务器文档为你提供该服务器的安装、构建、发布以及开发测试等方面的详细指导,帮助你快速上手和使用。
你可以按照下面的步骤来完成 Kibana - MCP 服务器的安装、构建、发布以及开发测试等操作。
使用 uv 同步依赖:
uv sync
准备发行版本:
uv build
这将在 dist/ 目录中创建源代码和轮分布。uv publish
⚠️ 重要提示:需要配置 PyPI 凭证。安装开发依赖项:
pip install -r requirements-dev.txt
从项目根目录运行快速启动脚本:
./testing/quickstart-test-env.sh
该脚本 (testing/main.py) 将执行以下操作:
testing/docker-compose.yml 配置。docker compose up -d。kibana_system_user) 和角色。mcp_auth_logs_template)。testing/sample_rule.json(一个检测规则)并发送 POST 请求到 http://localhost:5601/api/detection_engine/rules 创建规则。testing/auth_events.ndjson 样例数据到 mcp-auth-logs-default 索引。http://localhost:5601/api/detection_engine/signals/search 上的检测信号。docker compose -f testing/docker-compose.yml down)。使用 -v 标志 (down -v) 来移除数据卷。