MCP Integration
Relicta includes a Model Context Protocol (MCP) server that enables AI agents to manage releases directly. This allows Claude, GPT, and custom agents to plan, approve, and publish releases through natural language.
Quick Start
Section titled “Quick Start”Start the MCP Server
Section titled “Start the MCP Server”# Stdio transport (default, for Claude Desktop)relicta mcp serve
# HTTP transport (for custom integrations)relicta mcp serve --port 8080Claude Desktop Configuration
Section titled “Claude Desktop Configuration”Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json on macOS/Linux):
{ "mcpServers": { "relicta": { "command": "relicta", "args": ["mcp", "serve"], "cwd": "/path/to/your/project" } }}After adding this, restart Claude Desktop. You can then ask Claude to manage releases naturally:
“Analyze commits and plan a release for this project” “What’s the current release status?” “Generate release notes for the upcoming version”
Available Tools
Section titled “Available Tools”| Tool | Description |
|---|---|
relicta.status | Get current release state and pending actions |
relicta.plan | Analyze commits and suggest a version bump |
relicta.bump | Calculate and set the next version |
relicta.notes | Generate changelog and release notes |
relicta.evaluate | Evaluate risk using CGP |
relicta.approve | Approve the release for publishing |
relicta.publish | Execute the release (create tags, run plugins) |
Resources
Section titled “Resources”The MCP server exposes these read-only resources:
| Resource | Description |
|---|---|
relicta://state | Current release state machine status |
relicta://config | Relicta configuration |
relicta://commits | Recent commits since last release |
relicta://changelog | Generated changelog |
relicta://risk-report | CGP risk assessment |
Tool Reference
Section titled “Tool Reference”relicta.plan
Section titled “relicta.plan”Analyzes commits since the last release and suggests a version bump.
Parameters:
from(string): Starting point for analysis - tag, SHA, or “auto” (default: “auto”)analyze(boolean): Include detailed commit analysis
Returns:
{ "release_id": "rel-123", "current_version": "1.1.0", "next_version": "1.2.0", "release_type": "minor", "commit_count": 15, "has_breaking": false, "has_features": true, "has_fixes": true}relicta.bump
Section titled “relicta.bump”Calculates and applies the next version.
Parameters:
bump(string): Bump type - “major”, “minor”, “patch”, or “auto” (default: “auto”)version(string): Explicit version to set (overrides bump)
relicta.notes
Section titled “relicta.notes”Generates changelog and release notes.
Parameters:
ai(boolean): Use AI to enhance release notes
relicta.evaluate
Section titled “relicta.evaluate”Evaluates release risk using the Change Governance Protocol (CGP).
Returns:
{ "decision": "approve", "risk_score": 0.35, "severity": "low", "can_auto_approve": true, "risk_factors": [ {"name": "blast_radius", "score": 0.2}, {"name": "api_changes", "score": 0.4} ]}relicta.approve
Section titled “relicta.approve”Approves the release for publishing.
Parameters:
notes(string): Updated release notes (optional)
relicta.publish
Section titled “relicta.publish”Executes the release by creating tags and running plugins.
Parameters:
dry_run(boolean): Simulate without making changes
Advanced Features
Section titled “Advanced Features”Multi-Repository Support
Section titled “Multi-Repository Support”Manage releases across multiple repositories:
relicta mcp serve --multi-repoAdditional tools:
relicta.repos.list- List all repositoriesrelicta.repos.add- Add a repositoryrelicta.repos.switch- Switch primary repository
Plugin Integration
Section titled “Plugin Integration”Manage plugins via MCP:
relicta.plugins.list- List installed pluginsrelicta.plugins.execute- Execute a plugin hook
Streaming Support
Section titled “Streaming Support”Long-running operations support progress reporting for real-time feedback in AI agent interfaces.
Client SDK
Section titled “Client SDK”For developers building custom AI agent integrations, Relicta provides a Go client SDK:
import "github.com/relicta-tech/relicta/internal/mcp"
// Create clienttransport := mcp.NewStdioClientTransport(stdin, stdout)client := mcp.NewClient(transport)client.Initialize(ctx)
// Plan a releaseplan, err := client.Plan(ctx, true, "")
// Approve and publishclient.Approve(ctx, plan.ReleaseID, true)client.Publish(ctx, plan.ReleaseID, false)Security
Section titled “Security”- The MCP server does not implement authentication - run in trusted environments only
- Use
dry_run: truewhen testing to prevent unintended releases - Sensitive values (API keys) should be set via environment variables
Troubleshooting
Section titled “Troubleshooting”Server not responding
Section titled “Server not responding”# Test with verbose outputrelicta mcp serve --verboseClaude Desktop not connecting
Section titled “Claude Desktop not connecting”- Verify config path is correct for your OS
- Ensure
relictais in your PATH - Restart Claude Desktop after config changes
- Check Claude Desktop logs for errors
Next Steps
Section titled “Next Steps”- Configuration - Configure Relicta
- Plugins - Add publishing integrations
- Governance - CGP risk management