FK

fandry96/k3-mcp-toolbox-public

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 4 forks 质量 84 趋势 14EPL-2.0

欢迎来到开源发布 和. 这些是经过生产测试的工具和认知原始,我们用来为Windows和Linux上的自动编码代理提供动力,为.

概览

欢迎来到开源发布 和. 这些都是我们用来在Windows和Linux上给自动编码代理提供动力的经过生产测试的工具和认知原始,为代理AI社区开源. 解决长期编码代理会话中遇到的最令人沮丧的5个瓶颈: 1. 使用 Matryoshka 代表性学习(MRL),预选的正态矩阵点产品查询,并通过 np.argpartition 选择 O(N)美元候选人。 2. :突击收割孤儿测试浏览器(chromedriver,msedgedriver等)并放出锁定的dev端口(3000,8080等)而不会杀死正在运行的IDE或代理会话. 3. :自动旋转并合并被孤立的Git工作树(.worktrees/),并配有严格的二进制许可列表和自动冲突回滚,防止平行代理器腐蚀git中转. 4.四.

概述(AI 翻译)

**“为代理时代生产中相器件”。 **

欢迎使用K3 MCP工具箱和Antigravity Logicware的开源发布. 这些都是我们用来在Windows和Linux上给自动编码代理提供动力的经过生产测试的工具和认知原始,为代理AI社区开源.

– – . . .

□ □ □ TL; DR

K3 MCP工具箱 解决了在长期编码代理会话中遇到最令人沮丧的5个瓶颈:

  1. ** Blazing-Fast 本地语义记忆([T0]): 使用 Matryoshka 代表学习(MRL),预选的正态矩阵点产品,通过[[T1]选择$O(N)$候选人,在0.22秒内查询25 300+向量**。
  2. OS & 运行时哨兵([[T2]): 手术收割了孤机测试浏览器([[T3],msedgedriver)并释放了锁定的dev端口(3000,8080等)而不会杀死正在运行的IDE或代理会话.
  3. ** Git 工作树隔离([T5])副代理人**: 自动自旋并合并被隔离的Git worktrees ([[T6]) 有严格的二进制允许列表和自动冲突回滚,防止了并行代理器腐蚀git cating. 4.四.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

K3 MCP Toolbox & Antigravity Logicware

“Production Middleware for the Agentic Era.”

Welcome to the open-source release of the K3 MCP Toolbox and Antigravity Logicware. These are the production-tested tools and cognitive primitives we use to power autonomous coding agents on Windows and Linux, open-sourced for the agentic AI community.


⚡ TL;DR

K3 MCP Toolbox solves the 5 most frustrating bottlenecks encountered during long-running coding agent sessions:

  1. Blazing-Fast Local Semantic Memory (k3-mrl-memory): Queries 25,300+ vectors in 0.22 seconds on local CPU using Matryoshka Representation Learning (MRL), pre-cached normalized matrix dot products, and $O(N)$ candidate selection via np.argpartition.
  2. OS & Runtime Sentinel (k3-agent-ops): Surgically reaps orphaned test browsers (chromedriver, msedgedriver) and frees locked dev ports (3000, 8080, etc.) without killing your active IDE or agent sessions.
  3. Subagent Git Worktree Isolation (k3-worktree-ops): Automatically spins up and merges isolated Git worktrees (.worktrees/) with strict binary allowlists and automatic conflict rollbacks, preventing parallel agents from corrupting git staging.
  4. Secure Document Intelligence (k3-doc-intel): Ingests and chunks PDFs and DOCX files with a custom _RestrictedUnpickler whitelist that blocks arbitrary code execution vulnerabilities on untrusted files.
  5. Local LLM Lifecycle (k3-local-llm): Manages bundled llama-server.exe and local GGUF models for offline embeddings and completions with automated child process reaping.
  6. Gemini 3.8 Flash GA Primitives (antigravity-logicware): Config sanitizers that strip banned legacy sampling parameters (temperature, top_p, penalties), enforce strict 1:1 FunctionCall.id matching, and provide structured update(previous_step, plan, next_step) progress declarations.

🤖 AI Agent Setup Guide (When an AI Pulls This Repo)

If you are an AI assistant or coding agent (Cursor, Claude Desktop, Antigravity, Cline, Windsurf, Aider, or custom ADK loop) asked to set up or use this repository, follow these precise steps:

1. Install Dependencies

# From repository root:
pip install -r k3-mcp-toolbox/requirements.txt
pip install -e antigravity-logicware

2. Verify Everything (100% Offline Self-Test)

Run both test suites before touching code:

# Test the 5-server FastMCP fleet (27 assertions):
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "k3-agent-ops": { "command": "python", "args": ["<ABSOLUTE_PATH>/k3-mcp-toolbox/servers/k3_agent_ops.py"] }, "k3-mrl-memory": { "command": "python", "args": ["<ABSOLUTE_PATH>/k3-mcp-toolbox/servers/k3_mrl_memory.py"], "env": { "GEMINI_API_KEY": "optional_for_live_embedding_generation", "MRL_INDEX_PATH": "<ABSOLUTE_PATH>/k3-mcp-toolbox/src/mrl_index.pkl" } }, "k3-worktree-ops": { "command": "python", "args": ["<ABSOLUTE_PATH>/k3-mcp-toolbox/servers/k3_worktree_ops.py"] }, "k3-doc-intel": { "command": "python", "args": ["<ABSOLUTE_PATH>/k3-mcp-toolbox/servers/k3_doc_intel.py"] }, "k3-local-llm": { "command": "python", "args": ["<ABSOLUTE_PATH>/k3-mcp-toolbox/servers/k3_local_llm.py"] } } }