本项目的钟表蒸汽机服务器为用户提供了便捷的服务管理功能,支持多种方式安装与配置,能满足不同场景下的使用需求,助力高效开发与部署。
你可以按照以下步骤完成服务器的安装与启动。
make dev
# 或者手动运行
mcp dev src/steampipe_mcp_server/cli.py
# 使用 Make
make server
# 或者指定数据库 URL
steampipe-mcp-server --database-url postgresql://steampipe:password@localhost:9193/steampipe
# 或者使用环境变量
export STEAMPIPE_MCP_DATABASE_URL=postgresql://steampipe:password@localhost:9193/steampipe
steampipe-mcp-server
STEAMPIPE_MCP_DATABASE_URL:指定数据库连接 URL。STEAMPIPE_MCP_LOG_LEVEL:设置日志级别(可选值:debug, info, warning, error, critical)。steampipe-mcp-server query --help
steampipe-mcp-server list-all-tables
pyproject.toml 中的版本号。make check test
git tag v0.1.0 # 使用适当的版本号
git push origin v0.1.0
检查数据库 URL 是否正确,确保数据库正在运行并且有权限。
查看日志文件或设置更详细的日志级别:
export STEAMPIPE_MCP_LOG_LEVEL=debug
steampipe-mcp-server
检查插件路径是否正确,确保插件文件存在且格式正确。
[database]
url = "postgresql://steampipe:password@localhost:9193/steampipe"
# 获取 query 命令的帮助信息
steampipe-mcp-server query --help
Q: 如何安装依赖?
A: 使用 pip install -r requirements.txt。
Q: 如何运行测试?
A: 运行 pytest tests/.
Q: 如何生成文档?
A: 使用 make docs.