release.yml•3.28 kB
name: Create Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Get tag name
id: tag
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Generate changelog
id: changelog
run: |
# Extract version from tag
VERSION=${GITHUB_REF#refs/tags/v}
# Create release notes
cat > release_notes.md << EOF
# New Relic MCP Server ${{ steps.tag.outputs.TAG_NAME }}
## 📦 Installation
\`\`\`bash
pip install newrelic-mcp-server
\`\`\`
## 🔐 Secure Setup (Recommended for macOS)
\`\`\`bash
# Run the secure credential setup
newrelic-mcp-setup
# Run the server (credentials stored securely)
newrelic-mcp-server
\`\`\`
## 🔧 Claude Desktop Configuration (Secure)
\`\`\`json
{
"mcpServers": {
"newrelic": {
"command": "newrelic-mcp-server",
"env": {
"NEWRELIC_REGION": "US"
}
}
}
}
\`\`\`
## 📋 Alternative: Environment Variables
\`\`\`bash
# Set environment variables (less secure)
export NEWRELIC_API_KEY="your-api-key"
export NEWRELIC_REGION="US" # or "EU"
export NEWRELIC_ACCOUNT_ID="your-account-id"
# Run the server
newrelic-mcp-server
\`\`\`
## 🔧 Claude Desktop Configuration (Environment Variables)
\`\`\`json
{
"mcpServers": {
"newrelic": {
"command": "newrelic-mcp-server",
"env": {
"NEWRELIC_API_KEY": "your-api-key",
"NEWRELIC_REGION": "US",
"NEWRELIC_ACCOUNT_ID": "your-account-id"
}
}
}
}
\`\`\`
## 🛠️ Features
- 🔐 **NEW: Secure credential storage** using macOS Keychain
- ✅ All 17 New Relic API tools (including credential management)
- ✅ NRQL query support
- ✅ Dashboard and alert management
- ✅ Application performance monitoring
- ✅ Infrastructure monitoring
- ✅ Deployment tracking
- ✅ User management
- ✅ Backwards compatibility with environment variables
## 📚 Documentation
- [Full Documentation](https://github.com/piekstra/newrelic-mcp-server#readme)
- [PyPI Package](https://pypi.org/project/newrelic-mcp-server/)
- [Report Issues](https://github.com/piekstra/newrelic-mcp-server/issues)
EOF
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body_path: release_notes.md
files: |
dist/*
draft: false
prerelease: false