Sovereign Copilot MCP Server
Allows Hermes Agent to use the server's memory, privacy sanitization, and test runner capabilities for architectural reasoning and autonomous refactoring.
Integrates with NVIDIA Nemotron models hosted on Nebius Token Factory for high-level architectural reasoning and compliance verification against past ADRs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sovereign Copilot MCP ServerShow me the current architectural decisions for the auth service and flag any superseded ones."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sovereign Engineering Copilot
A private, autonomous software engineering copilot with Temporal Architectural Memory and zero-leakage local governance, powered by NVIDIA Nemotron on Nebius Token Factory.
Submitted to the Nebius x NVIDIA Global AI Hackathon (Personal AI Track).
Live Interactive Showcase: https://glatinone.github.io/sovereign-copilot/
Pitch & Demo Video (1:52): https://youtu.be/z8i3hh4c3uk
Technical Architecture Spec: docs/ARCHITECTURE.md
The Problem
Intellectual Property Leakage: Enterprise developers and proprietary software engineers are strictly forbidden from using commercial cloud AI assistants due to confidential source code and credential exposure.
Contextual Amnesia (Temporal Drift): Conventional AI coding tools only see transient context windows and forget why past architectural choices were made, resulting in constant regression of codebase conventions.
Fragile Tool Execution: Agents running without local sandboxing or policy enforcement risk unintended modifications and prompt injection vulnerabilities.
Related MCP server: SmartCLI MCP Server
Architecture
+-------------------------------------------------------------+
| LOCAL BOUNDARY |
| |
| [ Developer Request ] ---> [ Local Privacy Sanitizer ] |
| | (Redacts keys, PII, IPs)|
| v |
| [ Temporal Architectural ] ---> [ Prompt Context Binder ] |
| [ Memory (SQLite Graph) ] |
| | |
+-----------------------------------|-------------------------+
| (Sanitized Payload)
v
+-------------------------------------------------------------+
| NEBIUS TOKEN FACTORY |
| |
| Model: NVIDIA Llama-3.1-Nemotron-70B-Instruct |
| - High-level Architectural Reasoning |
| - Compliance verification against past ADRs |
+-------------------------------------------------------------+
| (Action Plan / Diff)
v
+-------------------------------------------------------------+
| LOCAL BOUNDARY |
| |
| [ Local Tool Executor ] ---> [ Automated Test Runner ] |
| - Git Diff Inspection - Verifies unit tests pass |
| |
| [ New Decision Recorder ] -> [ Temporal Memory (ADRs) ] |
+-------------------------------------------------------------+Key Features
Local Privacy Sanitizer: High-entropy API keys, passwords, bearer tokens, internal RFC1918 IPs, and credentials are pseudonymized before prompts leave the local machine.
Temporal Architectural Memory: Tracks active Architectural Decision Records (ADRs) with validity timestamps, relevance scoring, and temporal decay. Automatically flags and excludes superseded decisions.
NVIDIA Nemotron via Nebius Token Factory: Seamlessly offloads complex reasoning to NVIDIA Nemotron models hosted on Nebius high-performance open GPU infrastructure.
Autonomous Self-Healing Refactoring: Test-driven loop that applies patches, validates test suites, and autonomously repairs failed attempts up to N retries while preserving ADR constraints.
Tavily Live Knowledge Search: Dynamically retrieves official framework documentation, architecture patterns, and CVE advisories to ground reasoning.
Model Context Protocol (MCP) Server: Exposes memory, sanitization, and test runner tools over standard MCP JSON-RPC protocol for Claude Desktop, Cursor, and Hermes Agent.
Controlled Local Tool Execution: Generates and inspects patches locally, running test suites in isolated subprocesses before changes are finalized.
Quickstart
1. Installation
git clone https://github.com/glatinone/sovereign-copilot.git
cd sovereign-copilot
pip install -e .2. Configure Environment
Create a .env file (which is gitignored by default):
NEBIUS_API_KEY="your-nebius-token-factory-key"
SOVEREIGN_MODEL="nvidia/llama-3.1-nemotron-70b-instruct"Note: If no API key is provided, Sovereign Copilot automatically operates in local deterministic verification mode.
3. Usage
Initialize Workspace
sovereign initRecord Architectural Decisions (ADRs)
sovereign memory add \
--title "Use Async Event Bus for Payment Processing" \
--rationale "Decouple microservices and support horizontal scaling" \
--tags "payment,async,broker"List Active Decisions
sovereign memory listAsk Copilot to Reason on Code with Memory & Privacy
sovereign ask "Refactor our payment handling pipeline to add batch retry logic."Autonomous Self-Healing Refactor with Test Verification
sovereign refactor payment_service.py \
--prompt "Add retry logic with exponential backoff" \
--test-cmd "pytest test_payment.py" \
--max-retries 3Visual Memory Graph & Relationship Tree
sovereign graphLocal Privacy & Secret Leak Audit
sovereign auditFramework Best Practice Search (Tavily)
sovereign search "distributed payment idempotency redis"Run as Model Context Protocol (MCP) Server
sovereign mcpRun Automated Tests
sovereign ask "Refactor calculation logic" --testLicense
This project is licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Cross-tool persistent memory and context for AI assistants over MCP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceExposes MCP tools that enable remote LLMs to query local Docker containers, OS processes, and system services in real time.-
- AlicenseNot gradedqualityBmaintenanceExposes SmartCLI's built-in agent tools (file operations, code search, shell commands, web search, memory, and snapshots) as MCP endpoints, allowing external clients to leverage them over stdio or HTTP.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables coding agents to run project-specific checks, replays, simulations, and queries as MCP tools, providing ground-truth feedback on config edits instead of guessing.1MIT
- AlicenseNot gradedqualityCmaintenanceExposes the agent's built-in tools, such as file operations, shell commands, web search, memory, skills, and code search, as MCP tools over stdio or HTTP, allowing external MCP clients to invoke them directly.MIT