apt-mcp-agent-setup
v3.5.65
Published
One-command setup package for Base MCP AI Agent infrastructure
Downloads
8,002
Maintainers
Readme
Core MCP AI Agent (apt-mcp-agent-setup)
APT 3.5.65: an update goes on when connections that hold nothing could not read every run in time. APT 3.5.64: the review graph's project folder is recreated when it was removed. APT 3.5.63: a session whose APT connection died is served by the host's new connection. APT 3.5.62: Claude Code writers launch, Codex threads are linked after their hooks start, and Antigravity routes each prompt. APT 3.5.61: the code index leaves linked git worktrees out, an index that ran out of time can be built again, and a worker is never told to act as the coordinator. APT 3.5.60: Claude Code reviews and writers are seen again, Codex hooks run in VS Code, and answers about a run are small. APT 3.5.59: an update goes on past a connection its host closes, and a session handover names what holds it. APT 3.5.58: an APT update no longer makes the reviews of open runs stale, and a session without a host link says which session its thread belongs to. APT 3.5.57: a reviewer reserved at acceptance completes a high-risk run when the coordinator checkpoints it. APT 3.5.56: a writer loads its quality skill before the first write, workers are told how to recover from a refusal, and an update names the connections that hold it. APT 3.5.55: a change run writes with ponytail-lazy-dev and a document run with humanizer, whatever was routed before them. APT 3.5.54: an update held by a running agent session names its application, its session, the state of the run and how to release it. APT 3.5.53: workers read with the shell in more of the ways they do, and a finished verification keeps its result while the run is locked. APT 3.5.52: a workspace with many runs no longer locks out pipeline_next or research agents, and reviewers read more without a writer. APT 3.5.51: a connection whose runtime is slow to start retries instead of losing its tools, and never holds an update. APT 3.5.50: Antigravity subagents, reviewers that chain reads, and fewer runs raised to high risk. APT 3.5.49: a run uses the skills and the specialist its task was routed to, on every host. APT 3.5.48: a Codex coordinator can spawn the worker APT reserved although Codex encrypts the spawn message. APT 3.5.47: uninstall removes APT from a project, or from the machine, and keeps what is yours. APT 3.5.46: a Codex coordinator can spawn the worker APT reserved, whatever name the Codex hook gives the spawn tool. APT 3.5.45: APT's hooks run on Codex without a manual step, a worker gets its spawn arguments ready to pass, and a connection answers its host before its runtime boots. APT 3.5.44: a Codex reviewer's verdict is found in code mode, a reviewer can be added at acceptance, and a Codex worker gets its APT tools on a busy machine. APT 3.5.43: an update asks a busy Windows again before it gives up on an ended connection. APT 3.5.42: an interrupted index build is recovered on your confirmation instead of a restart of Windows. APT 3.5.41: an update goes on past a live connection that could not read its own start. APT 3.5.40: a worker gets a model per task whatever words its coordinator used for the spawn tool. APT 3.5.39: an index build accepts a file CodeGraph skips for its size, and a Claude Code session keeps the link that independent review needs. APT 3.5.38: one reviewer per item, findings that stay closed, and a threshold for what blocks. APT 3.5.37: hooks stay within their deadline, a checkpoint reads a quarter of the files, an item round needs fewer calls, and a document task gets a document pipeline. APT 3.5.36: an update reads old runs to the end, a checkpoint reads the workspace once, and a Codex worker records its own verdict. APT 3.5.35: a checkpoint answers with a summary of the run. APT 3.5.34: an update waits for a requested cancel to finish. APT 3.5.33: an update is not held by a run that has ended, and a review round that finds new defects is progress. APT 3.5.32: a run verifies and waits next to the run of another host session. APT 3.5.31: several host sessions work in one workspace at the same time. APT 3.5.30: an update catches the review index up and keeps the resource copies of three updates. APT 3.5.29: the review index no longer walks dependency folders and recovery backups. APT 3.5.28: on Claude Code a worker gets a cheaper model than the coordinator when its task allows. APT 3.5.27: an update closes the observation a run holds of a stopped worker. APT 3.5.26: a session is no longer locked out by its directory, a finished worker or a slow hook. APT 3.5.25: a rename that Windows refuses for a moment no longer fails an update. APT 3.5.24: a request whose connection is gone is retired without a typed cancel line. APT 3.5.23: a request of a closed connection no longer holds an update. APT 3.5.22: an update is no longer held by state of an agent session that is gone. APT 3.5.21: update scope, hook availability, runaway worker loops, Claude Code slash entries and parallel writers. Client updates still use npx apt-mcp-agent-setup@latest update, which now updates the project it runs in; add --all-projects for every registered project.
APT 3.5.18: verified index shutdown recovery.
APT 3.5.0 candidate: build and gate report, runtime migration and recovery. An explicit update cancels unfinished runs in its scope while preserving files and history. Serving activation still requires direct process evidence.
Nguồn kỹ thuật và nhánh tham khảo được quản lý tại Technical Sources Registry. Khi thêm một repo, skill, backend hoặc kỹ thuật mới, hãy ghi nguồn và bằng chứng pin/license vào danh mục trước khi tích hợp. Mỗi đợt cập nhật source APT chạy npm run sources:validate offline; dùng npm run sources:refresh -- --json để kiểm tra upstream có chủ đích. Refresh chỉ xuất báo cáo đề xuất. Xem checklist release trước khi nâng nguồn hoặc đóng gói.
Bộ cổng kết nối AI Agent bảo mật, tích hợp hệ thống quản lý License Key và Skill bundle mã hóa động dành cho doanh nghiệp.
📋 Tổng Quan Hệ Thống
Core MCP AI Agent được phân phối dưới dạng một bộ cài đặt tự động (npm package). Hệ thống cho phép phân phối các kỹ năng (Skills) và tác nhân (Agents) độc quyền của công ty một cách bảo mật tới máy của lập trình viên (Client) mà không lo lộ mã nguồn hay bị sử dụng trái phép ngoài phạm vi thiết bị được cấp quyền.
+-----------------------------------------------+
| Admin (Offline Machine) |
| - master.key (Signature) |
| - bundle.key (AES-256 Encryption Key) |
+----------------------+------------------------+
|
| 1. Build & Encrypt (.enc)
| 2. Publish Package (GitLab Package Registry)
v
+----------------------+------------------------+
| GitLab Private NPM Registry |
| - Package: apt-mcp-agent-setup |
| - Contains: Obfuscated installer & Encrypted |
| skills (*.enc) |
+----------------------+------------------------+
|
| 3. npx apt-mcp-agent-setup install
| --key <LICENSE_KEY>
v
+----------------------+------------------------+
| Developer's Local Machine |
| - Verifies License with Hardware Device ID |
| - Decrypts skills to local workspace |
| - Registers MCP Server to IDE (Antigravity) |
+-----------------------------------------------+📚 Tài Liệu Hướng Dẫn Nhanh
Hệ thống được chia làm hai vai trò vận hành chính. Vui lòng tham khảo tài liệu hướng dẫn chi tiết tương ứng:
1. Dành Cho Quản Trị Viên (Admin)
👉 Xem tại: Hướng Dẫn Triển Khai & Cấp Khóa (Admin)
- Nội dung bao gồm:
- Các nguyên tắc bảo mật và lưu trữ khóa ngoại tuyến (
master.key,bundle.key). - Quy trình build, đóng gói mã hóa AES-256 các Skill thành tệp
.encvà xáo trộn mã JS bằngjavascript-obfuscator. - Cách publish package lên GitLab Package Registry cá nhân/doanh nghiệp.
- Hướng dẫn chạy CLI
gen-key.jsđể cấp License Key giới hạn theo thời gian và Device ID cho lập trình viên.
- Các nguyên tắc bảo mật và lưu trữ khóa ngoại tuyến (
2. Dành Cho Lập Trình Viên (Developer)
👉 Xem tại: Hướng Dẫn Cài Đặt & Sử Dụng (Developer)
- Nội dung bao gồm:
- Cách thiết lập xác thực
.npmrcđể truy cập GitLab Package Registry riêng tư của công ty. - Cách lấy Device ID phần cứng thông qua lệnh
npx apt-mcp-agent-setup init. - Lệnh cài đặt tự động AI Agent vào workspace dự án và đăng ký cổng kết nối vào IDE.
- Kiểm tra trạng thái hoạt động và thời hạn License Key.
- Cơ chế tự động dọn dẹp (xóa sạch tài nguyên độc quyền) khi License hết hạn.
- Hướng dẫn sử dụng các Slash Commands nâng cao:
/plan,/tdd,/debug,/verify,/to-issues.
- Cách thiết lập xác thực
⚡ Tóm Tắt Quy Trình Phân Phối Trọn Gói (Deploy/Publish)
Bước 1: Build đóng gói mã hóa (Admin)
Đảm bảo bạn đã có các file khóa bảo mật trong thư mục admin/ và version trong package.json, package-lock.json đã đồng bộ. Phiên bản source chuẩn bị phát hành là 3.5.18. Chạy:
npm run deployChọn 3 để build source hiện tại, ký runtime, đóng gói tarball, kiểm tra gói và publish lên npm. Luồng mặc định không yêu cầu đường dẫn JSON nghiệm thu và không tự tăng version. npm có thể yêu cầu đăng nhập hoặc xác thực khi publish.
Nếu chỉ build local sau khi đã chọn version, chạy:
npm run buildLệnh build mã hóa thư mục .agents/ và src/templates thành các file .enc trong thư mục bundle/, sau đó build mã nguồn JS đã được xáo trộn ra thư mục dist/. Nếu npm run deploy đã mở từ trước rồi source thay đổi, hãy thoát menu cũ và chạy lại để nạp script mới. Menu cũ tự dừng trước khi build hoặc publish, tránh phát hành với logic version cũ.
Bước 2: Kiểm tra bản phát hành (Admin)
Menu deploy thực hiện publish sau khi package gate pass. Không cần chạy thêm lệnh publish trong dist/. Nếu đã đặt biến APT_RELEASE_ACCEPTANCE, deploy dùng luồng artifact đã nghiệm thu thay cho build source; bỏ biến đó để dùng luồng mặc định.
Quyết định phát hành 3.5.15 và những phần kiểm thử local chưa hoàn tất được ghi tại ghi chú phát hành. Sau publish, người dùng tiếp tục cập nhật bằng một lệnh:
npx apt-mcp-agent-setup@latest updateBước 3: Sinh License Key cho Dev/QC/BA/PM (Admin)
Khi nhận được Device ID từ nhân viên, hãy chạy CLI sinh khóa. Bạn có thể chỉ định một hoặc nhiều Preset ghép nối (Stackable Presets) ngăn cách bằng dấu phẩy:
# Cấp khóa cho Dev di động Flutter
node admin/gen-key.js --device <DEVICE_ID> --user "nguyen-van-a" --expires 2026-12-31 --preset mobile-flutter
# Cấp khóa tích hợp: Dev React + Quyền quản lý dự án (PM) + Tích hợp thiết kế Figma
node admin/gen-key.js --device <DEVICE_ID> --user "tran-van-b" --expires 2026-12-31 --preset fe-react,pm,figmaCopy chuỗi License Key xuất ra và gửi cho người dùng.
Bước 4: Cài đặt & Sử dụng (Developer / QC / BA / PM)
Người dùng không cần cấu hình bất kỳ tệp tin xác thực .npmrc nào. Hãy mở terminal tại thư mục gốc dự án và chạy trực tiếp lệnh cài đặt:
npx apt-mcp-agent-setup@latest install --key <LICENSE_KEY_ĐÃ_NHẬN>[!IMPORTANT] Lưu ý quan trọng: Luôn mở terminal và chạy lệnh trên tại thư mục gốc của dự án bạn muốn cấu hình AI Agent. Không chạy ở thư mục người dùng chung (
~hoặcC:\Users\Username). Mỗi dự án sẽ được cấp một vùng làm việc độc lập chứa các Skill (.agents/) và bộ nhớ (.memory/) riêng biệt để đảm bảo hiệu quả làm việc và bảo mật.
Hệ thống sẽ tự động cấu hình môi trường, giải mã các Kỹ năng phù hợp với Preset được cấp trong License Key và tích hợp thẳng vào IDE (Antigravity IDE, Claude Code, Cursor, hoặc VS Code).
