
Greenlake Subscriptions Mcp
io.github.HewlettPackard由 GitHub 账号 HewlettPackard 发布v1.1.2更新于 Oct 24, 2026
HPE GreenLake subscriptions MCP Server
概览
本地 MCP 服务器,让 AI 助手以只读方式访问工作区中的 HPE GreenLake 订阅与许可数据。
- 可以做什么
- 查看已启用的订阅并查询所配置工作区的许可详情,包括订阅状态监控,均通过只读的 GreenLake API 调用完成。
- 适用场景
- 当你希望助手回答有关工作区中 HPE GreenLake 订阅和许可的问题、而不必打开控制台时使用,例如查看哪些订阅处于启用状态或其状态。
- 运行要求
- 以 stdio 在本地运行,需要 Python 3.10 或更高版本以及 uv 包管理器。需要一个带 API 凭据的 HPE GreenLake 工作区,凭据通过环境变量提供:GREENLAKE_API_BASE_URL、GREENLAKE_CLIENT_ID、GREENLAKE_CLIENT_SECRET 和 GREENLAKE_WORKSPACE_ID。需要能访问 GreenLake API 的网络。另有可选的 MCP_TOOL_MODE 和 GREENLAKE_LOG_LEVEL 设置。
安装
在 SourceWeft 中
- 打开 控制台中的 Greenlake Subscriptions Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
HPE GreenLake MCP Servers
[License] [Python Versions] [Code style: ruff] [Security Policy] [CI Status]
A collection of Model Context Protocol (MCP) servers that enable AI assistants to interact with HPE GreenLake platform services.
Table of Contents
- What is the Model Context Protocol?
- What's in this Repository?
- Available MCP Servers
- Quick Start
- MCP Client Configuration
- Tool Modes
- Architecture Overview
- Security Considerations
- Troubleshooting
- Getting Help
- Resources
- License
What is the Model Context Protocol?
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
What's in this Repository?
This repository contains production-ready MCP servers for HPE GreenLake platform services. Each server provides AI assistants with secure, read-only access to specific GreenLake APIs, enabling natural language interactions with your HPE infrastructure.
Key Features
- Standardized Architecture: All servers follow consistent patterns for authentication, configuration, and error handling
- OAuth2 Authentication: Secure access using HPE GreenLake workspace credentials with automatic token management
- Dual Tool Modes: Each server supports both static (individual tools per endpoint) and dynamic (meta-tools) operation modes
- Type-Safe: Built with Pydantic models for runtime validation and type safety
- Production Ready: Comprehensive logging, error handling, and Docker support
- Well Tested: Extensive unit and integration test coverage
Available MCP Servers
Quick Start
Prerequisites
- Python 3.10 or higher
- uv package manager
- HPE GreenLake workspace with API credentials
Configuration
All servers require the following HPE GreenLake credentials:
Running a Server
MCP Client Configuration
Claude Desktop
Add servers to your claude_desktop_config.json:
Other MCP Clients
These servers use the standard stdio transport and work with any MCP-compatible client. See individual server READMEs for specific configuration examples.
Tool Modes
All servers support two operation modes that can be switched at runtime using the MCP_TOOL_MODE environment variable:
Static Mode (Default)
- Individual tools: Each API endpoint becomes a dedicated MCP tool
- Type-safe: Explicit tool definitions with compile-time validation
- Discoverable: Tools appear individually in MCP client interfaces
- Best for: Smaller APIs and focused workflows
Dynamic Mode
- Meta-tools: 3 generic tools that can handle any API endpoint
list_endpoints- Discover available API endpointsget_endpoint_schema- Get detailed schema informationinvoke_dynamic_tool- Execute API calls with runtime validation
- Memory efficient: Lower overhead for large APIs
- Best for: Large APIs with many endpoints
Compatibility Matrix
Architecture Overview
High-Level Architecture
Request Flow
- Client Request: MCP client sends tool invocation via JSON-RPC over stdio
- Authentication: Server authenticates with HPE GreenLake using OAuth2 (tokens cached and auto-refreshed)
- API Call: Server makes authenticated HTTPS request to GreenLake API
- Response: Server processes response and returns data to client via MCP protocol
Shared Components
All servers share a common architecture:
Authentication
All servers use OAuth2 client credentials flow with automatic token management:
- Tokens are cached and automatically refreshed
- Thread-safe token management
- Configurable retry logic with exponential backoff
Logging
Servers use structured logging with MCP protocol compliance:
- stderr: Diagnostic logs (controlled by
GREENLAKE_LOG_LEVEL) - File logging: Optional detailed logging to
~/.hpe/mcp-logs/ - stdout: Reserved for JSON-RPC messages only
Security Considerations
- Read-Only Access: All servers provide read-only API access by design
- Credential Management: Never commit credentials to version control
- Token Security: OAuth2 tokens are cached in memory only
- Workspace Isolation: Operations are scoped to the configured workspace
- HTTPS Only: All API communications use TLS encryption
Troubleshooting
Common Issues
Server won't start:
- Verify all required environment variables are set
- Check that
uvis installed and dependencies are synced - Review stderr output for configuration errors
Authentication failures:
- Verify client credentials are valid for your workspace
- Ensure
GREENLAKE_WORKSPACE_IDmatches your credential scope - Check network connectivity to GreenLake APIs
MCP client connection issues:
- Verify the
cwdpath in client configuration is correct - Check that the server starts successfully when run manually
- Review client logs for specific error messages
Debug Logging
Enable detailed logging for troubleshooting:
Log files are written to: ~/.hpe/mcp-logs/{service-name}/
Getting Help
GitHub Issues
The primary support channel for this project is GitHub Issues. When reporting an issue, please include:
- Environment details: OS, Python version,
uvversion - Server name: Which MCP server you're using (audit-logs, devices, etc.)
- Error messages: Complete error output with stack traces
- Configuration: Relevant environment variable settings (DO NOT include credentials)
- Steps to reproduce: Detailed description of how to reproduce the issue
Before Opening an Issue
- Check existing issues: Search open and closed issues
- Review troubleshooting: Check the Troubleshooting section above
- Enable debug logging: Run with
GREENLAKE_LOG_LEVEL=DEBUGandGREENLAKE_FILE_LOGGING=trueto gather detailed logs - Test authentication: Verify your credentials work with the GreenLake APIs directly
Issue Types
- Bug Report: For unexpected behavior, errors, or crashes
- Feature Request: For suggesting new capabilities or improvements
- Question: For clarification on usage, configuration, or architecture
- Documentation: For reporting documentation issues or suggesting improvements
Resources
License
This project is licensed under the Apache 2.0 - see the LICENSE file for details.
来源:README.md,提交 83dc9ca
工具
0版本历史
1- v1.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分