Logichive

by Ayato-AI-for-Auto

3 stars
120 downloads
Not rated
GitHub Website

About

🛡️ Professional AI Logic Hub: Accumulate, verify, and reuse high-quality code assets via MCP. Built for kill liberation from mundane tasks likes code copy & remenber logic.

Details

Author
Ayato-AI-for-Auto
GitHub stars
3
Downloads
120
Categories
Other

- Hybrid Knowledge Search: semantic and exact-match search for code patterns
- Verification Quality Gate: automated testing and linting before vaulting
- MCP Streamable HTTP (SSE) Integration: centralized server for concurrent clients
- Project Isolation: manage logic assets across multiple namespaces
- Hybrid Deterministic Gate with four verification stages

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Logichive
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Run the LogicHive-Hub.exe (Windows) or the Docker container, then configure your MCP client (Cursor, Claude Desktop) to connect to http://localhost:10880/sse. Set at least GEMINI_API_KEY in a .env file. Use the MCP tools to search, save, retrieve, and delete logic atoms.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "logichive": {
            "LogicHive": {
                "command": "docker",
                "args": [
                    "run",
                    "-d",
                    "\\"
                ]
            }
        }
    }
}

McpServers

{
    "LogicHive": {
        "command": "docker",
        "args": [
            "run",
            "-d",
            "\\"
        ]
    }
}

LogicHive (Professional AI Logic Hub)

🛡️ LogicHive is a high-precision knowledge extraction and logic management system. It enables AI agents to accumulate, verify, and reuse high-quality code assets via the Model Context Protocol (MCP).

> "Stop rebuilding the same logic. Build a long-term intelligence asset."
> 哲学: 巨人の肩の上に乗り、真に価値ある創造に集中せよ。

---

🏗️ The Rigor Gate: A Hybrid Approach

LogicHive uses a Hybrid Deterministic Gate to veto non-factual AI opinions:
- Fact (40%): AST analysis. Mandatory veto power (Assertion counting, Hollow logic detection).
- Static (30%): Ruff/Radon metrics for code health.
- AI (20%): Forensic auditing by LLMs.
- Execution (10%): Isolated runtime validation.

> [!IMPORTANT]
> LogicHive values verifiability over correctness. If an AI-generated logic atom lacks assertion tests, it is rejected by the Fact Gate, preventing low-quality code from polluting your knowledge base.

---

🌟 Key Features

- Hybrid Knowledge Search: Semantic and exact-match search for code patterns.
- Verification Quality Gate: Automated testing and linting before code is "vaulted".
- MCP Streamable HTTP (SSE) Integration: Centralized deployment serving multiple clients (Cursor, Claude Desktop) concurrently.
- Project Isolation: Manage logic assets across multiple namespaces and projects.

---

💼 Business Value & ROI

LogicHive turns transient AI interactions into reusable corporate assets:
1. API Cost Optimization: Drastically reduces LLM input tokens by injecting precise logic atoms instead of massive code context.
2. Preventing Technical Debt: Automatically blocks un-asserted, redundant, or complex code, slashing future maintenance costs.
3. Secure AI Governance: Filters out security vulnerabilities and runs isolated dynamic execution tests before storing assets.
4. Capitalizing Organizational Knowledge: Ensures critical domain logic is preserved and shared, eliminating project silo effects and key-person risks.

---

🚀 Workflow

1. Discovery (探索): Find logic atoms via LogicHive MCP.
2. Retrieval (抽出): Inject verified logic into the agent context.
3. Adaptation (適合): AI refactors logic to match current namespaces.
4. Professionalization (資産化): Refined logic is saved back.
5. Stabilization (安定化): Background tools re-verify assets 24/7.

---

🐘 Handling Heavy AI Assets (Torch, Sklearn)

Registering code that imports large libraries like torch or sklearn can hit the 20s Quality Gate Timeout. To bypass this and maintain a fast development rhythm, use the following patterns:

1. Lazy Import (Recommended)

Move heavy imports inside your functions. This prevents the library from loading during the initial module-level scan by LogicHive's AST analyzer.

2. Smart Mocking

If you must have top-level imports, use the mock_imports parameter in save_function. LogicHive will inject MagicMock for those modules during verification.

---

⚙️ Configuration

LogicHive is configured via environment variables or a .env file, resolving in the following order:

1. Local .env (Primary): Place .env in the same directory as LogicHive-MCP.exe (or project root).
2. User Home (Fallback): ~/.logichive/.env (Global settings across folder moves).
3. OS Environment Variables: Directly set variables override .env values.

Setup Steps:
1. Locate .env.example: Copy this file to .env.
2. Set your API Keys: At minimum, set GEMINI_API_KEY.
3. Place the file: Follow the rules above based on your deployment.

See .env.example and ADR-005 for details.

---

🚀 自動起動の設定(タスクスケジューラー)

LogicHive を常駐させたい場合は、以下のコマンドを管理者権限の PowerShell で実行することでタスクスケジューラーに登録できます。

```powershell

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.