Maverick MCP Server
An MCP server that enables Amazon Q CLI users to create, query, and manage Maverick sites through natural language commands.
README
Maverick MCP Server
An MCP (Model Context Protocol) server for managing Maverick sites through Amazon Q CLI.
Features
- Create Sites: Create new Maverick sites with comprehensive configuration options
- Query Sites: Search and filter sites using various criteria
- Get Site Details: Retrieve detailed information about specific sites
Installation
- Install the package:
cd /Users/vigneshwaran.rajesh/companyWork/EE-hackathon/maverick-mcp
pip install -e .
pip install -r requirements.txt
- Test the installation:
python3 test_server.py
- Set up environment variables:
export MAVERICK_BASE_URL="https://maverick-staging.appiancloud.com"
export MAVERICK_API_TOKEN="your-api-token-here"
Configuration for Amazon Q CLI
Add to your Q CLI MCP configuration file at ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"maverick": {
"command": "python3",
"args": ["/Users/vigneshwaran.rajesh/companyWork/EE-hackathon/maverick-mcp/server.py"],
"env": {
"MAVERICK_BASE_URL": "https://maverick-staging.appiancloud.com",
"MAVERICK_API_TOKEN": "your-actual-api-token-here"
}
}
}
}
Note: Use the full path to your server.py file in the configuration.
Available Tools
1. maverick___create_site
Creates a new Maverick site with specified configuration.
Required Parameters:
subdomain: The site name/subdomain
Optional Parameters:
installer: Appian version (e.g., "22.1.235.0")installerLabel: Installer label (e.g., "22.1-latest")region: AWS region (e.g., "us-east-1")serverSize: Server size (e.g., "m5.large")purpose: Site purpose (development, hackathon, etc.)customerName: Customer namedryRun: Validate without creating (boolean)- And many more configuration options...
2. maverick___query_sites
Query sites using various filters and criteria.
Filter Options:
siteList: Array of site IDspurpose: Array of purposes to filter byregion: Array of regions to filter byaccountName: Array of account namescreatedAfter: Sites created after specified timecreatedBefore: Sites created before specified timemodifiedAfter: Sites modified after specified timestatus: Site status (Active, Shutdown, etc.)labelName+labelValue: Filter by labelsstartIndex: Pagination start (default: 1)batchSize: Results per page (default: 20)
3. maverick___get_site_by_id
Get detailed information about a specific site.
Parameters:
identifier: Site ID (numeric) or site name/subdomain
4. maverick___manage_site
Perform various actions on existing Maverick sites.
Required Parameters:
identifier: Site ID (numeric) or site name/subdomainaction: Action to perform
Supported Actions:
start: Start a stopped siterestart: Restart a running sitestop: Stop a running site (data persists)force-stop: Force stop (bypasses standard checks)force-restart: Force restart (force stop + start)delete: Permanently delete a siterevert: Revert site to a specific snapshoton-demand-backup: Take an on-demand backupedit: Edit site configurationclone: Create a copy of the sitemove: Move site to different regionresize: Increase site volume size
Action-Specific Parameters:
- Edit:
installer,serverSize,purpose,siteProperties, etc. - Revert:
restoreSpec(withsiteIDandcreatedAt) - Clone:
reason,requestorFirstName,requestorLastName,requestorEmail,supportCase - Move:
region,email(optional) - Resize:
volumeSize
5. maverick___get_site_resize_status
Check the status of an ongoing site resize operation.
Parameters:
siteId: Site ID to check resize status for
Usage Examples
Create a Simple Site
Create a new Maverick site with subdomain "my-test-site"
Create an Advanced Site
Create a Maverick site with subdomain "hackathon-site", purpose "hackathon", customer "Appian Engineering", server size "m5.large", and region "us-east-1"
Query Sites by Purpose
Find all Maverick sites with purpose "development"
Query Sites by Region
Show me all sites in us-east-1 and us-west-2 regions
Query Recent Sites
Find all sites created after 01/01/2024
Get Specific Site
Get details for Maverick site with ID 1004544
Query with Pagination
Show me the first 10 active sites
Site Management Actions
Start Maverick site with ID 1004544
Stop site "my-test-site" gracefully
Restart site 1004544 with force restart
Delete site "old-test-site" permanently
Take an on-demand backup of site 1004544
Edit Site Configuration
Edit site 1004544 to change server size to "m5.xlarge" and purpose to "hackathon"
Update site "my-site" to use installer label "23.1-latest"
Clone Site
Clone site 1004544 for debugging with reason "Reproduce customer issue" and support case "CN-1234"
Move and Resize Sites
Move site 1004544 to region "us-west-2"
Resize site 1004544 volume to 100 GB
Check resize status for site 1004544
Testing
Run the test script to verify everything is working:
python3 test_server.py
This will test all three tools and show you what to expect.
Response Format
The server provides formatted, human-readable responses with:
- ✅ Success indicators
- ❌ Error indicators
- 📊 Structured site information with emojis for easy reading
- Pagination information when applicable
- Total count of matching results
Error Handling
The server handles various error scenarios:
- Missing API tokens
- Validation errors (400)
- Not found errors (404)
- Server errors (500)
- Network timeouts
- Invalid parameters
Files in this Project
server.py- Main MCP server implementation with all 5 toolsrequirements.txt- Python dependenciessetup.py- Package configurationtest_server.py- Test script to verify all functionalitytest_auth.py- Authentication testing scriptq-config-example.json- Example Q CLI configurationREADME.md- This documentation
Next Steps
- Get your Maverick API token from your Maverick instance
- Set the environment variables with your actual token
- Add the MCP server configuration to
~/.aws/amazonq/mcp.json - Restart Amazon Q CLI and test with:
q chat - Try the example commands to verify everything works
Development
To extend the server with additional Maverick APIs:
- Add new tool definitions to
handle_list_tools() - Add corresponding handlers to
handle_call_tool() - Implement the API call functions
- Update this README with the new functionality
Environment Variables
MAVERICK_BASE_URL: Base URL for Maverick API (default: staging)MAVERICK_API_TOKEN: Authentication token for Maverick API (required)
Note: The server uses the appian-api-key header for authentication, which is one of the supported methods in Maverick API. Other supported methods include:
appian-api-keyheader (used by this server)Authorization: Bearerheader- Basic Authentication with null username
- Basic Authentication with null password
Authentication Setup
To get your API token:
- Configure object security for a service account in your Maverick instance
- Generate an API key for that service account
- Set the
MAVERICK_API_TOKENenvironment variable with your key
Example:
export MAVERICK_API_TOKEN="your-actual-api-key-here"
Dependencies
mcp>=1.10.0: Model Context Protocol libraryhttpx>=0.25.0: Async HTTP client- Python 3.8+
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。