@hellocoop/admin-mcp
Version:
Model Context Protocol (MCP) for Hellล Admin API.
166 lines (119 loc) โข 6.1 kB
Markdown
# @hellocoop/admin-mcp (BETA)
Model Context Protocol (MCP) server for creating and managing [Hellล](https://hello.dev) applications.
> **๐ง BETA Status**: This MCP server is currently in beta. We're actively seeking feedback and welcome contributions! Please report issues, suggest improvements, or submit pull requests to help us improve the developer experience.
## Quick Install
๐ **[Full Documentation & Installation Guide](https://hello.dev/docs/admin-mcp)**
### Quick Configuration
Copy one of these configurations into your MCP client settings:
**NPM Package (Latest):**
```json
{
"hello-admin-stdio": {
"command": "npx",
"args": ["-y", "@hellocoop/admin-mcp@latest"],
"type": "stdio"
}
}
```
**HTTP Transport (Remote):**
```json
{
"hello-admin-http": {
"url": "https://admin-mcp.hello.coop/",
"type": "http"
}
}
```
๐ **[See Local Development Setup](#local-development)** for running from source
## Usage
This MCP server provides a **single powerful tool** (`hello_manage_app`) that lets you create and manage your Hellล applications directly from your AI assistant. Unlike traditional APIs, **every operation automatically includes your complete developer context** - profile, teams, and applications - making it perfect for AI assistants.
**๐ For detailed usage instructions, examples, and troubleshooting, visit: [hello.dev/docs/admin-mcp](https://hello.dev/docs/admin-mcp)**
## Features
- **๐ข Context-Aware Operations**: Every tool call automatically includes your current developer profile, teams, and applications for seamless context
- **๐ฑ Unified Application Management**: Single powerful tool for all app operations (create, read, update, secrets, logos)
- **๐ Secure OAuth Integration**: Browser-based authentication with JWT token validation
- **๐ Multi-Transport Support**: Works with both stdio (local) and HTTP (remote) MCP transports
- **๐ Built-in Analytics**: Usage tracking and performance monitoring for optimization
- **๐จ Logo Management**: Upload logos with automatic light/dark theme support
- **โ๏ธ Environment Flexibility**: Configurable domains and admin servers
## Available Tools
**๐ฏ Core Tool:**
- `hello_manage_app` - **The main tool for all application management**
- **Actions**: `create`, `read`, `update`, `create_secret`, `update_logo_from_data`, `update_logo_from_url`
- **Always includes**: Your current profile, teams, and applications in every response
- **Auto-context**: Automatically uses your default team if none specified
- **Smart defaults**: Generates app names from your profile if not provided
## Key Benefits
**๐ Always In Context**: Unlike traditional APIs, every tool response includes your complete developer context:
- Your user profile (name, email, picture)
- All your teams/organizations with roles
- All your applications with team associations
- Current team and application state
This means you never lose context between operations - perfect for AI assistants that need to understand your complete development environment.
## Tool Actions & Response Structure
### `hello_manage_app` Actions:
**๐ `create`** - Create new applications
- Auto-generates team if none exists
- Creates smart default names from your profile
- Returns: `{ profile, application, action_result }`
**๐๏ธ `read`** - Read application details
- Without `client_id`: Returns your complete profile context
- With `client_id`: Returns profile + specific application
- Returns: `{ profile, application?, action_result }`
**โ๏ธ `update`** - Update application settings
- Modify any application property
- Returns: `{ profile, application, action_result }`
**๐ `create_secret`** - Generate client secrets
- Creates secure OAuth client secrets
- Returns: `{ profile, application, client_secret, action_result }`
**๐จ `update_logo_from_data`** - Upload logo from base64 data
- Supports light/dark themes
- Auto-updates application with logo URL
- Returns: `{ profile, application, update_result, action_result }`
**๐ `update_logo_from_url`** - Upload logo from URL
- Fetches and uploads from provided URL
- Supports light/dark themes
- Returns: `{ profile, application, update_result, action_result }`
**Every response includes your complete profile context**, making it perfect for AI assistants that need to maintain awareness of your development environment.
## Available Resources
- **Hellล Documentation** - Complete integration documentation
- **Hellล Quickstarts** - Framework-specific setup guides
- **Hellล Buttons** - Login button implementation guide
- **Hellล Scopes** - Available scopes and claims reference
- **Hellล Wallet API** - Wallet API reference documentation
- **Hellล Logo Design Guidance** - Comprehensive guide for creating theme-appropriate logos
## Environment Variables
- `HELLO_DOMAIN`: Override the default domain (defaults to `hello.coop`)
- `HELLO_ADMIN`: Override the admin server URL (defaults to `https://admin.hello.coop`)
## Contributing & Development
**We want your feedback!** This MCP server is in beta and we're actively improving it based on real-world usage.
### How to Contribute
- **๐ Report Issues**: [GitHub Issues](https://github.com/hellocoop/packages-js/issues) - Found a bug or have a feature request?
- **๐ง Submit Pull Requests**: [GitHub PRs](https://github.com/hellocoop/packages-js/pulls) - Help us improve the server
- **๐ฌ Join the Discussion**: [Discord](https://discord.gg/hellocoop) - Share feedback and get help
### Local Development
For local development and testing:
```sh
# Clone the repository
git clone https://github.com/hellocoop/admin-mcp
cd admin-mcp
# Install dependencies
npm install
```
The configure your AI client to run the local version
**Local Development (Node.js):**
```json
{
"hello-admin-local": {
"command": "node",
"args": ["path/to/HelloCoop/admin-mcp/src/stdio.js"],
"type": "stdio"
}
}
```
### Testing
Run the comprehensive test suite:
```sh
# Run all automated tests
npm test
```